#31611 [NEW]: Different results by checking for isset($string->foo)
| From: | sa at ventigo dot com | Date: | Wed, 19 Jan 2005 15:56:57 +0000 |
| Subject: | #31611 [NEW]: Different results by checking for isset($string->foo) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72465@lists.php.net to get a copy of this message | ||
From: sa at ventigo dot com
Operating system: Gentoo Linux
PHP version: 5.0.3
PHP Bug Type: CGI related
Bug description: Different results by checking for isset($string->foo)
Description:
------------
The problem is in the different results of isset() in different versions
of PHP.
I have tested it with compiled in SPL Support and vithout SPL support; the
problem is always the same.
Reproduce code:
---------------
#!/usr/bin/php
<?php
$blah = 'ABC';
var_dump($blah, $blah->foo, isset($blah->foo));
?>
Expected result:
----------------
I get this Result in following versions of PHP:
- PHP 5.0.0 as Apache Module
- PHP 5.0.3 as Apache Module
- PHP 5.0.0 CLI
string(3) "ABC"
NULL
bool(false)
Actual result:
--------------
This is the result in PHP 5.0.3 CLI (With and without SPL support)
string(3) "ABC"
NULL
bool(true)
--
Edit bug report at http://bugs.php.net/?id=31611&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31611&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31611&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31611&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31611&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31611&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31611&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31611&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31611&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31611&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31611&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31611&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31611&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31611&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31611&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31611&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31611&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31611&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31611&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31611&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31611&r=mysqlcfg