Bug #67610 [NEW]: Memory leak on zts debug build
| From: | hylent at qq dot com | Date: | Sat, 12 Jul 2014 09:27:30 +0000 |
| Subject: | Bug #67610 [NEW]: Memory leak on zts debug build | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-186577@lists.php.net to get a copy of this message | ||
From: hylent at qq dot com
Operating system: centos
PHP version: 5.4.30
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Memory leak on zts debug build
Description:
------------
On thread-safe debug build, in a try-catch code block, when constructing
a multidimensional array, in case that some value in the array throws
exceptions, there will be memory leaks!
Test script:
---------------
<?php
class Foo {
public static function bar() {
throw new Exception();
}
}
try {
$a = array(
'a' => 'aa',
'b' => array(
'c' => Foo::bar(),
),
);
} catch (Exception $e) {
echo $e, PHP_EOL;
}
--
Edit bug report at https://bugs.php.net/bug.php?id=67610&edit=1
--