View Issue Details

IDProjectCategoryView StatusLast Update
0000171XdebugUncategorizedpublic2006-03-10 13:10
ReporterXuefer Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionopen 
PlatformgentooOSlinuxOS Versionlastest stable
Product Version2.0.0dev 
Summary0000171: 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.

Steps To Reproduce

<?php
set_time_limit(10);
?>
request the page twice;

TagsNo tags attached.
Operating System
PHP Version4.3.11

Activities

derick

2006-03-10 13:10

administrator   ~0000384

Thanks for this report. I fixed this differently be simply restoring the function pointers in RSHUTDOWN.

Issue History

Date Modified Username Field Change
2006-03-10 12:35 Xuefer New Issue
2006-03-10 13:10 derick Status new => closed
2006-03-10 13:10 derick Note Added: 0000384
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized