[xdebug-dev] Bug 0000171: set_time_limit stack overflow on 2nd request

From: <xdebug-dev[@]lists.xdebug.org>
Date: Fri, 10 Mar 2006 12:35:17 +0100

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_advanced_page.php?bug_id=0000171
======================================================================
Reporter: Xuefer
Handler:
======================================================================
Project: Xdebug
Bug ID: 171
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: new
Operating System:
PHP Version: 4.3.11
Xdebug Version: 2.0.0beta4
======================================================================
Date Submitted: 2006-03-10 12:35 CET
Last Modified: 2006-03-10 12:35 CET
======================================================================
Summary: set_time_limit stack overflow on 2nd request
Description:
sorry, this is another lazy bug report with only a few notes, i promise to
attach a clean, patch if the bug system allow me. but the fix is simple, i
think. just check xdebug.c, look for set_time_limit.

orig->internal_function.handler is already set to
zif_xdebug_set_time_limit in the 1st request, and
XG(orig_set_time_limit_func) = orig->internal_function.handler
can be wrong
and PHP_FUNCTION(xdebug_set_time_limit) will call itself until stack
overflow

suggested fix:
override of set_time_limit (and var_dump) in RINIT should be moved to
MINIT, with EG changed to CG.

======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2006-03-10 12:35Xuefer New Bug
2006-03-10 12:35Xuefer Bug Monitored: Xuefer
======================================================================
Received on Fri Mar 10 2006 - 12:35:22 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST