Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
Zend /
tests /
arrow_functions /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
707
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
210
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
294
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
200
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
975
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
825
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
376
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
407
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Arrow function $this binding --FILE-- <?php class Test { public function method() { // It would be okay if this is NULL, but the rest should work $fn = fn() => 42; $r = new ReflectionFunction($fn); var_dump($r->getClosureThis()); $fn = fn() => $this; var_dump($fn()); $fn = fn() => Test::method2(); $fn(); $fn = fn() => call_user_func('Test::method2'); $fn(); $thisName = "this"; $fn = fn() => $$thisName; var_dump($fn()); $fn = fn() => self::class; var_dump($fn()); // static can be used to unbind $this $fn = static fn() => isset($this); var_dump($fn()); } public function method2() { var_dump($this); } } (new Test)->method(); ?> --EXPECT-- object(Test)#1 (0) { } object(Test)#1 (0) { } object(Test)#1 (0) { } object(Test)#1 (0) { } object(Test)#1 (0) { } string(4) "Test" bool(false)