Bug #62915 [Opn]: Memory leak when cloning unconstructed object

From: Date: Fri, 24 Aug 2012 15:16:59 +0000
Subject: Bug #62915 [Opn]: Memory leak when cloning unconstructed object
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172885@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62915&edit=1 ID: 62915 Updated by: laruence@php.net Reported by: felipe@php.net Summary: Memory leak when cloning unconstructed object Status: Open Type: Bug Package: I18N and L10N related PHP Version: Irrelevant -Assigned To: +Assigned To: cataphract Block user comment: N Private report: N New Comment: maybe you can also take care of this :) Previous Comments: ------------------------------------------------------------------------ [2012-08-24 02:27:17] laruence@php.net Hmm, wrong usage at first, I think this should be marked as a low priority task. :) ------------------------------------------------------------------------ [2012-08-23 23:39:39] felipe@php.net Same problem is reproducible with: - NumberFormatter - MessageFormatter - IntlDateFormatter ------------------------------------------------------------------------ [2012-08-23 23:17:07] felipe@php.net Description: ------------ See below. Test script: --------------- <?php class foo extends IntlTimeZone { public $foo = 'test'; public function __construct() { } } $x = new foo; try { $z = clone $x; } catch (Exception $e) { var_dump($e->getMessage()); } Actual result: -------------- /home/felipe/dev/php-src/Zend/zend_API.c(1097) : Freeing 0x7F4A715F1288 (32 bytes), script=- [Thu Aug 23 20:13:00 2012] Script: '-' /home/felipe/dev/php-src/Zend/zend_API.c(1098) : Freeing 0x7F4A715F1DD8 (5 bytes), script=- /home/felipe/dev/php-src/Zend/zend_variables.c(121) : Actual location (location was relayed) === Total 2 memory leaks detected ===]]> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62915&edit=1

« previous php.bugs (#172885) next »