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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 09:01:28 2025 UTC