php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45082 ReflectionClass make apache restart
Submitted: 2008-05-23 21:50 UTC Modified: 2008-05-29 23:03 UTC
Votes:3
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: pierrick at webstart dot fr Assigned:
Status: Not a bug Package: Reflection related
PHP Version: 5.2.6 OS: Windows XP,2003
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: pierrick at webstart dot fr
New email:
PHP Version: OS:

 

 [2008-05-23 21:50 UTC] pierrick at webstart dot fr
Description:
------------
When i make an Apache Bench with more than 1 concurrency access on this peace of code it make my apache crash but just on physical windows machine (Work on Linux and Windows Virtual Machines)

Here is the apache bench :
ab.exe -n100 -c2 http://localhost/bug.php

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

/**
 * FileName : bug.php
 */

class foo {
	public $a = null;
	public $b = null;
}


for($i = 0 ; $i < 20 ; $i++)
{
	$reflection = new ReflectionClass('foo');
	$reflection->getProperties();
	++$cpt;
}


Expected result:
----------------
No apache Crash 

Actual result:
--------------
zend_mm_heap corrupted
zend_mm_heap coError in my_thread_global_end(): 66 threads didn't exit
[Fri May 23 17:22:49 2008] [notice] Parent: child process exited with status 1 -- Restarting.
[Fri May 23 17:22:49 2008] [notice] Apache/2.2.8 (Win32) PHP/5.2.5 configured -- resuming normal operations
[Fri May 23 17:22:49 2008] [notice] Server built: Jan 18 2008 00:37:19
[Fri May 23 17:22:49 2008] [notice] Parent: Created child process 3052
[Fri May 23 17:22:49 2008] [notice] Child 3052: Child process is running
[Fri May 23 17:22:49 2008] [notice] Child 3052: Acquired the start mutex.
[Fri May 23 17:22:49 2008] [notice] Child 3052: Starting 64 worker threads.
[Fri May 23 17:22:49 2008] [notice] Child 3052: Starting thread to listen on port 80.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-27 18:21 UTC] pierrick at webstart dot fr
I just try with the CVS snapshot and there's the same problem.
 [2008-05-29 23:03 UTC] jani@php.net
See bug #44078 (this actually has nothing to do with reflection..)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC