|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-17 10:06 UTC] carl at voodoomedia dot co dot uk
I'm having some very strange issues with maximum execution timeouts. I've set them to 45 seconds in my php.ini and it's picking these up fine, but what I am getting is errors telling there that there are timeouts in lines which I really would not expect any timesout to happen. for example
[17-Mar-2003 16:00:17] PHP Fatal error: Maximum execution time of 45 seconds exceeded in e:\www\include\inc_sessiondata.php on line 13
and ine 13 in this file is
session_register("tmp_username");
only thing before this line is a session_start();
so I cannot see how a 45 second timeout could happen there?
I've also had a timeout when just doing includes as below
include_once('include\inc_showheader.php');
showheader.php just includes HTML and only PHP code in there are simple echo's
So i'm confused as to why a timeout would happen with the above situations.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
I'm afraid that "You're doing something wrong" just isn't an acceptable answer. It's a problem with PHP's session handler or serializer for sure. I can replicate it by using this script <?php session_start(); if (!isset($_SESSION['tempVal'])) $_SESSION['tempVal'] = 0; $_SESSION['tempVal']++; echo 'session val is now '.$_SESSION['tempVal'].'<BR>'; echo '<A HREF="sesstest.php">click here to reload</A> ?> If I call that page from an automated page refresh script that I have at some point within an hour I will get [25-Mar-2003 11:37:27] PHP Fatal error: Maximum execution time of 40 seconds exceeded in e:\www\sesstest.php on line 2.