From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.2.0
PHP Bug Type:     Scripting Engine problem
Bug description:  empty() function fails when passing data from statically called 
class method

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 bug report at http://bugs.php.net/?id=17330&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17330&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17330&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17330&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17330&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17330&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17330&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17330&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17330&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17330&r=globals

Reply via email to