Sefault in clone
| From: | Timm Friebe | Date: | Tue, 14 Sep 2004 22:08:58 +0000 |
| Subject: | Sefault in clone | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-12815@lists.php.net to get a copy of this message | ||
<?php
class Person {
public $name;
}
$a[]= new Person();
$b = clone $a;
$b[0]->name = 'Copy';
?>
$ php5 test.php
Warning: __clone method called on non-object in
/usr/home/thekid/test.php on line 6
[Wed Sep 15 00:07:35 2004] Script: 'test.php'
---------------------------------------
/usr/home/thekid/devel/php/php/Zend/zend_variables.c(179) : Block
0x083B67F0 status:
/usr/home/thekid/devel/php/php/Zend/zend_execute.h(62) : Actual location
(location was relayed)
Beginning: Overrun (magic=0x00000000, expected=0x7312F8DC)
Segmentation fault (core dumped)
- Timm