Memory leak when cloning unconstructed object
| Bug #62915 | Memory leak when cloning unconstructed object | ||||
|---|---|---|---|---|---|
| Submitted: | 2012-08-23 23:17 UTC | Modified: | 2012-08-26 21:54 UTC | ||
| From: | felipe@php.net | Assigned: | cataphract (profile) | ||
| Status: | Closed | Package: | I18N and L10N related | ||
| PHP Version: | Irrelevant | OS: | |||
| Private report: | No | CVE-ID: | None | ||
[2012-08-23 23:17 UTC] 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 ===]]>
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2012-08-23 23:39 UTC] felipe@php.net
[2012-08-24 02:27 UTC] laruence@php.net