Bug #62915 [NEW]: Memory leak when cloning unconstructed object
| From: | felipe@php.net | Date: | Thu, 23 Aug 2012 23:17:07 +0000 |
| Subject: | Bug #62915 [NEW]: Memory leak when cloning unconstructed object | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172849@lists.php.net to get a copy of this message | ||
From: felipe
Operating system:
PHP version: Irrelevant
Package: I18N and L10N related
Bug Type: Bug
Bug description:Memory leak when cloning unconstructed object
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 bug report at https://bugs.php.net/bug.php?id=62915&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62915&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62915&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62915&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62915&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62915&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62915&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62915&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62915&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62915&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62915&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62915&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62915&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62915&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62915&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62915&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62915&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62915&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62915&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62915&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62915&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62915&r=mysqlcfg