|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78049 pdo_informix configure does not pass INFORMIXDIR env var
Submitted: 2019-05-22 13:21 UTC Modified: 2019-05-22 14:52 UTC
From: peter dot siklosi at saint-gobain dot com Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 7.2.18 OS: CentOS 7.6.1810
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: peter dot siklosi at saint-gobain dot com
New email:
PHP Version: OS:


 [2019-05-22 13:21 UTC] peter dot siklosi at saint-gobain dot com
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
[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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-22 13:27 UTC] peter dot siklosi at saint-gobain dot com
#Forgot to add extra info:

uname -a
#Linux ad1svlx10 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/system-release
#CentOS Linux release 7.6.1810 (Core)
rpm -qa rh-php72\*

# Executed commands: 
mkdir $TMPDIR

mkdir informix_csdk
wget -O informix_csdk/ibm.csdk.4.50.FC1.LNX.tar ''
cd informix_csdk
tar xfv ibm.csdk.4.50.FC1.LNX.tar
cd ..
# rm -rf informix_csdk

yum install rh-php72-php-devel
yum group install "Development Tools"
mkdir -p /opt/informix/etc
cat <<EOF >/opt/informix/etc/sqlhosts
ifx_tcp      onsoctcp        ifxhost          sqlexec
ifx_shm      onipcshm        ifxhost          sqlexec

wget -O $TMPDIR/PDO_INFORMIX-1.3.3.tgz
tar xfz PDO_INFORMIX-1.3.3.tgz
cd PDO_INFORMIX-1.3.3/
export INFORMIXDIR=/opt/IBM/Informix_Client-SDK
./configure --with-php-config=/opt/rh/rh-php72/root/usr/bin/php-config --with-pdo-informix=$INFORMIXDIR
#make test
#make install
#cp /etc/opt/rh/rh-php72/php.d/30-pdo_mysql.ini /etc/opt/rh/rh-php72/php.d/30-pdo_informix.ini
#sed 's/mysql/informix/g' /etc/opt/rh/rh-php72/php.d/30-pdo_mysql.ini >/etc/opt/rh/rh-php72/php.d/30-pdo_informix.ini
#yum group remove "Development Tools"
#yum remove rh-php72-php-devel
#systemctl restart rh-php72-php-fpm
 [2019-05-22 14:52 UTC]
-Package: PDO related +Package: PDO_INFORMIX
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 10:01:26 2024 UTC