php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56667 (PHP5.1RC4) Apache Sig11 when class is read from cache
Submitted: 2005-11-20 18:17 UTC Modified: 2006-02-24 02:02 UTC
From: nigrez at nius dot waw dot pl Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5_1 CVS-2005-11-20 OS: Linux 2.6.14 (dist: PLD)
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: nigrez at nius dot waw dot pl
New email:
PHP Version: OS:

 

 [2005-11-20 18:17 UTC] nigrez at nius dot waw dot pl
Description:
------------
Apache gets sig11 while using PHP5.1RC4 while loading a 
class previously cached. This happens evry random() 
request, ussualy first after cache. The offending part of 
the code is the 'static' modifier. W/o it everything works 
fine. 

Reproduce code:
---------------
<?php

	class nefrTheme  {
		public static $objectName = __CLASS__;
	}

	class nt extends nefrTheme { }

	$n = new nt();

?>

Expected result:
----------------
Plain page loaded.  

Actual result:
--------------
Apache error_log: 
[Mon Nov 21 00:04:52 2005] [notice] child pid 17655 exit 
signal Segmentation fault (11) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-20 18:40 UTC] rasmus@php.net
I should probably have a big disclaimer on the CVS tree right now.  It is not in a sane state right now.  Grab version 3.0.8 if you need it to work reliably right now.
 [2005-11-21 14:20 UTC] nigrez at nius dot waw dot pl
Well.. Accualy I used stable APC - latest: 3.0.8. It was 
the PHP which was unstable - 4th RC of 5.1.
 [2005-11-21 14:23 UTC] rasmus@php.net
oh, oops, mistook the version thig there to mean CVS version of APC.

And I think we fixed static properties in CVS, but I will check that and get back to this report soon.
 [2006-01-05 16:02 UTC] gopalv82 at yahoo dot com
<i> And I think we fixed static properties in CVS</i>

I thought so too, but looks like there is a new member in zend_class_entry which is called default_static_members which is not copied over to shared memory.

Have a fix for this based on INH_FIX, will merge into HEAD. Test and send a patch
 [2006-02-24 02:02 UTC] rasmus@php.net
This should be fixed in CVS now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC