php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18012 Info provided by phpinfo() does not update upon re-compiles
Submitted: 2002-06-27 04:48 UTC Modified: 2002-06-27 06:03 UTC
From: h3+php at x-maru dot org Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
 [2002-06-27 04:48 UTC] h3+php at x-maru dot org
Information provided by phpinfo() is not accurate when php is recompiled. An example: php is originally built against apache-1.3.24 with modules A, B, and C. Later, it is rebuilt against apache-1.3.26 with A, B, C, and D. phpinfo() continues to output information from the first build, ie the httpd in use is apache-1.3.24 and the ./configure line includes A, B, and C only.

This info is corrected if the rebuild is from scratch (make clean, rm config.cache, etc). However, my expectation is this information should be accurate for every build, without having to do a completely clean build.

This has been a bug for quite sometime, and is not specific to 4.2.1. I don't recall a version that didn't have this problem.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-27 06:02 UTC] sander@php.net
I've fixed the configure-line problem in CVS, but the Apache problem is harder: the Apache version is defined in http://www.amazon.de/exec/obidos/ASIN/3826608283/ httpd.h, provided with Apache. There's no clean way of checking whether it has been changed since the last 'make'.
If you have any ideas how to do this, or if you notice any other outdated phpinfo() entries, feel free to reopen this report. 
Thanks for your report. 
 [2002-06-27 06:03 UTC] sander@php.net
Hm... that amazon url doesn't belong there :)
 [2002-06-28 03:47 UTC] h3+php at x-maru dot org
It's so amazing- submit bug, go to bed, wake up- bug fixed!

Thank you so much for your time with this relatively trivial bug. I am mostly concerned with the ./configure line as I use it to remind me how to do builds.

As for the apache block of the phpinfo() output not being updated - the correct information appears elsewhere under the SERVER_SOFTWARE variable, so the correct information is indeed available somewhere.

Thanks again.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC