#47885 [Opn->Bgs]: expr in empty() causes parse error
| From: | felipe@php.net | Date: | Fri, 03 Apr 2009 10:52:59 +0000 |
| Subject: | #47885 [Opn->Bgs]: expr in empty() causes parse error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135514@lists.php.net to get a copy of this message | ||
ID: 47885
Updated by: felipe@php.net
Reported By: ninzya at inbox dot lv
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Any
PHP Version: 5.3.0RC1
New Comment:
Says the documentation:
"Note: empty() only checks variables as anything else will result in a
parse error. In other words, the following will not work:
empty(trim($name))." -- http://docs.php.net/empty
Previous Comments:
------------------------------------------------------------------------
[2009-04-03 10:01:06] ninzya at inbox dot lv
Description:
------------
expr in empty() causes parse error
Reproduce code:
---------------
<?php
if( empty( $x =5)) {
}
?>
Expected result:
----------------
No parse errors
Actual result:
--------------
Parse error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47885&edit=1