Bug #61153 [Nab]: phpinfo reporting incorrect Configure Command
| From: | rasmus@php.net | Date: | Tue, 21 Feb 2012 18:39:35 +0000 |
| Subject: | Bug #61153 [Nab]: phpinfo reporting incorrect Configure Command | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167711@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61153&edit=1
ID: 61153
Updated by: rasmus@php.net
Reported by: 935c at itsynergy dot co dot uk
Summary: phpinfo reporting incorrect Configure Command
Status: Not a bug
Type: Bug
Package: PHP options/info functions
Operating System: Scientific Linux 6.1
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
Yes, odd autoconf quirk that -sysconfdir sets it still. File a bug with the
autoconf folks. There isn't anything we can do about that. But despite that,
"./configure --help" clearly shows that the correct way to set it is by using --
sysconfdir
Previous Comments:
------------------------------------------------------------------------
[2012-02-21 18:35:00] 935c at itsynergy dot co dot uk
In main/build-defs.h
#define PHP_SYSCONFDIR "/etc/mydir"
and yet
#define CONFIGURE_COMMAND " './configure' "
PHP_SYSCONFDIR would not show /etc/mydir unless CONFIGURE_COMMAND was called
with sysconfdir.
My default shell is bash :
$ ps -p $$
PID TTY TIME CMD
16040 pts/0 00:00:00 bash
$ bash --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
------------------------------------------------------------------------
[2012-02-21 17:54:12] rasmus@php.net
Forgot to close
------------------------------------------------------------------------
[2012-02-21 17:52:40] rasmus@php.net
Ah, I see your mistake. It is --sysconfigdir not -sysconfigdir
I think you will find it will magically work when you fix that.
------------------------------------------------------------------------
[2012-02-21 17:46:07] rasmus@php.net
Ok, since you are not stupid, track down why it isn't working on your system.
ext/standard/info.c shows that it prints the contents of the CONFIGURE_COMMAND
#define. This is defined in main/build-defs.h which gets generated from
main/build-defs.h.in at configure time. It also gets put into the top-level
Makefile. So check these files. If you don't see it in main/build-defs.h it would
mean that the configure VAR_SUBST stuff isn't working which should have caused
your entire build to fail badly, or the configure shell script isn't doing the
right thing on your system for some reason.
------------------------------------------------------------------------
[2012-02-21 17:36:17] 935c at itsynergy dot co dot uk
Whilst you're in the mood for not believing me, why not check out the hard facts
in my QA Report ?
http://qa.php.net/reports/details.php?
version=5.3.10&signature=30a4793560ae3e5862c1d5f16d5fa5fc&idreport=1519#phpinfo
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61153
--
Edit this bug report at https://bugs.php.net/bug.php?id=61153&edit=1