php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:09 UTC] hholzgra@php.net
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: Sat Dec 21 16:01:28 2024 UTC