|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22826 Segmentation fault when i do __clone
Submitted: 2003-03-22 10:04 UTC Modified: 2003-03-22 15:26 UTC
From: michielv at zeelandnet dot nl Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5CVS-2003-03-22 (dev) OS: Linux mdk 8.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: michielv at zeelandnet dot nl
New email:
PHP Version: OS:


 [2003-03-22 10:04 UTC] michielv at zeelandnet dot nl
I get the seg fault with this code: /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 /home/michiel/extra/1/php5/install#


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-22 15:26 UTC]
dupe of bug #22801. Please add further comments at that page.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC