From:             michielv at zeelandnet dot nl
Operating system: Linux mdk 8.2
PHP version:      5CVS-2003-03-22 (dev)
PHP Bug Type:     Class/Object related
Bug description:  Segmentation fault when i do __clone

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 bug report at http://bugs.php.net/?id=22826&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22826&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22826&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22826&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22826&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22826&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22826&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22826&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22826&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22826&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22826&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22826&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22826&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22826&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22826&r=gnused

Reply via email to