From: mjbauer at eecs dot tufts dot edu Operating system: Solaris 10 PHP version: 5.2.5 PHP Bug Type: Compile Failure Bug description: /usr/ucb/expr does not behave as expected
Description: ------------ When /usr/ucb/expr (one of four stock exprs in Solaris 10) is the first expr in $PATH, I get a configuration error when configuring php 5.2.5 If I change $PATH so that any other expr is first, configure proceeds as expected. Reproduce code: --------------- The code in the configure script that causes this is: if test `expr -- $0 : "'.*"` = 0; then CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'" else CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0" fi With /usr/ucb/expr, the expression evaluates to nothing. With any other expr on the system, it evaluates to 0. Expected result: ---------------- I expect to see the configure script run to successful completion. This happens with any other stock Solaris 10 expr (/usr/bin/expr, /usr/xpg4/bin/expr, /usr/xpg6/bin/expr) or GNU coreutils expr. Actual result: -------------- With the stock expr from /usr/ucb on Solaris 10, I get this result: ./configure --prefix=/usr/local/package --oldincludedir=/usr/local/package/include --enable-mod-charset --with-apxs2 --enable-fastcgi --with-openssl --with-zlib --with-bz2 --with-curl --with-gdbm --with-db4 --with-gd --with-gettext --with-gmp --with-ldap --with-ldap-sasl --with-mysql --with-ncurses --with-pdo-mysql --with-snmp --enable-ucd-snmp-hack --enable-soap --enable-sockets --enable-sqlite-utf8 --with-xsl --enable-zip loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... grep -E checking for a sed that does not truncate output... /usr/local/bin/sed expr: syntax error ./configure: test: argument expected -- Edit bug report at http://bugs.php.net/?id=44630&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44630&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44630&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44630&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44630&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44630&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44630&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44630&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44630&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44630&r=support Expected behavior: http://bugs.php.net/fix.php?id=44630&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44630&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44630&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44630&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44630&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44630&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44630&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44630&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44630&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44630&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44630&r=mysqlcfg