php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72634 Env variables cause empty configure in php-config
Submitted: 2016-07-20 19:10 UTC Modified: 2017-01-09 05:37 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: dkasyanov at cloudlinux dot com Assigned: krakjoe (profile)
Status: Closed Package: *Compile Issues
PHP Version: 7.0.9 OS: RHEL6
Private report: No CVE-ID: None
 [2016-07-20 19:10 UTC] dkasyanov at cloudlinux dot com
Description:
------------
Related to https://bugs.php.net/bug.php?id=72180
If we are using environment variables such as LDFLAGS ./configure command doesn't write arguments to config.nice and php-config.
Also we have empty ./configure string in phpinfo()/php -i.



Test script:
---------------
# LDFLAGS="-L/opt/alt/pcre/usr/lib64" ./configure --enable-debug
# cat config.nice

Expected result:
----------------
#! /bin/sh
#
# Created by configure

LDFLAGS='-L/opt/alt/pcre/usr/lib64' \
'./configure' \
'--enable-debug' \
"$@"

Actual result:
--------------
#! /bin/sh
#
# Created by configure

LDFLAGS='-L/opt/alt/pcre/usr/lib64' \
'./configure' \
"$@"

Patches

acloacl_configure.patch (last revision 2016-07-21 10:54 UTC by dkasyanov at cloudlinux dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-20 19:39 UTC] cmb@php.net
-Package: *General Issues +Package: *Compile Issues
 [2016-07-21 10:58 UTC] dkasyanov at cloudlinux dot com
The issue is with environment variables containing slash (/) symbol.
I have added the patch which escapes slash symbol in environment variables.
Please, review it.
 [2016-07-21 11:11 UTC] dkasyanov at cloudlinux dot com
-PHP Version: 7.0.8 +PHP Version: 7.0.9
 [2016-07-21 11:11 UTC] dkasyanov at cloudlinux dot com
PHP 7.0.9 is exposed also.
 [2016-08-22 14:23 UTC] phpnet at cabillot dot eu
PHP 7.0.10 is exposed also.
 [2016-11-10 13:36 UTC] phpnet at cabillot dot eu
PHP 7.0.13 still has the problem...
 [2016-12-08 13:23 UTC] phpnet at cabillot dot eu
Seem to be ok now with the 7.0.14, even if the changelog don't say a word about this bug.
 [2016-12-09 10:43 UTC] dkasyanov at cloudlinux dot com
Yes. 7.0.14 fixes this issue.
 [2017-01-09 05:37 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2017-01-09 05:37 UTC] krakjoe@php.net
The fix for this bug has been committed.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC