#40248 [NEW]: Undefined members with combined operators produce no warning
| From: | jontsa at amigaone dot cc | Date: | Fri, 26 Jan 2007 10:12:51 +0000 |
| Subject: | #40248 [NEW]: Undefined members with combined operators produce no warning | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108086@lists.php.net to get a copy of this message | ||
From: jontsa at amigaone dot cc
Operating system: Solaris
PHP version: 5.2.0
PHP Bug Type: Class/Object related
Bug description: Undefined members with combined operators produce no warning
Description:
------------
When using a combined operator like += or ++ on an undefined class member,
it does not produce "undefined property" notice as expected. Tested with
all errors enabled.
Reproduce code:
---------------
$a+=5;
$b=new stdClass;
$b->a+=5;
Expected result:
----------------
Notice: Undefined variable: a
Notice: Undefined property: stdClass::$a
Actual result:
--------------
Notice: Undefined variable: a
--
Edit bug report at http://bugs.php.net/?id=40248&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40248&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40248&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40248&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40248&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40248&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40248&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40248&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40248&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40248&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40248&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40248&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40248&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40248&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40248&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40248&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40248&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40248&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40248&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40248&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40248&r=mysqlcfg