#33941 [Asn->Csd]: overloading not working with arrays not stored as arrays

From: Date: Sat, 24 Dec 2005 01:48:15 +0000
Subject: #33941 [Asn->Csd]: overloading not working with arrays not stored as arrays
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90982@lists.php.net to get a copy of this message
ID: 33941 Updated by: sniper@php.net Reported By: gordon at heydon dot com dot au -Status: Assigned +Status: Closed Bug Type: Class/Object related Operating System: * PHP Version: 5CVS-2005-08-02 Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2005-09-17 01:53:06] tony2001@php.net For the record, I don't see any memleaks with 5.0/5.1/6.0 now. ------------------------------------------------------------------------ [2005-09-09 14:18:51] fanfatal at fanfatal dot pl In PHP 5.0.4 this bug has been corrected Greatings ;-) ... ------------------------------------------------------------------------ [2005-08-18 09:27:48] derick@php.net Can we atleast make sure it gives a nice big warning on this? Now it merely produces some leaks: <?php class Foo { function __set($name, $value) { var_dump($name, $value); } } $f = new Foo(); $f->bar[1] = 42; produces: derick@kossu:~$ php-6.0dev /tmp/foooo.php /dat/dev/php/php-6.0dev/Zend/zend_execute.c(827) : Freeing 0x08796494 (16 bytes), script=/tmp/foooo.php /dat/dev/php/php-6.0dev/Zend/zend_execute.c(1005) : Freeing 0x0879643C (35 bytes), script=/tmp/foooo.php /dat/dev/php/php-6.0dev/Zend/zend_hash.c(383) : Actual location (location was relayed) /dat/dev/php/php-6.0dev/Zend/zend_execute.c(1060) : Freeing 0x087963DC (44 bytes), script=/tmp/foooo.php /dat/dev/php/php-6.0dev/Zend/zend_API.c(712) : Actual location (location was relayed) Last leak repeated 1 time /dat/dev/php/php-6.0dev/Zend/zend_execute.c(1057) : Freeing 0x087842CC (16 bytes), script=/tmp/foooo.php === Total 5 memory leaks detected === ------------------------------------------------------------------------ [2005-08-05 12:06:17] dmitry@php.net This is not fixable :( ------------------------------------------------------------------------ [2005-08-05 11:44:23] sniper@php.net Dmitry "The Fixer", please check this out. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33941 -- Edit this bug report at http://bugs.php.net/?id=33941&edit=1

« previous php.bugs (#90982) next »