mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
19 lines
291 B
PHP
19 lines
291 B
PHP
--TEST--
|
|
Bug #78609 (mb_check_encoding() no longer supports stringable objects)
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
class Foo
|
|
{
|
|
public function __toString()
|
|
{
|
|
return 'string_representation';
|
|
}
|
|
}
|
|
|
|
var_dump(mb_check_encoding(new Foo, 'UTF-8'));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|