php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5766 ISAPI threadsafeness
Submitted: 2000-07-24 22:44 UTC Modified: 2001-06-12 12:34 UTC
From: jroller at mediaone dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: NT4
Private report: No CVE-ID: None
 [2000-07-24 22:44 UTC] jroller at mediaone dot net
When taking multiple concurrent connections (SMP machine), php interprets scripts very wrongly.

I can reproduce this easily by hitting the server with a web browser while benchmarking with apachebench.
(ab -n 50 -c 3 http://host/large-script.php)

Instead of the proper results, I get these error messages:

1)
PHP has encountered an Access Violation at 016CCEFA
Warning: Nesting level too deep - recursive dependency? in
d:\include\global.pi on line 34

(line 34 is the function declaration of a simple debug function included in a global header specified in registry Per Directory Values auto_prepend_file.)

34: 
function DebugComment($sz){
  // Conditionally display debug message if we have debugging enabled.

  global $aDebug;

  if ($aDebug)
    printf("<!-- %s -->\n",$sz);
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-02 01:07 UTC] waldschrott@php.net
This is a known bug, currently under examination
 [2001-06-12 12:34 UTC] jmoore@php.net
Known bug.. lots of reports with more information, closing this one.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC