|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-02-27 17:09 UTC] thekid@php.net
[2016-07-14 09:44 UTC] dmitry@php.net
-Status: Open
+Status: Assigned
-Type: Bug
+Type: Feature/Change Request
-Assigned To:
+Assigned To: krakjoe
[2016-07-14 09:44 UTC] dmitry@php.net
[2017-01-29 07:33 UTC] krakjoe@php.net
-Assigned To: krakjoe
+Assigned To:
[2017-01-29 07:33 UTC] krakjoe@php.net
[2017-08-05 04:37 UTC] stas@php.net
-Status: Open
+Status: Suspended
[2017-08-05 04:37 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
Description: ------------ Anonymous class syntax doesn't work with "self" keyword. Test script: --------------- class T { static function new() { return new class() extends self { }; } } var_dump(T::new()); Expected result: ---------------- object(class@anonymous)#1 (0) { } Actual result: -------------- Fatal error: Cannot use 'self' as class name as it is reserved in Command line code on line 1