diff --git a/reference/ibm_db2/ini.xml b/reference/ibm_db2/ini.xml
new file mode 100644
index 0000000000..4ffbd264be
--- /dev/null
+++ b/reference/ibm_db2/ini.xml
@@ -0,0 +1,106 @@
+
+
+
+ &reftitle.runtime;
+ &extension.runtime;
+
+
+ ibm_db2 &ConfigureOptions;
+
+
+
+ &Name;
+ &Default;
+ &Changeable;
+
+
+
+
+ ibm_db2.binmode
+ 1
+ PHP_INI_ALL
+
+
+ ibm_db2.instance_name
+ &null;
+ PHP_INI_SYSTEM
+
+
+
+
+
+
+
+ &ini.descriptions.title;
+
+
+
+
+
+ ibm-db2.binmode
+ integer
+
+
+
+ This option controls the mode used for converting to and from binary
+ data in the PHP application.
+
+
+
+ 1 (DB2_BINARY)
+
+
+
+
+ 2 (DB2_CONVERT)
+
+
+
+
+ 3 (DB2_PASSTHRU)
+
+
+
+
+
+
+
+
+ ibm-db2.instance-name
+ string
+
+
+
+ On Linux and UNIX operating systems, this option defines the name of the
+ instance to use for cataloged database connections. If this option is set,
+ its value overrides the DB2INSTANCE environment variable setting.
+
+
+ This option is ignored on Windows operating systems.
+
+
+
+
+
+
+
+
diff --git a/reference/ibm_db2/reference.xml b/reference/ibm_db2/reference.xml
index 66639a304d..33ff0e4a30 100644
--- a/reference/ibm_db2/reference.xml
+++ b/reference/ibm_db2/reference.xml
@@ -1,5 +1,5 @@
-
+
IBM DB2, Cloudscape and Apache Derby Functions
@@ -26,11 +26,25 @@
To connect to IBM DB2 Universal Database for z/OS or iSeries, you also
require IBM DB2 Connect or the equivalent DRDA gateway software.
+
+ Requirements on Linux or Unix
- On Linux or Unix operating systems, ensure that the user invoking the
- PHP executable or SAPI has sourced the DB2 instance environment before
- accessing these functions. If you created a DB2 instance in
- /home/db2inst1/, for example, you must issue the
+ The user invoking the PHP executable or SAPI must specify the DB2 instance
+ before accessing these functions. You can set the name of the DB2 instance
+ in &php.ini; using the ibm_db2.instance_name
+ configuration option, or you can source the DB2 instance profile before
+ invoking the PHP executable.
+
+
+ If you created a DB2 instance named db2inst1 in
+ /home/db2inst1/, for example, you can add the
+ following line to &php.ini;:
+
+
+
+ If you do not set this option in &php.ini;, you must issue the
following command to modify your environment variables to enable access to
DB2:
@@ -39,16 +53,18 @@ bash$ source /home/db2inst1/sqllib/db2profile
]]>
To enable your PHP-enabled Web server to access these functions, you must
- add the same command to your Web server start script (typically
- /etc/init.d/httpd or
+ either set the ibm_db2.instance_name configuration
+ option in &php.ini;, or source the DB2 instance environment in your Web
+ server start script (typically /etc/init.d/httpd or
/etc/init.d/apache).
+
&reference.ibm-db2.configure;
-
+ &reference.ibm-db2.ini;
&reference.ibm-db2.constants;