Bug #73219 [NEW]: acinclude.m4 sed syntax garbled
From: rainer dot jung at kippdata dot de
Operating system: Solaris, Linux
PHP version: 7.0.11
Package: Unknown/Other Function
Bug Type: Bug
Bug description:acinclude.m4 sed syntax garbled
Description:
------------
In acinclude.m4 the following line was introduced by commit
https://github.com/php/php-src/commit/1524e00ccc8d99885dae0a4567b8b45a2ff44ba2#diff-a5522b90382504dc530177f63ced5209
clean_configure_args=$(echo $clean_configure_args | sed -e
"s/'$var=$val'//")
If the value of the variable contains a "/" character, this will result
in an sed error message, because "/" was chosen as the delimiter. In our
case we have CC="gcc -specs=/shared/build/autobuild/specs/specs.solaris"
but it can also happen e.g. in CFLAGS, LDFLAGS etc.
Error on Solaris:
sed: command garbled: s/'CC=gcc
-specs=/shared/build/autobuild/specs/specs.solaris'//
Error on Linux:
sed: -e expression #1, char 26: unknown option to `s'
The errors happen during configure run for PHP, but also when the
configure generated by phpize is being run for an extension.
I suggest to use "#" instead of "/" as delimiter, because it is very
unlikely to be part of the variable values.
The problem currently occurs in PHP 7.0 and 7.1, likely also in trunk.
The change that causes it has not been backported to 5.6, so no need to
fix 5.6.
--
Edit bug report at https://bugs.php.net/bug.php?id=73219&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73219&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73219&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73219&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73219&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73219&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73219&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73219&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73219&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73219&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73219&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73219&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73219&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73219&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73219&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73219&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73219&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73219&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73219&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73219&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73219&r=mysqlcfg
Thread (7 messages)
- rainer dot jung at kippdata dot de