|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-05-22 17:40 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-05-22 17:40 UTC] requinix@php.net
[2017-05-22 22:31 UTC] d dot albano at gmail dot com
[2017-05-23 06:58 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ It is possible to use an object as class name in new Test script: --------------- <?php class Foo { }; $foo = new Foo(); $bar = new $foo(); var_dump([$foo, $bar]); Expected result: ---------------- Error, cannot use $foo as class name Actual result: -------------- array(2) { [0]=> object(Foo)#1 (0) { } [1]=> object(Foo)#2 (0) { } }