/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
strings
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/strings/bug22224.phpt
--TEST-- Bug #22224 (implode changes object references in array) --INI-- error_reporting=0 --FILE-- <?php class foo { function __toString() { return "Object"; } } $a = new foo(); $arr = array(0=>&$a, 1=>&$a); var_dump(implode(",",$arr)); var_dump($arr) ?> --EXPECTF-- string(13) "Object,Object" array(2) { [0]=> &object(foo)#%d (0) { } [1]=> &object(foo)#%d (0) { } }
Copyright ©2k19 -
Hexid
|
Tex7ure