mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
php_mb_parse_encoding_list() and php_mb_parse_encoding_array() are supposed to return SUCCESS and FAILURE, not 1 and 0, respectively.
17 lines
342 B
PHP
17 lines
342 B
PHP
--TEST--
|
|
Bug #76704 (mb_detect_order return value varies based on argument type)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(mb_detect_order('Foo, UTF-8'));
|
|
var_dump(mb_detect_order(['Foo', 'UTF-8']))
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|
|
===DONE===
|