mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
QA -mb_convert_encoding_array - error for object item in array
Closes GH-9023.
This commit is contained in:
parent
7e72c3dc8a
commit
dbdef4a55c
1 changed files with 10 additions and 0 deletions
10
ext/mbstring/tests/mb_convert_encoding_array_error_001.phpt
Normal file
10
ext/mbstring/tests/mb_convert_encoding_array_error_001.phpt
Normal file
|
@ -0,0 +1,10 @@
|
|||
--TEST--
|
||||
Test mb_convert_encoding() function : array functionality with objects not supported
|
||||
--EXTENSIONS--
|
||||
mbstring
|
||||
--FILE--
|
||||
<?php
|
||||
mb_convert_encoding(["key" => new stdClass()], 'UTF-8');
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: mb_convert_encoding(): Object is not supported in %s on line %d
|
Loading…
Add table
Add a link
Reference in a new issue