|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-22 15:26 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 00:00:02 2025 UTC |
I get the seg fault with this code: root@michielv.ath.cx /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 root@michielv.ath.cx /home/michiel/extra/1/php5/install#