|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5393 Potential bug in php3_request_shutdown()
Submitted: 2000-07-06 00:26 UTC Modified: 2002-10-01 15:09 UTC
From: priit at bluemoon dot ee Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.16 OS: SunOS 2.7 / RH Linux 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: priit at bluemoon dot ee
New email:
PHP Version: OS:


 [2000-07-06 00:26 UTC] priit at bluemoon dot 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

Set last_symbol_table to GLOBAL(function_state).symbol_table, free function_state and then proceed with function_state_stack freeing


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:09 UTC]
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.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 20:01:31 2024 UTC