Bug #78049 [NEW]: pdo_informix configure does not pass INFORMIXDIR env var
| From: | peter dot siklosi at saint-gobain dot com | Date: | Wed, 22 May 2019 13:21:41 +0000 |
| Subject: | Bug #78049 [NEW]: pdo_informix configure does not pass INFORMIXDIR env var | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-220942@lists.php.net to get a copy of this message | ||
From: peter dot siklosi at saint-gobain dot com
Operating system: CentOS 7.6.1810
PHP version: 7.2.18
Package: PDO related
Bug Type: Bug
Bug description:pdo_informix configure does not pass INFORMIXDIR env var
Description:
------------
During the compilation of the pdo_informix module (1.3.3), the configure
script sets the INFORMIXDIR variable based on the --with-pdo-informix
parameter's value, but does not exports it. When the esql command is
executed (line 4156) it does not find the informixdir and falls back to
the default: /usr/informix and will fail
Test script:
---------------
[root@ad1svlx10 PDO_INFORMIX-1.3.3]# ./configure
--with-php-config=/opt/rh/rh-php72/root/usr/bin/php-config
--with-pdo-informix=/opt/IBM/Informix_Client-SDK
[...]
checking for gawk... gawk
checking for Informix driver for PDO... yes, shared
checking for PDO includes... /opt/rh/rh-php72/root/usr/include/php/ext
checking for includes and libraries... /opt/IBM/Informix_Client-SDK
checking Informix version... /opt/IBM/Informix_Client-SDK/bin/esql: line
516: /usr/informix/lib/esql/esqlc: No such file or directory
./configure: line 4156: test: -ge: unary operator expected
checking how to print strings... printf
[...]
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
[root@ad1svlx10 ~]# egrep 'INFDIR' /opt/IBM/Informix_Client-SDK/bin/esql
| head -1
INFDIR=${INFORMIXDIR=/usr/informix}
[root@ad1svlx10 ~]#
Expected result:
----------------
I do not provide a patch, as my make-fu is not good enough.
Actual result:
--------------
I expect the autodetection/parameter passing to work as expected.
--
Edit bug report at https://bugs.php.net/bug.php?id=78049&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78049&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78049&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78049&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=78049&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78049&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78049&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78049&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78049&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78049&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78049&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78049&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78049&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78049&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78049&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=78049&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78049&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78049&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78049&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78049&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78049&r=mysqlcfg