MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000171XdebugUsage problems (Wrong Results)public2006-03-10 12:352006-03-10 13:10
ReporterXuefer 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionopen 
PlatformgentooOSlinuxOS Versionlastest stable
Product Version2.0.0dev 
Target VersionFixed in Version 
Summary0000171: set_time_limit stack overflow on 2nd request
Descriptionsorry, 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
Attached Files

- Relationships

-  Notes
(0000384)
derick (administrator)
2006-03-10 13:10

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 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker