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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Wed Dec 04 15:01:30 2024 UTC