blob: 33a8aeee953f48ac769c9759f8f7d0550bc2d1b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|