php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30390 PHP 5.0.2 reports as Version 5.0.0 using phpinfo & phpversion
Submitted: 2004-10-11 08:28 UTC Modified: 2004-10-12 08:39 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: pnllan at swbell dot net Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.0.2 OS: WinXP
Private report: No CVE-ID: None
 [2004-10-11 08:28 UTC] pnllan at swbell dot net
Description:
------------
PHPINFO reports version "5.0.0" in the table header using the standard PHPINFO function.  However, scrolling down the page, it displays "Apache/2.0.51 (Win32) PHP/5.0.2" under the APACHE2HANDLER section.

PHPVERSION displays "5.0.0"

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

echo 'Current PHP version: ' . phpversion();

phpinfo();

?>

Expected result:
----------------
Current PHP version: 5.0.2 ...

followed by correct PHPINFO information:

HTML output:

<body> ...
<a href="http://www.php.net/"><img border="0" src="/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 5.0.2</h1>

Actual result:
--------------
PHP Version 5.0.0 (WRONG VERSION NUBMER)...

followed by correct PHPINFO information:

HTML output:

<body> ...
<a href="http://www.php.net/"><img border="0" src="/phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" alt="PHP Logo" /></a><h1 class="p">PHP Version 5.0.0</h1> .... which displays WRONG VERSION NUMBER (5.0.0).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 07:59 UTC] lbmeister at sbcglobal dot net
I get the exact same thing, and it's keeping me from using a couple of applications that check for PHP version 5.0.2 +.  Oh, well maybe this will be straightened out in 5.0.3 or 5.0.4.
 [2004-10-12 08:25 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. 

Thank you for your interest in PHP.

Find all php5ts.dll in your system, delete them and copy php5ts.dll in c:\windows\system32\.
Read installation instructions more carefully next time.
 [2004-10-12 08:39 UTC] derick@php.net
It's not only the php5ts.dll btw, also the php5apache.dll or whatever you are using.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 18:01:31 2024 UTC