php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17268 unset() hangs in infinite loop with Apache 1.3.24
Submitted: 2002-05-16 05:20 UTC Modified: 2002-05-27 16:57 UTC
From: stefan at fostam dot franken dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: Linux 2.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stefan at fostam dot franken dot de
New email:
PHP Version: OS:

 

 [2002-05-16 05:20 UTC] stefan at fostam dot franken dot de
My PHP 4.2.1 with Apache 1.3.24 has the following problem:

unset() hangs in most cases in an infinite loop. It's independent from the type of the variable, or if the variable does exist at all.

I experienced this problem only with the Apache-compiled-in version; the same PHP version as standalone CGI with the same compile options and php.ini doesn't have this problem.

The apache process executing a script which came to an unset() call uses >90% of the CPU time until it gets stopped by the maximum execution time limit.

register_globals is set to "On".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-16 05:34 UTC] derick@php.net
Please provide a short reproducing script.

Derick
 [2002-05-16 06:14 UTC] stefan at fostam dot franken dot de
No special script is required; even simple unset() calls fail:


<?php

$test = "test";

print "start";
unset($test);   // hangs and finally fails due to timeout in this line

?>
 [2002-05-17 09:04 UTC] mrobinso@php.net
Can you provide more details on your setup please?

I'm not able to reproduce this on my 2.4 box running
Apache-1.3.24. In fact, I used unset in almost every
conceivable way without a problem.
 [2002-05-27 16:52 UTC] stefan at fostam dot franken dot de
Sorry, the problem was related to ZendOptimizer 1.3.0.
It works fine by just replacing 1.3.0 by 1.3.1.
 [2002-05-27 16:57 UTC] derick@php.net
Not a bug In PHP -> bugs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 21:01:27 2024 UTC