#19064 [Bgs]: syntax error with '('s

From: Date: Fri, 23 Aug 2002 09:39:45 +0000
Subject: #19064 [Bgs]: syntax error with '('s
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17619@lists.php.net to get a copy of this message
 ID:               19064
 Updated by:       derick@php.net
 Reported By:      nery@astalavista.com
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: -
 PHP Version:      4.2.1
 New Comment:

From www.php.net/empty :

 Note that this is meaningless when used on anything which isn't a
variable; i.e. empty (addslashes ($name)) has no meaning since it would
be checking whether something which isn't a variable is a variable with
a FALSE value.

$db->f("bla") is NOT a variable.

Derick


Previous Comments:
------------------------------------------------------------------------

[2002-08-23 05:36:08] nery@astalavista.com

it comes this error
Parse error: parse error, unexpected '(', expecting ')'

where as you can see there is no error!
ITS NOT A SUPPORT QUESTION! ITS A PARSE ERROR OF PHP!! DID YOU SEE
THAT!?
I am just trying to help

------------------------------------------------------------------------

[2002-08-23 05:32:41] cynic@php.net

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.

------------------------------------------------------------------------

[2002-08-23 05:25:16] nery@astalavista.com

if you try something like this

if(!empty($db->f("bla")))

php says there is an error of syntax


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19064&edit=1



Thread (6 messages)

« previous php.bugs (#17619) next »