#31020 [Opn->Bgs]: Logic error in ext/mssql/config.m4

From: Date: Wed, 08 Dec 2004 12:09:34 +0000
Subject: #31020 [Opn->Bgs]: Logic error in ext/mssql/config.m4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69927@lists.php.net to get a copy of this message
ID: 31020 Updated by: derick@php.net Reported By: adamg at pld-linux dot org -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Irrelevant PHP Version: 5CVS-2004-12-08 (dev) New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. The same problem is described in #31019. Previous Comments: ------------------------------------------------------------------------ [2004-12-08 12:41:16] adamg at pld-linux dot org Description: ------------ As of 5.0.3RC1 following line was introduced in ext/mssql/config.m4 if test ! -r "$FREETDS_INSTALLATION_DIR/lib/libtds.a" || test ! -r "$F REETDS_INSTALLATION_DIR/lib/libtds.so"; then Which, translated into human, means: "IF either libtds.a OR libtds.so is not readable by, fail" Which is a nonsense, since it requires presence of both of the files - otherwise configure script will refuse to compile. Obviously the || should be changed to &&. --- php-5.0.3RC1/ext/mssql/config.m4~ 2004-11-22 20:45:17.000000000 +0100 +++ php-5.0.3RC1/ext/mssql/config.m4 2004-12-08 11:53:48.786803952 +0100 @@ -32,7 +32,7 @@ fi fi - if test ! -r "$FREETDS_INSTALLATION_DIR/lib/libtds.a" || test ! -r "$FREETDS_INSTALLATION_DIR/lib/libtds.so"; then + if test ! -r "$FREETDS_INSTALLATION_DIR/lib/libtds.a" && test ! -r "$FREETDS_INSTALLATION_DIR/lib/libtds.so"; then AC_MSG_ERROR(Could not find $FREETDS_INSTALLATION_DIR/lib/libtds.[a|so]) fi ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31020&edit=1

« previous php.bugs (#69927) next »