Edit report at https://bugs.php.net/bug.php?id=62915&edit=1

 ID:                 62915
 Updated by:         cataphr...@php.net
 Reported by:        fel...@php.net
 Summary:            Memory leak when cloning unconstructed object
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            I18N and L10N related
 PHP Version:        Irrelevant
 Assigned To:        cataphract
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-08-24 15:16:59] larue...@php.net

maybe you can also take care of this :)

------------------------------------------------------------------------
[2012-08-24 02:27:17] larue...@php.net

Hmm, wrong usage at first,  I think this should be marked as a low priority 
task. 
:)

------------------------------------------------------------------------
[2012-08-23 23:39:39] fel...@php.net

Same problem is reproducible with:
- NumberFormatter
- MessageFormatter
- IntlDateFormatter

------------------------------------------------------------------------
[2012-08-23 23:17:07] fel...@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

Reply via email to