# Sefault in clone

- Thread: https://externals.io/message/12815
- Original archive: https://news-web.php.net/php.internals/12815
- Started by Timm Friebe on 2004-09-14T22:08:58+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12815 — Timm Friebe — 2004-09-14T22:08:58+00:00

URL: https://externals.io/message/12815#12815

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