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
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: 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

Pull Requests

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: Thu Oct 31 22:01:27 2024 UTC