ID:               22826
 Updated by:       [EMAIL PROTECTED]
 Reported By:      michielv at zeelandnet dot nl
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Linux mdk 8.2
 PHP Version:      5CVS-2003-03-22 (dev)
 New Comment:

dupe of bug #22801. Please add further comments at that page.



Previous Comments:
------------------------------------------------------------------------

[2003-03-22 10:04:49] michielv at zeelandnet dot nl

I get the seg fault with this code:

[EMAIL PROTECTED] /home/michiel/extra/1/php5/install# ./bin/php -r
'
class MyCloneable
{
static $id=0;
function MyCloneable ()
{
$this->id = self::$id++;
}
function __clone ()
{
$this->name = $that->name;
$this->address = "New York";
$this->id = self::$id++;
}
}
$obj = new MyCloneable();
$obj->name = "Hello";
$obj->address = "Tel-Aviv";
$obj = $obj->__clone();
'
Segmentation fault
[EMAIL PROTECTED] /home/michiel/extra/1/php5/install#

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22826&edit=1

Reply via email to