Merge branch 'PHP-5.4'

This commit is contained in:
Xinchen Hui 2012-08-13 11:04:05 +08:00
commit e51acee43d

View File

@ -0,0 +1,24 @@
--TEST--
Bug #62328 (cast_object takes precedence over __toString)
--CREDITS--
leight at gmail dot com
--FILE--
<?php
class SplFileInfo62328 extends SplFileInfo
{
public function __toString()
{
return '__toString';
}
}
$fi = new SplFileInfo62328(__FILE__);
echo (string)$fi . PHP_EOL;
echo (string)$fi->__toString() . PHP_EOL;
?>
--EXPECT--
__toString
__toString