php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39004 Configure Command './configure' 'dummy' 'grep' 'ggrep' !?
Submitted: 2006-09-30 14:50 UTC Modified: 2006-10-02 20:50 UTC
From: phpbugs at thequod dot de Assigned: iliaa (profile)
Status: Closed Package: *Compile Issues
PHP Version: 5CVS-2006-09-30 (CVS) OS: Ubuntu Linux
Private report: No CVE-ID: None
 [2006-09-30 14:50 UTC] phpbugs at thequod dot de
Description:
------------
I've just configured PHP_5_2 through the following script 
(wrapper for configure) and now 
get "    './configure' 'dummy' 'grep' 'ggrep'" as 
the "Configure Command" in phpinfo().

Reproduce code:
---------------
#!/bin/bash

./configure \
--enable-calendar \
--enable-exif \
--enable-force-cgi-redirect  \
--enable-gd-native-ttf \
--enable-inline-optimization \
--enable-mbstring=all \
--enable-mbregex \
--enable-memcache \
--enable-memory-limit \
--enable-sockets \
--enable-track-vars \
--with-bz2 \
--with-dom \
--with-freetype-dir \
--with-gd \
--with-gettext \
--with-iconv \
--with-imap \
--with-imap-ssl \
--with-jpeg-6b \
--with-jpeg-dir \
--with-kerberos \
--with-ldap \
--with-ldap-sasl \
--with-mcrypt \
--with-mysql \
--with-openssl \
--with-png-dir \
--without-mm \
--with-sqlite \
--with-pcre-regex \
--with-ttf \
--with-zlib \
--with-zlib-dir=/bin \
--with-apxs2=/usr/bin/apxs2

make
make install
php -i | grep "Configure Command"

Expected result:
----------------
The configure line/options.

Actual result:
--------------
Configure Command =>  './configure' 'dummy' 'grep' 'ggrep'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-01 20:37 UTC] iliaa@php.net
What version of autoconf are you using?
 [2006-10-01 20:46 UTC] phpbugs at thequod dot de
2.60-1 (Debian/Ubuntu)
 [2006-10-01 21:51 UTC] iliaa@php.net
Try this patch and let me know if that fixes the problem
http://bb.prohost.org/patch/bug39004.txt
 [2006-10-01 22:44 UTC] phpbugs at thequod dot de
Better. But now all arguments are encapsulated in two 
single quotes, while they were given in one single quote 
before, e.g.:
Configure Command 
=>  ''--enable-calendar'' ''--enable-exif'' ...
 [2006-10-01 22:48 UTC] phpbugs at thequod dot de
Also the initial "./configure" command is missing in the 
output after applying the patch.
 [2006-10-02 15:35 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2006-10-02 19:33 UTC] phpbugs at thequod dot de
Not quite. There are now single quotes again, but the 
leading "./configure" is missing.

If this is the desired behaviour (different to 5.1 at 
least), then ok.
 [2006-10-02 19:53 UTC] tony2001@php.net
Please try the next snapshot, I've applied one more fix.
 [2006-10-02 20:28 UTC] phpbugs at thequod dot de
I've noticed it in php.cvs, but this as before the patch.

config.nice looks ok:
"""
#! /bin/sh
#
# Created by configure

'./configure' \
'--enable-calendar' \
'--enable-exif' \
...
"""

But in phpinfo it does not:
Configure Command 
=>  '--enable-calendar' '--enable-exif' ...
(missing the "./configure" command itself)
 [2006-10-02 20:50 UTC] tony2001@php.net
Ok, that's now fixed too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 09:01:32 2024 UTC