/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/bug64023.phpt
--TEST-- Bug #64023: Overloading __toString() in SplFileInfo has no effect --FILE-- <?php class A extends \SplFileInfo { public function __toString() {return ' -expected- ';} } $a = new A('/'); // Works echo $a, $a->__toString(), $a->__toString() . '', "\n"; // Does not work - outputs parent::__toString() echo $a . '', "\n"; ?> --EXPECT-- -expected- -expected- -expected- -expected-
Copyright ©2k19 -
Hexid
|
Tex7ure