From: cunha17 at uol dot com dot br
Operating system: RedHat Linux 9.0
PHP version: 5CVS-2003-08-31 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: Memory Leak with error handler and exceptions

This code below gives some memory leak. The leak only appears when
throwing exceptions inside error handler.
The code I'm using is a little more complex 'cause it translates PHP
errors into PHP Exceptions, but this piece of code reproduces the leak

Reproduce code:
function my_error($nr, $text, $file, $line, $vars)
throw new Exception($text);


try {
} catch (Exception $e) {
echo "EXCEPTION!!!";

Expected result:

Actual result:
EXCEPTION!!!/usr/src/zend2/php-src/Zend/zend.c(914) : Freeing 0x404C9340
(16 bytes), script=leak.php
=== Total 1 memory leaks detected ===

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]