mirror of
https://github.com/php/pecl-database-ibm_db2.git
synced 2026-03-23 23:02:16 +01:00
Fix the issues related to db2_pconnect and boolean value fetching.
This commit is contained in:
11
CONTRIBUTING.md
Normal file
11
CONTRIBUTING.md
Normal file
@@ -0,0 +1,11 @@
|
||||
Developers Certificate of Origin 1.1
|
||||
|
||||
By making a contribution to this project, I certify that:
|
||||
|
||||
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
|
||||
|
||||
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
|
||||
|
||||
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
|
||||
|
||||
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
|
||||
43
README
Normal file
43
README
Normal file
@@ -0,0 +1,43 @@
|
||||
Procedure to install the ibm_db2 extension in Linux or Unix:
|
||||
|
||||
1. Using the export command, set the environment variable IBM_DB_HOME:
|
||||
|
||||
$export IBM_DB_HOME=DB2HOME
|
||||
|
||||
The DB2HOME is the directory where the IBM Data Server product is installed. For example:
|
||||
|
||||
$ export IBM_DB_HOME=/home/db2inst1/sqllib
|
||||
|
||||
|
||||
2. Using one of the following three methods, install the ibm_db and pdo_ibm extensions
|
||||
- Use the pecl install command included in the PHP Extension Community Library (PECL).
|
||||
pecl install ibm_db2
|
||||
- Use the commands included in the source code:
|
||||
a) Extract the source archive
|
||||
b) Run the following commands from the extracted directory:
|
||||
|
||||
$ phpize --clean
|
||||
$ phpize
|
||||
$ ./configure
|
||||
$ make
|
||||
$ make install
|
||||
|
||||
3. Open the php.ini file in an editor of your choice. Edit the extension entry in the
|
||||
php.ini file in the <local_php_directory>/php/lib directory to reference the PHP driver:
|
||||
extension=ibm_db2.so
|
||||
|
||||
4. Ensure that the PHP driver can access the libdb2.so CLI driver file by
|
||||
setting the LD_LIBRARY_PATH variable for Linux and UNIX operating systems
|
||||
other than the AIX® operating system. For AIX operating system, you must set LIBPATH variable.
|
||||
|
||||
5. Optional: If the PHP application that is connecting to an IBM database server is running ini
|
||||
the HTTP server environment, add the LD_LIBRARY_PATH variable in the httpd.conf file.
|
||||
|
||||
Contributing:
|
||||
|
||||
See CONTRIBUTING.md
|
||||
|
||||
The developer sign-off should include the reference to the DCO in defect remarks(example below):
|
||||
DCO 1.1 Signed-off-by: Random J Developer <random@developer.org>
|
||||
|
||||
|
||||
22
package.xml
22
package.xml
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<package packagerversion="1.10.1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<package packagerversion="1.10.5" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
|
||||
<name>ibm_db2</name>
|
||||
<channel>pecl.php.net</channel>
|
||||
<summary>Extension for IBM DB2 Universal Database, IBM Cloudscape, and
|
||||
@@ -18,11 +18,11 @@ Cloudscape, and Apache Derby databases.</description>
|
||||
<email>opendev@us.ibm.com</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2016-04-28</date>
|
||||
<time>11:31:11</time>
|
||||
<date>2017-09-21</date>
|
||||
<time>13:05:12</time>
|
||||
<version>
|
||||
<release>1.9.9</release>
|
||||
<api>1.9.9</api>
|
||||
<release>2.0.0</release>
|
||||
<api>2.0.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>stable</release>
|
||||
@@ -30,11 +30,13 @@ Cloudscape, and Apache Derby databases.</description>
|
||||
</stability>
|
||||
<license>Apache License 2.0</license>
|
||||
<notes>
|
||||
Enhanced: Added PHP 7 support and fixed linking error.
|
||||
Fixed : signal 11 in db2_pconnect
|
||||
Fixed : Security flaw with using user and password for hashing in db2_pconnect.
|
||||
Fxied : Local scope bound values in a class are not used
|
||||
</notes>
|
||||
<contents>
|
||||
<dir name="/">
|
||||
<file baseinstalldir="ibm_db2" md5sum="633eef81bd0736586feea2db78371875" name="tests/connection.inc" role="test" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="73e6cf16ff2d16b3b21704aea0a97663" name="tests/connection.inc" role="test" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="92a848dedabd8c06ee52252f7019e36e" name="tests/rollbackhandler.inc" role="test" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="4a1a6831e4f9fe74777e7c9f0ad2ed16" name="tests/escape.dat" role="test" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="63154ff0b723fc7324098b4a3d40c81a" name="tests/pic1.jpg" role="test" />
|
||||
@@ -290,11 +292,13 @@ Enhanced: Added PHP 7 support and fixed linking error.
|
||||
<file baseinstalldir="ibm_db2" md5sum="bb50774ad5c43b05700793eaad4289a7" name="tests/test_x010_IBMi_LUW_DB2_I5_FMT.phpt" role="test" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="cfcb2edf9f657735355070d4bf5509b8" name="config.m4" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="415f5c9831bba062629df9a002644945" name="config.w32" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="216e685d13e0dc96303e4f96435a509b" name="ibm_db2.c" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="115105ba4ab1be3dd45eae248a10488c" name="ibm_db2.c" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="50c8871b7921a625bd09104fb19a677a" name="ibm_db2.dsp" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="e2fe73e5e32f36c88256c1ea84ea1143" name="php_ibm_db2.h" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="21c0bc17c35778dfa3210cbfffe22123" name="php_ibm_db2.h" role="src" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="bed3d9c095178e7089183faff85ff506" name="TODO" role="doc" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="2565745239557cee06d0fc4b2bbf05a5" name="LICENSE" role="doc" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="e48e9a9ff6da12b687451d60f70794f3" name="CONTRIBUTING.md" role="doc" />
|
||||
<file baseinstalldir="ibm_db2" md5sum="cbb6a59aafa2fb946b5cd41f27bf5d1e" name="README" role="doc" />
|
||||
</dir>
|
||||
</contents>
|
||||
<dependencies>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#define PHP_IBM_DB2_VERSION "1.9.9"
|
||||
#define PHP_IBM_DB2_VERSION "2.0.0"
|
||||
|
||||
#ifndef PHP_IBM_DB2_H
|
||||
#define PHP_IBM_DB2_H
|
||||
|
||||
Reference in New Issue
Block a user