Bug #17330 Updated: empty() function fails when passing data from statically called class method
| From: | derick@php.net | Date: | Tue, 21 May 2002 09:22:41 +0000 |
| Subject: | Bug #17330 Updated: empty() function fails when passing data from statically called class method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8080@lists.php.net to get a copy of this message | ||
ID: 17330
Updated by: derick@php.net
Reported By: etriaph@kdesktop.org
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.2.0
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Empty only works on *variables*.
Previous Comments:
------------------------------------------------------------------------
[2002-05-21 04:11:26] etriaph@kdesktop.org
The following error occurred:
<b>Parse error</b>: parse error, unexpected T_STRING,
expecting T_VARIABLE or '$' in <b>/www/htdocs/index.wc</b>
on line <b>21</b><br />
When I ran the following code:
if (!empty(HttpRequest::fetchPost(ENT)))
{
// code.
}
The internals of HttpRequest::fetchPost() returns the value
of $HTTP_POST_VARS[ENT]. ENT is properly defined (as
"ent"), and I was able to fix it by doing:
$postData = HttpRequest::fetchPost(ENT);
if (!empty($postData))
{
// code.
{
My original code should execute without fail in my opinion,
but if there is an acceptable reason for this bug, then so
be it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17330&edit=1