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.119
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 /
closures /
Delete
Unzip
Name
Size
Permission
Date
Action
bug80929.phpt
1.1
KB
-rw-rw-r--
2022-10-31 11:36
closure_from_callable.inc
3.09
KB
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_basic.phpt
3.99
KB
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_error.phpt
6.36
KB
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_lsb.phpt
326
B
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_non_static_statically.phpt
403
B
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_rebinding.phpt
330
B
-rw-rw-r--
2022-10-31 11:36
closure_from_callable_reflection.phpt
743
B
-rw-rw-r--
2022-10-31 11:36
closure_instantiate.phpt
590
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Closures cannot be instantiated directly --CREDITS-- Mark Baker mark@lange.demon.co.uk at the PHPNW2017 Conference for PHP Testfest 2017 --FILE-- <?php try { // Closures should be instantiatable using new $x = new Closure(); } catch (Exception $e) { // Instantiating a closure is an error, not an exception, so we shouldn't see this echo 'EXCEPTION: ', $e->getMessage(); } catch (Throwable $e) { // This is the mesage that we should see for a caught error echo 'ERROR: ', $e->getMessage(); } ?> --EXPECT-- ERROR: Instantiation of 'Closure' is not allowed