From:             dmitry at zedn dot com
Operating system: *
PHP version:      5.2.8
PHP Bug Type:     Scripting Engine problem
Bug description:  Memory leak on $a->{"a"."b"} when $a is not an object

Description:
------------
The following code produse a memory leak

Reproduce code:
---------------
<?php
$a->{'a'.'b'};
?>

Expected result:
----------------
Notice: Undefined variable: a

Notice: Trying to get property of non-object


Actual result:
--------------
Notice: Undefined variable: a

Notice: Trying to get property of non-object
[Thu Jan 15 11:36:45 2009]  Script:  '-'
/home/dmitry/php/php5.3/Zend/zend_operators.c(1269) :  Freeing 0x0AA20F64
(3 bytes), script=-
=== Total 1 memory leaks detected ===


-- 
Edit bug report at http://bugs.php.net/?id=47109&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47109&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47109&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47109&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47109&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47109&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47109&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47109&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47109&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47109&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47109&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47109&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47109&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47109&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47109&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47109&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47109&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47109&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47109&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47109&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47109&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47109&r=mysqlcfg

Reply via email to