/
proc
/
self
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
array
/
File Upload :
llllll
Current File: //proc/self/root/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/array/compact_this.phpt
--TEST-- compact() with object context --FILE-- <?php var_dump( (new class { function test(){ return compact('this'); } })->test() ); var_dump( (new class { function test(){ return compact([['this']]); } })->test() ); var_dump( (new class { function test(){ return (function(){ return compact('this'); })(); } })->test() ); ?> --EXPECT-- array(1) { ["this"]=> object(class@anonymous)#1 (0) { } } array(1) { ["this"]=> object(class@anonymous)#1 (0) { } } array(1) { ["this"]=> object(class@anonymous)#1 (0) { } }
Copyright ©2k19 -
Hexid
|
Tex7ure