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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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 04:01:32 2024 UTC