#20338 [Opn->Bgs]: isset does not work with referenced objects like ->
| From: | derick@php.net | Date: | Sun, 10 Nov 2002 15:06:51 +0000 |
| Subject: | #20338 [Opn->Bgs]: isset does not work with referenced objects like -> | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24435@lists.php.net to get a copy of this message | ||
ID: 20338
Updated by: derick@php.net
Reported By: ewvea3dgc7001@sneakemail.com
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Redhat 7.2
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2002-11-10 09:03:24] ewvea3dgc7001@sneakemail.com
The following code produces an error
if ( isset($adodbobject->Fields('myresult') ) ) { // do something }
PHP throws an error ( not warning ) saying:
Parse error: parse error, expecting
','' or ')'' in
/path/to/index.php on
line 45
However, when I modify the isset to look like this:
$_q = $adodbobject->Fields('myresult');
if ( isset($_q) ) { // do something }
It works fine.
Is this proper behavior for isset, or is this a php bug? I can't search
google groups for "->", or any other search engine for that matter. So
it has been tough trying to see if anyone else gets this error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20338&edit=1