ID:               48476
 Updated by:       der...@php.net
 Reported By:      rvanvelzen at expert-shops dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: CentOS 5.2
 PHP Version:      5.2.9
-Assigned To:      
+Assigned To:      derick


Previous Comments:
------------------------------------------------------------------------

[2009-06-05 09:29:05] rvanvelzen at expert-shops dot com

Description:
------------
When trying to clone an extended class of DateTime of which the
constructor doesn't call parent::__construct, this causes PHP to die.

Reproduce code:
---------------
<?php
class MyDateTime extends DateTime {
        public function __construct() { }
}

var_dump(clone new MyDateTime);
?>

Expected result:
----------------
object(MyDateTime)#2 (0) {
}


Actual result:
--------------
Nothing, PHP crashes


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48476&edit=1

Reply via email to