|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-30 23:33 UTC] cmb@php.net
-Package: Feature/Change Request
+Package: Scripting Engine problem
[2021-10-11 11:04 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-10-11 11:04 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
Description: ------------ In some cases, it's a very usefull feature use an object as default function argument, what is not possible, generating an error in current versions of PHP. Reproduce code: --------------- <?php class Foo {} function bar(Foo $foo = new Foo()){} ?> Expected result: ---------------- A blank webpage. Actual result: -------------- Parse error: parse error, unexpected T_NEW in c:\Inetpub\wwwroot\phobos\testes\index.php on line 5