note 72833 added to function.empty
| From: | Arian at osu1 dot php dot net | Date: | Fri, 02 Feb 2007 15:35:01 +0000 |
| Subject: | note 72833 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122562@lists.php.net to get a copy of this message | ||
Read the above note carefully: "Note: empty() only checks variables as anything else will
result in a parse error."
Took me forever to google around and figure out this error was related to above lines:
[02-Feb-2007 09:38:09] PHP Fatal error:
Can't use function return value in write context in blah.php on line ##
So hopefully someone else googling the error text itself, will track back to this page.
It would be nice though if empty() can 'correctly' parse and return a value for a function
call within itself like other funcs.
----
Server IP: 64.71.164.2
Probable Submitter: 64.80.206.97
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit -- https://master.php.net/note/edit/72833
Del: integrated -- https://master.php.net/note/delete/72833/integrated
Del: useless -- https://master.php.net/note/delete/72833/useless
Del: bad code -- https://master.php.net/note/delete/72833/bad+code
Del: spam -- https://master.php.net/note/delete/72833/spam
Del: non-english -- https://master.php.net/note/delete/72833/non-english
Del: in docs -- https://master.php.net/note/delete/72833/in+docs
Del: other reasons-- https://master.php.net/note/delete/72833
Reject -- https://master.php.net/note/reject/72833
Search -- https://master.php.net/manage/user-notes.php