Bug #62915 [Opn]: Memory leak when cloning unconstructed object
| From: | felipe@php.net | Date: | Thu, 23 Aug 2012 23:39:39 +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-172850@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: felipe@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
Block user comment: N
Private report: N
New Comment:
Same problem is reproducible with:
- NumberFormatter
- MessageFormatter
- IntlDateFormatter
Previous Comments:
------------------------------------------------------------------------
[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