#5393 [Opn->]: Potential bug in php3_request_shutdown()
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 20:09:11 +0000 |
| Subject: | #5393 [Opn->]: Potential bug in php3_request_shutdown() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21119@lists.php.net to get a copy of this message | ||
ID: 5393
Updated by: hholzgra@php.net
Reported By: priit@bluemoon.ee
-Status: Open
+Status: Won\'t fix
Bug Type: Other
Operating System: SunOS 2.7 / RH Linux 6.1
PHP Version: 3.0.16
New Comment:
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.
Previous Comments:
------------------------------------------------------------------------
[2000-07-06 00:26:56] priit@bluemoon.ee
By looking at code I discovered potential bug in
php3_request_shutdown(): When cleaning up function state stack
last_symbol_table is initated to NULL, then function_states in
function_state_stack are freed from top to bottom, while
updating/checking last_symbol_table and in the end current
function_state is freed. BUT logically current function_state belongs
to top of the stack and not to bottom, to witch symbol_table
last_symbol_table will point to
Fix:
Set last_symbol_table to GLOBAL(function_state).symbol_table, free
function_state and then proceed with function_state_stack freeing
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=5393&edit=1