|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-08-26 08:45 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2013-08-26 08:45 UTC] johannes@php.net
[2013-08-26 08:47 UTC] ante dot drnasin at wirecard dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
Description: ------------ Just a small issue. When (ab)using "return empty(null);" you get T_PAAMAYIM_NEKUDOTAYIM error (unexpected ")" expecting "::") which is not true... is it per design or a bug? Test script: --------------- function test() { return empty(null); } Expected result: ---------------- Null is not a valid value for "empty" Actual result: -------------- T_PAAMAYIM_NEKUDOTAYIM error