Bug #16023: php4apache.dll 4.1.2 for Windows misreporting its version via phpinfo()
| From: | fseesink at usa dot net | Date: | Tue, 12 Mar 2002 18:22:22 +0000 |
| Subject: | Bug #16023: php4apache.dll 4.1.2 for Windows misreporting its version via phpinfo() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-2315@lists.php.net to get a copy of this message | ||
From: fseesink@usa.net
Operating system: Windows 2000 SP2 w/ all updates
PHP version: 4.1.2
PHP Bug Type: Apache related
Bug description: php4apache.dll 4.1.2 for Windows misreporting its version via phpinfo()
Quick note: this is a minor issue, but thought it best to report it since
others may be confused when they do the traditional <? phpinfo(); ?>
script to test their setup.
I have been running Apache for Windows v1.3.23 with PHP v4.1.1 (Apache
module) as a service. All works well, with \WINNT\PHP.INI configured, PHP
located in "\PHP".
* Downloaded PHP v4.1.2 for Windows today (12Mar2002)...the .ZIP file.
* Decompressed the .ZIP file.
* Noted differences in php.ini-recommended vs. my current php.ini file
(copied the cgi.* entries to my php.ini file, etc.).
* Once ready, renamed my current "\PHP" directory to "\PHP v4.1.1", then
renamed the decompressed directory from "\php-4.1.2-Win32" to "\PHP".
Effectively swapped PHP 4.1.2 into place.
* Shutdown Apache service, then started it again.
* In webbrowser, loaded a php file containing
____________________
<?php phpinfo(); ?>
____________________
* Loading this webpage shows "PHP Version 4.1.1", NOT "PHP Version 4.1.2"
as one might expect.
* Using GRC.COM's ID Serve program, I get the following response:
"Server: Apache/1.3.23 (Win32) PHP/4.1.3-dev"
* Using NetCraft.com's "What's that site running?" feature, I get the
following response:
"Apache/1.3.23 (Win32) PHP/4.1.3-dev on Windows 2000"
In a nutshell, it appears that the Apache for Windows PHP SAPI module is
listing itself as both v4.1.1 and v4.1.3-dev, but NOT v4.1.2. Again,
minor issue. But thought you should be aware, in case many people start
contacting you about this.
P.S. From the Command Prompt, if I enter 'php -v' in the \PHP directory,
the CGI version accurately reports "4.1.2", so this issue may only involve
the Apache SAPI module. I can't speak for any of the other SAPI modules.
--
Edit bug report at http://bugs.php.net/?id=16023&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16023&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16023&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16023&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16023&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16023&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16023&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16023&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16023&r=submittedtwice