Bug #14542 Updated: Apache Crash

From: Date: Sun, 16 Jun 2002 04:11:58 +0000
Subject: Bug #14542 Updated: Apache Crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10552@lists.php.net to get a copy of this message
 ID:               14542
 Updated by:       sniper@php.net
 Reported By:      dward@maidencreek.com
 Status:           Open
-Bug Type:         Unknown/Other Function
+Bug Type:         Scripting Engine problem
 Operating System: Linux 2.4.5
 PHP Version:      4.1.1
 New Comment:

reclassified.



Previous Comments:
------------------------------------------------------------------------

[2002-04-27 19:09:27] sniper@php.net

It's not fixed..


------------------------------------------------------------------------

[2002-04-27 10:08:11] rasmus@php.net

Fixed in CVS

------------------------------------------------------------------------

[2002-04-25 16:07:25] charmaine.tian@contec-innovations.com

The cause of the bug is that the following code is commented out in the
timeout handler (zend_timeout() in zend_execute_API):

        /* is there any point in this?  we're terminating the request
anyway...
        PG(connection_status) |= PHP_CONNECTION_TIMEOUT;
        */

In our case, we need this error status to be set correctly. We want to
be able to detect the error when a script is terminated due to timeout.

------------------------------------------------------------------------

[2001-12-16 02:22:59] dward@maidencreek.com

It seems that when a script terminates due to a
timeout connection_status() returns 0 (and
connection_timeout() no longer exists).

When aborted by a user connection_status() does return 1.

Sample script:

<?PHP
set_time_limit(1);
register_shutdown_function("shutdown");

function shutdown(){
$status = connection_status();
$err = "Connection status ($status).\n";
error_log($err, 3, "/tmp/phpstatus.log");
}

while(true){
        echo ".";
}

?>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=14542&edit=1



Thread (1 message)

  • sniper@php.net
  • Unknown Message
    • sniper@php.net
« previous php.bugs (#10552) next »