Re: [PHP-DEV] refcount and hence double free issue

2005-04-13 Thread Kamesh Jayachandran
?php class MyTextSanitizer { var $smileys=array() function MyTextSanitizer() {} function getSmileys() { return $this-smileys; } } $myts = new MyTextSanitizer(); $smiles = $myts-getSmileys(); //calling by ref alone causes improper ? The opcodes for the above script ZEND_FETCH_CLASS ZEND_NEW

[PHP-DEV] refcount and hence double free issue

2005-04-06 Thread Kamesh Jayachandran
Hi All, I have come across a double free because of improper refcount manipulation. ?php class MyTextSanitizer { var $smileys=array() function MyTextSanitizer() {} function getSmileys() { return $this-smileys; } } $myts = new MyTextSanitizer(); $smiles =

Re: [PHP-DEV] refcount and hence double free issue

2005-04-06 Thread Derick Rethans
On Wed, 6 Apr 2005, Kamesh Jayachandran wrote: Hi All, I have come across a double free because of improper refcount manipulation. ?php class MyTextSanitizer { var $smileys=array() function MyTextSanitizer() {} function getSmileys() { return $this-smileys;

Re: [PHP-DEV] refcount and hence double free issue

2005-04-06 Thread Kamesh Jayachandran
It happens in php-5.0.4 also. With regards Kamesh Jayachandran On Wed, 6 Apr 2005 09:16:34 +0200 (CEST), Derick Rethans [EMAIL PROTECTED] said: On Wed, 6 Apr 2005, Kamesh Jayachandran wrote: Hi All, I have come across a double free because of improper refcount manipulation. ?php