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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

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: Fri May 03 14:01:30 2024 UTC