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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ruempler at topconcepts dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 08:01:30 2025 UTC