php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57443 APC causes Apache/PHP not to respond under certain circumstances
Submitted: 2006-12-18 20:03 UTC Modified: 2006-12-26 17:38 UTC
From: franz at haenel dot nu Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.6 OS: Ubuntu 6.10, FC3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: franz at haenel dot nu
New email:
PHP Version: OS:

 

 [2006-12-18 20:03 UTC] franz at haenel dot nu
Description:
------------
Only happens in the CVS-version:
After the code below has been executed twice (waiting at least two seconds between first and second run) Apache freezes on the apc_fetch-line until max_execution_time has been reached.

PHP 5.1.6, 5.2.0 5.2.1 RC1
Apache 1.3.37
Fresh CVS checkout (works, however, fine with APC 3.12)

Reproduce code:
---------------
if (!apc_fetch('g')) {
  $a = new a();
  apc_store('g', $a->d(), 2);
}
echo 'hello';
class a {
	var $e;
	function a() {
		$this->e[0] = new b();
		$this->e[1] = new b();
	}
	function d() {
		return array(0 => $this->e[0]->d(), 1 => $this->e[1]->d());
	}
}
class b {
	var $e;
	function b () {
		$this->e[] = $a;  //$a doesn't exist
	}
	function d() {
		$f = &$this->e;
		return $f;
	}
}

Expected result:
----------------
"hello" written on the screen

Actual result:
--------------
PHP Fatal error:  Maximum execution time of 30 seconds exceeded

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-26 17:38 UTC] shire@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC