MantisBT - Xdebug
View Issue Details
0000171XdebugUsage problems (Wrong Results)public2006-03-10 12:352006-03-10 13:10
Xuefer 
 
normalcrashalways
closedopen 
gentoolinuxlastest stable
2.0.0dev 
 
4.3.11
0000171: set_time_limit stack overflow on 2nd request
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.
<?php
set_time_limit(10);
?>
request the page twice;
No tags attached.
Issue History
2006-03-10 12:35XueferNew Issue
2006-03-10 13:10derickStatusnew => closed
2006-03-10 13:10derickNote Added: 0000384
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0000384)
derick   
2006-03-10 13:10   
Thanks for this report. I fixed this differently be simply restoring the function pointers in RSHUTDOWN.