Bug #72634 [Com]: Env variables cause empty configure in php-config
| From: | dkasyanov at cloudlinux dot com | Date: | Thu, 21 Jul 2016 10:58:05 +0000 |
| Subject: | Bug #72634 [Com]: Env variables cause empty configure in php-config | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202470@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72634&edit=1
ID: 72634
Comment by: dkasyanov at cloudlinux dot com
Reported by: dkasyanov at cloudlinux dot com
Summary: Env variables cause empty configure in php-config
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: RHEL6
PHP Version: 7.0.8
Block user comment: N
Private report: N
New Comment:
The issue is with environment variables containing slash (/) symbol.
I have added the patch which escapes slash symbol in environment variables.
Please, review it.
Previous Comments:
------------------------------------------------------------------------
[2016-07-20 19:10:05] 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' \
"$@"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72634&edit=1