Bug #72634 [Com]: Env variables cause empty configure in php-config

From: Date: Mon, 22 Aug 2016 14:23:34 +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-203489@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:         phpnet at cabillot dot eu
 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.9
 Block user comment: N
 Private report:     N

 New Comment:

PHP 7.0.10 is exposed also.


Previous Comments:
------------------------------------------------------------------------
[2016-07-21 11:11:03] dkasyanov at cloudlinux dot com

PHP 7.0.9 is exposed also.

------------------------------------------------------------------------
[2016-07-21 10:58:03] 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-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


Thread (8 messages)

« previous php.bugs (#203489) next »