php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40577 PHP 5 trying to use php4ts.dll when loading extensions
Submitted: 2007-02-21 12:08 UTC Modified: 2007-02-21 14:18 UTC
From: connie dot beckett at bowaterbuildingproducts dot c Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.1 OS: windows 2003 server and xp
Private report: No CVE-ID: None
 [2007-02-21 12:08 UTC] connie dot beckett at bowaterbuildingproducts dot c
Description:
------------
Installed PHP 5.2.1 on windows 2003 server. I am using the isapi version. Basic installation works fine, php is running. But then tried to add in extensions, none of the extensions showed up in phpinfo(). So then I tried running php from the command line. when I do this I get a pop-up error message that says "This application has failed to start because php4ts.dll was not found. Re-installing the application may fix the problem". After clicking ok on the error message window I then get an error message in the cmd window eg PHP Warning:  PHP Startup: Unable to load dynamic library 'c:\php\php_gd2.dll' -
 The specified module could not be found.
 in Unknown on line 0
This error message pops up for each extension that is trying to be loaded. 
All the .dll files are in the correct location ie c:\php\

I did think that maybe our previous installation of PHP4 had left something behind so I did a fresh installation of version 5 on a XP machine that has never had PHP installed and also didn't even have IIS installed. Again basic installation works fine but I cannot get the extensions to load and running from command line produces the same errors as the windows 2003 server installation.

If I comment out the extensions using ; then running from the command line does not produce any errors.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-21 12:14 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2007-02-21 12:38 UTC] connie dot beckett at bowaterbuildingproducts dot c
Why is this not classified as a bug? PHP 5.2.1 is looking for a .dll file that does not ship with PHP 5.2.1?
 [2007-02-21 12:57 UTC] tony2001@php.net
>Why is this not classified as a bug? 
Because it's not PHP problem.

>PHP 5.2.1 is looking for a .dll file that does not 
>ship with PHP 5.2.1?

Install PHP properly and remove any leftovers of the previous installations.
Some of the extensions won't load and that's expected, since they require third-party libraries which are missing on your system.
 [2007-02-21 13:44 UTC] connie dot beckett at bowaterbuildingproducts dot c
PHP IS installed properly, it runs PHP scripts

Installation was done on a clean machine, no previous versions of PHP ever installed

All third party libraries were installed. 


The problem is PHP 5.2.1 is looking to use php4ts.dll which is a dll file which ships with PHP4, it does NOT ship with PHP5. Why does PHP5 try and access php4ts.dll? 
How can that not be a PHP bug? Sorry but I am getting very frustrated with the PHP5 installation.
 [2007-02-21 13:54 UTC] tony2001@php.net
>The problem is PHP 5.2.1 is looking to use php4ts.dll
Not PHP, but your system.
Look for php4ts.dll in your system, I heard of some HP tools that install PHP4 (so it may be present even if you didn't install it yourself).
 [2007-02-21 14:18 UTC] derick@php.net
On top of that, check if you are not having a PHP 4 extension on your system (that depends on php4ts.dll).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 12:01:33 2025 UTC