ID: 47885 Updated by: [email protected] 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
