php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45693 Startup Failure/DLL Not Found/Module Errors
Submitted: 2008-08-03 00:16 UTC Modified: 2008-08-04 08:39 UTC
From: lochiejohn at gmail dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.6 OS: Windows 2000
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: lochiejohn at gmail dot com
New email:
PHP Version: OS:

 

 [2008-08-03 00:16 UTC] lochiejohn at gmail dot com
Description:
------------
PHP Ver.5.2.6 can't find a whole stack of entry points/DLL files. The files do exist and are vaild and I have added C:/PHP5 to the Environment Variable List in the System Tab in Windows 2000. It still won't work hovever it makes IIS and Apache crash because of the 'CGI- Missing/Incomplete Headers' error. It appears that PHP is installed to the registry and by running php.exe and php-cgi.exe manually I discovered this:  

PHP Warning:  PHP Startup: bitset: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=1
PHP    compiled with module API=20050922, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
... an returns hundreds of them in a never-ending sea.

Expected result:
----------------
The IIS server responding with index.php -OR- index.php5

Actual result:
--------------
CGI Error:
The CGI processor misbehaved by returning a incomplete set of headers.
-OR-
IE7: 404 - Internet Exploere cannot display the webpage.
-OR-
IE6: Invalid syntax error.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-03 00:20 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

And before you install the snapshot, remove ALL existing files from previous PHP installations. Seems like you have some stale php5ts.dll somewhere in your system..
 [2008-08-03 00:26 UTC] lochiejohn at gmail dot com
I need both PHP4.3.3 and PHP5.2.6 running on the same server on different ports (PHP4 10.1.1.60:80 (Default), PHP5 10.1.1.60:1234 (PHP5 Runtime))
 [2008-08-03 00:27 UTC] jani@php.net
You just need to install the 2 different versions in 2 different locations. And fix your configuration. This is no bug in PHP.
 [2008-08-03 00:34 UTC] lochiejohn at gmail dot com
PHP4 is in C:\PHP\ on Apache 2.2
PHP5 is is C:\PHP5\ on IIS
Two separate configurations, ports, software, setup, DLL...
Everything is separate, apart from the two web-file locations-
Default 80: C:\Program Files\Apache Software Foundation\Apache 2.2\htdocs\
PHP5 1234:  C:\Program Files\Apache Software Foundation\Apache 2.2\htdocs\mediawiki-1.10.1\
 [2008-08-04 08:39 UTC] lochiejohn at gmail dot com
Additional Note:
The snapshot you provided 'ended prematurley because of a script error'. I downloaded the snapshot three times and none were sucessful.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 03:01:32 2025 UTC