Edit report at https://bugs.php.net/bug.php?id=62915&edit=1
ID: 62915 Updated by: fel...@php.net Reported by: fel...@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] 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