php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11556 empty function does only accept variables, but no functions
Submitted: 2001-06-19 06:57 UTC Modified: 2001-06-19 13:09 UTC
From: ruempler at topconcepts dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: Redhat 7.0
Private report: No CVE-ID: None
 [2001-06-19 06:57 UTC] ruempler at topconcepts dot com
} elseif ($submit=="suchen" && !empty(trim($search))) {

.....

produces parse error:

Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /web/eisbaer-eis.de/www/download/index.php on line blah

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-19 13:09 UTC] derick@php.net
Empty can only be used on variables, and not on a return value from a function, unless you assign it to a variabele first.
This also counts for p.e. unset().

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC