?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
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 =
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;
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