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 /
grammar /
Delete
Unzip
Name
Size
Permission
Date
Action
bug78441.phpt
235
B
-rw-rw-r--
2022-10-31 11:36
regression_001.phpt
328
B
-rw-rw-r--
2022-10-31 11:36
regression_002.phpt
245
B
-rw-rw-r--
2022-10-31 11:36
regression_003.phpt
250
B
-rw-rw-r--
2022-10-31 11:36
regression_004.phpt
292
B
-rw-rw-r--
2022-10-31 11:36
regression_005.phpt
269
B
-rw-rw-r--
2022-10-31 11:36
regression_006.phpt
411
B
-rw-rw-r--
2022-10-31 11:36
regression_007.phpt
581
B
-rw-rw-r--
2022-10-31 11:36
regression_008.phpt
292
B
-rw-rw-r--
2022-10-31 11:36
regression_009.phpt
187
B
-rw-rw-r--
2022-10-31 11:36
regression_010.phpt
174
B
-rw-rw-r--
2022-10-31 11:36
regression_011.phpt
211
B
-rw-rw-r--
2022-10-31 11:36
regression_012.phpt
228
B
-rw-rw-r--
2022-10-31 11:36
regression_013.phpt
205
B
-rw-rw-r--
2022-10-31 11:36
semi_reserved_001.phpt
6.04
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_002.phpt
6.47
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_003.phpt
4.97
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_004.phpt
5.18
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_005.phpt
4.79
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_006.phpt
1.42
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_007.phpt
671
B
-rw-rw-r--
2022-10-31 11:36
semi_reserved_008.phpt
1.3
KB
-rw-rw-r--
2022-10-31 11:36
semi_reserved_009.phpt
273
B
-rw-rw-r--
2022-10-31 11:36
semi_reserved_010.phpt
438
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test semi-reserved method and constant names and trait conflict resolution --FILE-- <?php trait TraitA { public function catch(){ echo __METHOD__, PHP_EOL; } private function list(){ echo __METHOD__, PHP_EOL; } } trait TraitB { static $list = ['a' => ['b' => ['c']]]; public static function catch(){ echo __METHOD__, PHP_EOL; } private static function throw(){ echo __METHOD__, PHP_EOL; } private static function self(){ echo __METHOD__, PHP_EOL; } } trait TraitC { public static function exit(){ echo __METHOD__, PHP_EOL; } protected static function try(){ echo __METHOD__, PHP_EOL; } } class Foo { use TraitA, TraitB { TraitA :: catch insteadof namespace\TraitB; TraitA::list as public foreach; TraitB::throw as public; TraitB::self as public; } use TraitC { try as public attempt; exit as die; \TraitC::exit as bye; namespace\TraitC::exit as byebye; TraitC :: exit as farewell; } } (new Foo)->catch(); (new Foo)->foreach(); Foo::throw(); Foo::self(); var_dump(Foo::$list['a']); Foo::attempt(); Foo::die(); Foo::bye(); Foo::byebye(); Foo::farewell(); echo "\nDone\n"; --EXPECT-- TraitA::catch TraitA::list TraitB::throw TraitB::self array(1) { ["b"]=> array(1) { [0]=> string(1) "c" } } TraitC::try TraitC::exit TraitC::exit TraitC::exit TraitC::exit Done