OCI8:  oci_bind_array_by_name( )

When will be available oci_bind_array_by_name in the OCI8 stable release ?
Thanks in advance

When will be available oci_bind_array_by_name in the OCI8 stable release ?
Thanks in advance

Similar Messages

  • PHP 5.1.2 released with re-factored OCI8 driver

    PHP 5.1.2 has just been released: http://www.php.net/ChangeLog-5.php#5.1.2
    It is the first release that includes the re-factored OCI8 extension.
    I notice the test directory contains a bunch of tests for oci_bind_array_by_name(),
    which people have been waiting for.
    For older versions of PHP, you can download the re-factored OCI8 driver from
    http://pecl.php.net/package/oci8, or get the Windows binaries from
    http://pecl4win.php.net/ext.php/php_oci8.dll. Or, of course, use Zend Core for Oracle.
    -- cj
    PS I see there has been a bunch of activity in the forum over the break and I look
    forward to catching up.

    url mistake by cj:
    http://pecl.php.net/package/oci8 ( without a comma ).

  • Unable to load dynamic library oci8.so

    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?

    Madhu.149 wrote:
    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?
    Madhu.149 wrote:
    Hello All,
    When I try to start lampp, I am getting the below error.
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in Unknown on line 0
    But I have  libclntsh.so.11.1 in my system. Why it is searching for libclntsh.so.10.1?
    >Why it is searching for libclntsh.so.10.1?
    old PHP software that does not know about V11
    So just create a softlink as below
    ln -s libclntsh.so.11.1 libclntsh.so.10.1

  • Unable load  library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1

    Dear all,
    I have a problem with OCI8 installation and I would appreciate if you could kindly guide me how to solve this issue.
    I started reading the following articles in order to learn how to install the OCI8 package allowing to connect from PHP to oracle
    http://www.php.net/manual/en/oci8.installation.php
    http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html
    Here is my environment description
    OS: Fedora Core 17 (X86_64)
    Oracle version: Oracle Enterprise Edition 11gR2 (11.2.0.1.0) X86_64
    PHP Version: 5.4.13
    Apache version: 2.2.23Just a detail: almost every documentation starts by explaining the instant client installation. However, on the same physical machine, before even installing Apache and PHP. Oracle server had been completely installed, that is, both server and client (SQL*Plus, SQL*Loader, . . .). As a result, I omitted this step in the documentation and I continued by installation direcly OCI8 and apparently everything was compiled successfully (no error message).
    Problem: OCI8 doesn't show up in phpinfo()
    So it seems that there is a problem. I'm going to write down exactly how I proceeded and I would appreciate if you could kindly take a look at these steps and tell whether I made mistake(s)
    I started by running as ROOT. As I said the oracle server was already installed on the machine and so all the required environment variables such as LD_LIBRARY_PATH, ORACLE_SID, . . . were already defined in ~/.bash_profile
    And if you look at the below output, you can see that for example ORACLE_HOME was detected automatically during the installation (*checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1*)
    # pecl install oci8This gave me the following output
    # pecl install oci8
    downloading oci8-1.4.9.tgz ...
    Starting to download oci8-1.4.9.tgz (169,255 bytes)
    .....................................done: 169,255 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20100412
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525
    Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] :
    building in /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9
    running: /var/tmp/oci8/configure --with-oci8
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for cc... cc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
    checking for PHP extension directory... /usr/lib64/php/modules
    checking for PHP installed headers prefix... /usr/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for Oracle Database OCI8 support... yes, shared
    checking PHP version... 5.4.13, ok
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking size of long int... 8
    checking checking if we're on a 64-bit platform... yes
    checking Oracle ORACLE_HOME install directory... /u01/app/oracle/product/11.2.0/db_1
    checking ORACLE_HOME library validity... lib
    checking Oracle library version compatibility... 11.1
    checking how to print strings... printf
    checking for a sed that does not truncate output... (cached) /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by cc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... (cached) gawk
    checking command to parse /usr/bin/nm -B output from cc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if cc supports -fno-rtti -fno-exceptions... no
    checking for cc option to produce PIC... -fPIC -DPIC
    checking if cc PIC flag -fPIC -DPIC works... yes
    checking if cc static flag -static works... no
    checking if cc supports -c -o file.o... yes
    checking if cc supports -c -o file.o... (cached) yes
    checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating ./config.status
    config.status: creating config.h
    config.status: executing libtool commands
    running: make
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8.c -o oci8.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8.c  -fPIC -DPIC -o .libs/oci8.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_lob.c -o oci8_lob.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_lob.c  -fPIC -DPIC -o .libs/oci8_lob.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_statement.c -o oci8_statement.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_statement.c  -fPIC -DPIC -o .libs/oci8_statement.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_collection.c -o oci8_collection.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_collection.c  -fPIC -DPIC -o .libs/oci8_collection.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=compile cc  -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -c /var/tmp/oci8/oci8_interface.c -o oci8_interface.lo
    libtool: compile:  cc -I. -I/var/tmp/oci8 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo -DHAVE_CONFIG_H -g -O2 -c /var/tmp/oci8/oci8_interface.c  -fPIC -DPIC -o .libs/oci8_interface.o
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/include -I/var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/main -I/var/tmp/oci8 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/u01/app/oracle/product/11.2.0/db_1/rdbms/public -I/u01/app/oracle/product/11.2.0/db_1/rdbms/demo  -DHAVE_CONFIG_H  -g -O2   -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules  oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh
    libtool: link: cc -shared  -fPIC -DPIC  .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o   -L/u01/app/oracle/product/11.2.0/db_1/lib -lclntsh  -O2 -Wl,-rpath -Wl,/u01/app/oracle/product/11.2.0/db_1/lib   -Wl,-soname -Wl,oci8.so -o .libs/oci8.so
    libtool: link: ( cd ".libs" && rm -f "oci8.la" && ln -s "../oci8.la" "oci8.la" )
    /bin/sh /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/libtool --mode=install cp ./oci8.la /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    libtool: install: cp ./.libs/oci8.so /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.so
    libtool: install: cp ./.libs/oci8.lai /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules/oci8.la
    libtool: finish: PATH="/usr/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/op
    t/libreoffice4.0/program:/root/.local/bin:/root/bin:/usr/local/jdk1.7.0_05/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/u01/app/oracle/product/11.2.0/db_1/bin:/opt/libreoffice4.0/program:/sbin" ldconfig -n /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    Libraries have been installed in:
       /var/tmp/pear-build-rootGiD7YE/oci8-1.4.9/modules
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the `LD_RUN_PATH' environment variable
         during linking
       - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    Build complete.
    Don't forget to run 'make test'.
    running: make INSTALL_ROOT="/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" install
    Installing shared extensions:     /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/
    running: find "/var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9" | xargs ls -dils
    3679979   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9
    3680009   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr
    3680010   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64
    3680011   4 drwxr-xr-x. 3 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php
    3680012   4 drwxr-xr-x. 2 root root   4096 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules
    3680008 596 -rwxr-xr-x. 1 root root 606865 Apr  4 15:48 /var/tmp/pear-build-rootGiD7YE/install-oci8-1.4.9/usr/lib64/php/modules/oci8.so
    Build process completed successfully
    Installing '/usr/lib64/php/modules/oci8.so'
    install ok: channel://pecl.php.net/oci8-1.4.9
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=oci8.so" to php.ini
    # Once OCI8 was installed I updated the */etc/php.ini* accordingly by adding the following entries
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;   extension=modulename.extension
    extension=oci8.so
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    extension_dir="/usr/lib64/php/modules"Also I updated the */etc/sysconfig/httpd* in order to export the specified set of OS environment variables. So I added the following lines at the end of the file
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    LD_LIBRARY_PATH64=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
    NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_SID=db01In order to check that these values are actually taken into account by Apache, I run
    # service httpd restartThen I run a PHP script with phpinfo() and in the section Environment the above values were present in particular the LD_LIBRARY_PATH variable.
    However, as I said, there is no OCI8 entry in phpinfo() output. I checked the apache log file and I saw that there is a problem
    # cat /var/log/httpd/error_log
    [Thu Apr 04 16:02:13 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
    [Thu Apr 04 16:02:13 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Thu Apr 04 16:02:13 2013] [notice] Digest: generating secret for digest authentication ...
    [Thu Apr 04 16:02:13 2013] [notice] Digest: done
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
    [Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Compiled for Python/2.7.2.
    [Thu Apr 04 16:02:13 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
    [Thu Apr 04 16:02:13 2013] [notice] Apache/2.2.23 (Unix) DAV/2 PHP/5.4.13 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
    #What I understand from the above log is that the shared library libclntsh.so.11.1 cannot be found. Yet I checked and I saw that it is present in LD_LIBRARY_PATH
    # locate libclntsh.so
    /u01/app/oracle/product/11.2.0/db_1/inventory/Scripts/ext/lib/libclntsh.so.11.1
    /u01/app/oracle/product/11.2.0/db_1/inventory/backup/2012-06-25_12-08-41PM/Scripts/ext/lib/libclntsh.so.11.1
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.10.1
    /u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
    # So the last line, shows that the specified library exists in */u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1*.
    So I don't really seem what is the problem and the more strange thing is that in command line PHP seem to detect my oracle server parameters.
    $ php --ri oci8
    oci8
    OCI8 Support => enabled
    Version => 1.4.9
    Revision => $Id: e2241cffb72c940cb2ca267b7a6a0ce436de7e5e $
    Active Persistent Connections => 0
    Active Connections => 0
    Oracle Run-time Client Library Version => 11.2.0.1.0
    Oracle Version => 11.2
    Compile-time ORACLE_HOME => /u01/app/oracle/product/11.2.0/db_1
    Libraries Used => -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -L/u01/app/oracle/product/11.2.0/db_1/lib  -lclntsh
    Temporary Lob support => enabled
    Collections support => enabled
    Directive => Local Value => Master Value
    oci8.max_persistent => -1 => -1
    oci8.persistent_timeout => -1 => -1
    oci8.ping_interval => 60 => 60
    oci8.privileged_connect => Off => Off
    oci8.statement_cache_size => 20 => 20
    oci8.default_prefetch => 100 => 100
    oci8.old_oci_close_semantics => Off => Off
    oci8.connection_class => no value => no value
    oci8.events => Off => Off
    $ I thought maybe there are several different php.ini and the one used within GUI is not the same used in CLI but a search showed that there is just one php.ini file
    # locate php.ini
    /etc/php.ini
    # php -i | grep Configuration
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    Configuration
    #It is almost 3 days that I'm googling without success to find the solution to this problem.
    So, could someone help me, what is the problem? Why the OCI8 module cannot be loaded by PHP and become visible in the phpinfo() output?
    Thanks in advance,
    Regards,
    Dariyoosh

    cj wrote:
    Try disabling SELinux. On Oracle Linux you would edit /etc/selinux/config, set SELINUX to DISABLED, and reboot. Also see the setenforce command.Yes !!!!!!!!
    Thanks man it worked !! It was SELinux which was blocking the library load. Now I have OCI8 entry in phpinfo(). At the same time as we saw before the PHP in command line could detect OCI8, maybe this means that SELinux doesn't have the same impact in CLI as in GUI. Conclusion, you were totally correct about defining the environment variables in /etc/syscnfig/httpd. The variables were actually defined (with a slight difference in syntax that I will show below), yet SELinux prevented PHP from loading the oracle libraray.
    I also wrote a test SQL script (SELECT employee_id FROM employees WHERE department_id = 100) and the result was printed on the screen perfectly.
    So for those who may have encountered the same problem with the same environment parameters I'm going to give a summary of how I proceeded in the case where it might be helpful for others.
    My environment
    OS: Linux Fedora Core 17 (X86_64)
    Oracle version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    Apache version (httpd): Apache 2.0
    PHP version: 5.4.13
    Before the installation
    Before the installation I disabled SELinux. At the time of writing I'm not an expert of SELinux so I don't know any rule modification in order to modify SELinux policy accordingly allowing to OCI8 module to load oracle libraries. As a result I finally disabled completely the SELinux on my system which may have serious security impacts! This can be done in the following way (being as root)
    # vim  /etc/selinux/configThe file content is something similar to the following
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #     enforcing - SELinux security policy is enforced.
    #     permissive - SELinux prints warnings instead of enforcing.
    #     disabled - No SELinux policy is loaded.
    SELINUX=enforcing
    # SELINUXTYPE= can take one of these two values:
    #     targeted - Targeted processes are protected,
    #     minimum - Modification of targeted policy. Only selected processes are protected.
    #     mls - Multi Level Security protection.
    SELINUXTYPE=targeted So what I did was that I put a comment at the beginning of the line SELINUX=enforcing and instead I added a new line right after that line which was SELINUX=disabled.
    Finally I rebooted the system.
    Installation:
    - Make sure that all oracle environment variables are defined in ~/.bash_profile of the user who installs OCI8. Otherwise you will have to enter manually the path to $ORACLE_HOME. I tested both ways and each method works pretty well. Yet I find the first one more elegant because it detects automatically everything
    - In my case, PHP, Apache and Oracle server were all on the same physical machine, therefore I didn't need to install the Oracle Instant client*. All the required oracle libraries for OCI8 were therefore already available.
    - being as ROOT, I run the following (I don't know whether this was mandatory but I prefered to stop httpd before installing OCI8)
    # pecl install oci8(On my machine pecl was already there, if not you can install it by using yum)
    - Once installation is over, at the end of the installation report in the terminal you will get something like this
    >
    Build process completed successfully
    Installing '/usr/lib64/php/modules/oci8.so'
    install ok: channel://pecl.php.net/oci8-1.4.9
    configuration option "php_ini" is not set to php.ini location
    You should add "extension=oci8.so" to php.ini
    >
    The two bold lines above shows what you have to put in your php.ini file (on my computer this file is in */etc/php.ini* )
    So I updated the php.ini file in the following way:
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ;   extension=modulename.extension
    extension=oci8.so
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    extension_dir="/usr/lib64/php/modules"Then you have to define the required oracle environment variables for Apache. According to what I read in http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html and in several forums while I was googling for this problem and also based on my own tests, it seems to me that depending on which Apache version you're using, the syntax for declaring the environment variables in */etc/sysconfig/httpd* is not the same.
    Here is what I added at the end of the file /etc/sysconfig/httpd
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib
    TNS_ADMIN=/u01/app/oracle/product/11.2.0/db_1/network/admin
    NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_SID=db01I tried to use the export keyword before the variable names but it didn't work for me, yet I saw in other forums that there were people who apparently had used that syntax successfully. So again it is a matter of personal observation. For me using Apache 2.0, only the above syntax works. Also if I use $ in order to expand the environment variables it doesn't work
    so for example instead of writing
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/libI had to write explicitly the expanded values myself, that is,
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/libOnce this is done, restart httpd
    # service httpd startIf everything went well, normally you will see the OCI8 entry if you run phpinfo() in a test PHP script.
    Hope this may help others,
    Once again, thanks a lot to cj for his time and his valuable help for solving my problem.
    Regards,
    Dariyoosh

  • Trouble adding regular oracle oci8 support to RPM, CentOs 5

    Hello,
    It seems that i'm missing smth simple while trying to add oci8 support to RPM.
    I took Christopher Jones's SRPM for 5.2.3 as a base, but since i don't have and don't need a support for instant client i modified latest available 5.1.6 SRPM from CentOS 5 repo.
    The compile env is :
    HOSTNAME=server.home
    SHELL=/bin/bash
    TERM=vt100
    HISTSIZE=1000
    OLDPWD=/root
    USER=root
    LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/lib
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
    TNS_ADMIN=/u01/app/oracle/product/10.2.0/db_1/network/admin
    MAIL=/var/spool/mail/root
    PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    INPUTRC=/etc/inputrc
    PWD=/usr/src/redhat/SPECS
    LANG=en_US.UTF-8
    SHLVL=1
    HOME=/root
    LOGNAME=root
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    G_BROKEN_FILENAMES=1
    _=/bin/envi compile as a root. Here is my spec file.
    %define contentdir /var/www
    %define apiver 20041225
    %define zendver 20050922
    %define pdover 20060409
    # AZ
    # Version of Instant Client RPM. [email protected] May 2007
    %define ociver 10.2.0.3
    # For testing OCI8 and PDO_OCI.  Use the password of the SYSTEM schema
    # and the connection string for the target
    # database. [email protected] May 2007
    %define oci8_test_system_password tiger
    %define oci8_test_connection_string localhost/lhome
    # Set oci8_test_local_db to TRUE when the Oracle DB is on the machine
    # building the RPMS.  Otherwise set it to FALSE.
    # [email protected] May 2007
    %define oci8_test_local_db TRUE
    #AZ
    Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
    Name: php
    Version: 5.1.6
    Release: 15%{?dist}
    License: The PHP License v3.01
    Group: Development/Languages
    URL: http://www.php.net/
    Source0: http://www.php.net/distributions/php-%{version}.tar.gz
    Source50: php.conf
    Source51: php.ini
    Patch1: php-5.1.4-gnusrc.patch
    Patch2: php-5.1.4-warnings.patch
    Patch5: php-4.3.3-install.patch
    Patch6: php-5.0.4-norpath.patch
    Patch7: php-4.3.2-libtool15.patch
    Patch13: php-5.0.2-phpize64.patch
    Patch14: php-5.1.6-ecalloc.patch
    # Fixes for extension modules
    Patch21: php-4.3.1-odbc.patch
    Patch22: php-4.3.11-shutdown.patch
    # Functional changes
    Patch30: php-5.0.4-dlopen.patch
    Patch31: php-5.0.0-easter.patch
    # Fixes for tests
    Patch50: php-5.0.4-tests-dashn.patch
    Patch51: php-5.0.4-tests-wddx.patch
    # Security fixes
    Patch70: php-4.3.9-CVE-2006-5465.patch
    Patch71: php-5.1.6-CVE-2007-0906-imap.patch
    Patch72: php-4.3.9-CVE-2007-0906-strreplace.patch
    Patch73: php-4.3.9-CVE-2007-0907.patch
    Patch74: php-4.3.9-CVE-2007-0908.patch
    Patch75: php-4.3.9-CVE-2007-0909-odbc.patch
    Patch76: php-4.3.9-CVE-2007-0909-printf.patch
    Patch77: php-5.1.6-CVE-2007-0910.patch
    Patch78: php-4.3.9-CVE-2007-0988.patch
    Patch79: php-5.1.6-CVE-2007-1285.patch
    Patch80: php-5.1.6-CVE-2007-1583.patch
    Patch81: php-5.1.6-CVE-2007-0455.patch
    Patch82: php-5.1.6-CVE-2007-1001.patch
    Patch83: php-5.1.6-CVE-2007-1718.patch
    Patch84: php-5.1.6-CVE-2007-1864.patch
    Patch85: php-5.1.6-soapredir.patch
    Patch86: php-5.1.6-ftpcrlf.patch
    Patch87: php-5.1.6-CVE-2007-2872.patch
    Patch88: php-5.1.6-CVE-2007-4658.patch
    Patch89: php-5.1.6-CVE-2007-2756.patch
    Patch90: php-5.1.6-CVE-2007-3799.patch
    Patch91: php-5.1.6-CVE-2007-3996.patch
    Patch92: php-5.1.6-CVE-2007-4670.patch
    Patch93: php-5.1.6-CVE-2007-3998.patch
    BuildRoot: %{_tmppath}/%{name}-root
    BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel
    BuildRequires: gmp-devel, aspell-devel >= 0.50.0
    BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel
    BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0
    BuildRequires: zlib-devel, pcre-devel >= 4.5, smtpdaemon
    BuildRequires: bzip2, fileutils, file >= 4.0, perl, libtool >= 1.4.3, gcc-c++
    Obsoletes: php-dbg, php3, phpfi, stronghold-php
    # Enforce Apache module ABI compatibility
    Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
    Requires: file >= 4.0
    Provides: mod_php = %{version}-%{release}
    Requires: php-common = %{version}-%{release}
    # For backwards-compatibility, require php-cli for the time being:
    Requires: php-cli = %{version}-%{release}
    %description
    PHP is an HTML-embedded scripting language. PHP attempts to make it
    easy for developers to write dynamically generated webpages. PHP also
    offers built-in database integration for several commercial and
    non-commercial database management systems, so writing a
    database-enabled webpage with PHP is fairly simple. The most common
    use of PHP coding is probably as a replacement for CGI scripts.
    The php package contains the module which adds support for the PHP
    language to Apache HTTP Server.
    %package cli
    Group: Development/Languages
    Summary: Command-line interface for PHP
    Requires: php-common = %{version}-%{release}
    Provides: php-cgi = %{version}-%{release}
    Provides: php-pcntl
    %description cli
    The php-cli package contains the command-line interface
    executing PHP scripts, /usr/bin/php, and the CGI interface.
    %package common
    Group: Development/Languages
    Summary: Common files for PHP
    Provides: php-api = %{apiver}, php-zend-abi = %{zendver}
    # Provides for all builtin modules:
    Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
    Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
    Provides: php-mime_magic, php-openssl, php-pcre, php-posix, php-pspell
    Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
    Provides: php-spl, php-sysvsem, php-sysvshm, php-sysvmsg, php-tokenizer
    Provides: php-wddx, php-zlib
    #AZ
    Provides: php-oci
    #AZ
    Obsoletes: php-openssl
    %description common
    The php-common package contains files used by both the php
    package and the php-cli package.
    %package devel
    Group: Development/Libraries
    Summary: Files needed for building PHP extensions.
    Requires: php = %{version}-%{release}, autoconf, automake
    Obsoletes: php-pecl-pdo-devel
    %description devel
    The php-devel package contains the files needed for building PHP
    extensions. If you need to compile your own PHP extensions, you will
    need to install this package.
    %package imap
    Summary: A module for PHP applications that use IMAP.
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Obsoletes: mod_php3-imap, stronghold-php-imap
    BuildRequires: krb5-devel, openssl-devel, libc-client-devel
    %description imap
    The php-imap package contains a dynamic shared object (DSO) for the
    Apache Web server. When compiled into Apache, the php-imap module will
    add IMAP (Internet Message Access Protocol) support to PHP. IMAP is a
    protocol for retrieving and uploading e-mail messages on mail
    servers. PHP is an HTML-embedded scripting language. If you need IMAP
    support for PHP applications, you will need to install this package
    and the php package.
    %package ldap
    Summary: A module for PHP applications that use LDAP.
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Obsoletes: mod_php3-ldap, stronghold-php-ldap
    BuildRequires: cyrus-sasl-devel, openldap-devel, openssl-devel
    %description ldap
    The php-ldap package is a dynamic shared object (DSO) for the Apache
    Web server that adds Lightweight Directory Access Protocol (LDAP)
    support to PHP. LDAP is a set of protocols for accessing directory
    services over the Internet. PHP is an HTML-embedded scripting
    language. If you need LDAP support for PHP applications, you will
    need to install this package in addition to the php package.
    %package pdo
    Summary: A database access abstraction module for PHP applications
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
    Provides: php-pdo-abi = %{pdover}
    %description pdo
    The php-pdo package contains a dynamic shared object that will add
    a database access abstraction layer to PHP.  This module provides
    a common interface for accessing MySQL, PostgreSQL or other
    databases.
    %package mysql
    Summary: A module for PHP applications that use MySQL databases.
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}, php-pdo
    Provides: php_database, php-mysqli
    Obsoletes: mod_php3-mysql, stronghold-php-mysql
    BuildRequires: mysql-devel >= 4.1.0
    %description mysql
    The php-mysql package contains a dynamic shared object that will add
    MySQL database support to PHP. MySQL is an object-relational database
    management system. PHP is an HTML-embeddable scripting language. If
    you need MySQL support for PHP applications, you will need to install
    this package and the php package.
    %package pgsql
    Summary: A PostgreSQL database module for PHP.
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}, php-pdo
    Provides: php_database
    Obsoletes: mod_php3-pgsql, stronghold-php-pgsql
    BuildRequires: krb5-devel, openssl-devel, postgresql-devel
    %description pgsql
    The php-pgsql package includes a dynamic shared object (DSO) that can
    be compiled in to the Apache Web server to add PostgreSQL database
    support to PHP. PostgreSQL is an object-relational database management
    system that supports almost all SQL constructs. PHP is an
    HTML-embedded scripting language. If you need back-end support for
    PostgreSQL, you should install this package in addition to the main
    php package.
    #AZ
    # Added oci8.  [email protected] May 2007
    %package oci8
    Summary: A module for PHP applications using the Oracle database
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}, php-pdo
    #BuildRequires: oracle-instantclient-devel = %{ociver}
    Provides: php_database, php-oci
    AutoReqProv: No
    %description oci8
    The php-oci8 package contains a dynamic shared object (DSO) for the
    Apache Web server. When compiled into Apache, the php-oci8 module will
    add OCI8 support to PHP. OCI8 is an extension for Oracle Database
    access.  PHP is an HTML-embedded scripting language. If you need
    Oracle support for PHP applications, you can install this package and
    the php package.
    This package also contains PDO_OCI for use with the PDO extension.
    #AZ
    %package odbc
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}, php-pdo
    Summary: A module for PHP applications that use ODBC databases.
    Provides: php_database
    Obsoletes: stronghold-php-odbc
    BuildRequires: unixODBC-devel
    %description odbc
    The php-odbc package contains a dynamic shared object that will add
    database support through ODBC to PHP. ODBC is an open specification
    which provides a consistent API for developers to use for accessing
    data sources (which are often, but not always, databases). PHP is an
    HTML-embeddable scripting language. If you need ODBC support for PHP
    applications, you will need to install this package and the php
    package.
    %package soap
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Summary: A module for PHP applications that use the SOAP protocol
    BuildRequires: libxml2-devel
    %description soap
    The php-soap package contains a dynamic shared object that will add
    support to PHP for using the SOAP web services protocol.
    %package snmp
    Summary: A module for PHP applications that query SNMP-managed devices.
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}, net-snmp
    BuildRequires: net-snmp-devel
    %description snmp
    The php-snmp package contains a dynamic shared object that will add
    support for querying SNMP devices to PHP.  PHP is an HTML-embeddable
    scripting language. If you need SNMP support for PHP applications, you
    will need to install this package and the php package.
    %package xml
    Summary: A module for PHP applications which use XML
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    Obsoletes: php-domxml, php-dom
    Provides: php-dom, php-xsl, php-domxml
    BuildRequires: libxslt-devel >= 1.0.18-1, libxml2-devel >= 2.4.14-1
    %description xml
    The php-xml package contains dynamic shared objects which add support
    to PHP for manipulating XML documents using the DOM tree,
    and performing XSL transformations on XML documents.
    %package xmlrpc
    Summary: A module for PHP applications which use the XML-RPC protocol
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    BuildRequires: expat-devel
    %description xmlrpc
    The php-xmlrpc package contains a dynamic shared object that will add
    support for the XML-RPC protocol to PHP.
    %package mbstring
    Summary: A module for PHP applications which need multi-byte string handling
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    %description mbstring
    The php-mbstring package contains a dynamic shared object that will add
    support for multi-byte string handling to PHP.
    %package ncurses
    Summary: A module for PHP applications for using ncurses interfaces
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    BuildRequires: ncurses-devel
    %description ncurses
    The php-ncurses package contains a dynamic shared object that will add
    support for using the ncurses terminal output interfaces.
    %package gd
    Summary: A module for PHP applications for using the gd graphics library
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    BuildRequires: gd-devel, freetype-devel
    %description gd
    The php-gd package contains a dynamic shared object that will add
    support for using the gd graphics library to PHP.
    %package bcmath
    Summary: A module for PHP applications for using the bcmath library
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    %description bcmath
    The php-bcmath package contains a dynamic shared object that will add
    support for using the bcmath library to PHP.
    %package dba
    Summary: A database abstraction layer module for PHP applications
    Group: Development/Languages
    Requires: php-common = %{version}-%{release}
    %description dba
    The php-dba package contains a dynamic shared object that will add
    support for using the DBA database abstraction layer to PHP.
    %prep
    %setup -q
    %patch1 -p1 -b .gnusrc
    %patch2 -p1 -b .warnings
    %patch5 -p1 -b .install
    %patch6 -p1 -b .norpath
    %patch7 -p1 -b .libtool15
    %patch13 -p1 -b .phpize64
    %patch14 -p1 -b .ecalloc
    %patch21 -p1 -b .odbc
    %patch22 -p1 -b .shutdown
    %patch30 -p1 -b .dlopen
    %patch31 -p1 -b .easter
    %patch50 -p1 -b .tests-dashn
    %patch51 -p1 -b .tests-wddx
    %patch70 -p1 -b .cve5465
    %patch71 -p1 -b .cve0906-imap
    %patch72 -p1 -b .cve0906-strreplace
    %patch73 -p1 -b .cve0907
    %patch74 -p1 -b .cve0908
    %patch75 -p1 -b .cve0909-odbc
    %patch76 -p1 -b .cve0909-printf
    %patch77 -p1 -b .cve0910
    %patch78 -p1 -b .cve0988
    %patch79 -p1 -b .cve1285
    %patch80 -p1 -b .cve1583
    %patch81 -p1 -b .cve0455
    %patch82 -p1 -b .cve1001
    %patch83 -p1 -b .cve1718
    %patch84 -p1 -b .cve1864
    %patch85 -p1 -b .soapredir
    %patch86 -p1 -b .ftpcrlf
    %patch87 -p1 -b .cve2872
    %patch88 -p1 -b .cve4658
    %patch89 -p1 -b .cve2756
    %patch90 -p1 -b .cve3799
    %patch91 -p1 -b .cve3996
    %patch92 -p1 -b .cve4670
    %patch93 -p1 -b .cve3998
    # Prevent %%doc confusion over LICENSE files
    cp Zend/LICENSE Zend/ZEND_LICENSE
    cp TSRM/LICENSE TSRM_LICENSE
    cp regex/COPYRIGHT regex_COPYRIGHT
    cp ext/gd/libgd/README gd_README
    # Source is built twice: once for /usr/bin/php, once for the Apache DSO.
    mkdir build-cgi build-apache
    # Remove bogus test; position of read position after fopen(, "a+")
    # is not defined by C standard, so don't presume anything.
    rm -f ext/standard/tests/file/bug21131.phpt
    # Tests that fail.
    rm -f ext/standard/tests/file/bug22414.phpt \
          ext/iconv/tests/bug16069.phpt
    #AZ
    # Tests that fail.
    rm -f ext/oci8/tests/bug27303.phpt \
            ext/oci8/tests/bug27303_2.phpt \
            ext/oci8/tests/bug27303_4.phpt
    # OCI8 config file. [email protected] May 2007
    cat <<EOF > ext/oci8/tests/details.inc
    <?php
    * Please, change user, password and dbase to match your configuration.
    \$user       = "scott";
    \$password   = "%{oci8_test_system_password}";
    \$dbase      = "%{oci8_test_connection_string}";
    /* Set this variable to TRUE if Oracle is installed @ localhost */
    \$oracle_on_localhost = %{oci8_test_local_db};
    ?>
    EOF
    #AZ
    # Safety check for API version change.
    vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
    if test "x${vapi}" != "x%{apiver}"; then
       : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
       : Update the apiver macro and rebuild.
       exit 1
    fi
    # Safety check for Zend API version change.
    vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
    if test "x${vzend}" != "x%{zendver}"; then
       : Error: Upstream Zend module ABI version is now ${vzend}, expecting %{zendver}.
       : Update the zendver macro and rebuild.
       exit 1
    fi
    # Safety check for PDO ABI version change
    vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[    ]//;p}' ext/pdo/php_pdo_driver.h`
    if test "x${vpdo}" != "x%{pdover}"; then
       : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
       : Update the pdover macro and rebuild.
       exit 1
    fi
    %build
    # Force use of system libtool:
    libtoolize force copy
    cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4
    # Regenerate configure scripts (patches change config.m4's)
    ./buildconf --force
    CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-pointer-sign"
    CPPFLAGS="-DLDAP_DEPRECATED=1"
    export CFLAGS CPPFLAGS
    # Install extension modules in %{_libdir}/php/modules.
    EXTENSION_DIR=%{_libdir}/php/modules; export EXTENSION_DIR
    # Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
    # includes the PEAR directory even though pear is packaged
    # separately.
    PEAR_INSTALLDIR=%{_datadir}/pear; export PEAR_INSTALLDIR
    # Shell function to configure and build a PHP tree.
    build() {
    # bison-1.875-2 seems to produce a broken parser; workaround.
    mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
    ln -sf ../configure
    %configure \
            --cache-file=../config.cache \
            --with-libdir=%{_lib} \
            --with-config-file-path=%{_sysconfdir} \
            --with-config-file-scan-dir=%{_sysconfdir}/php.d \
            --disable-debug \
            --with-pic \
            --disable-rpath \
            --without-pear \
            --with-bz2 \
            --with-curl \
            --with-exec-dir=%{_bindir} \
            --with-freetype-dir=%{_prefix} \
            --with-png-dir=%{_prefix} \
            --enable-gd-native-ttf \
            --without-gdbm \
            --with-gettext \
            --with-gmp \
            --with-iconv \
            --with-jpeg-dir=%{_prefix} \
            --with-openssl \
            --with-png \
            --with-pspell \
            --with-expat-dir=%{_prefix} \
            --with-pcre-regex=%{_prefix} \
            --with-zlib \
            --with-layout=GNU \
            --enable-exif \
            --enable-ftp \
            --enable-magic-quotes \
            --enable-sockets \
            enable-sysvsem enable-sysvshm --enable-sysvmsg \
            --enable-track-vars \
            --enable-trans-sid \
            --enable-yp \
            --enable-wddx \
            --with-kerberos \
            --enable-ucd-snmp-hack \
            --with-unixODBC=shared,%{_prefix} \
            --enable-memory-limit \
            --enable-shmop \
            --enable-calendar \
            --enable-dbx \
            --enable-dio \
            --with-mime-magic=%{_sysconfdir}/httpd/conf/magic \
            --without-sqlite \
            --with-libxml-dir=%{_prefix} \
            --with-oci8=$ORACLE_HOME \
            --with-apxs2=/usr/sbin/apxs \
            --with-xml \
            $*
    if test $? != 0; then
      tail -500 config.log
      : configure failed
      exit 1
    fi
    make %{?_smp_mflags}
    # Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
    pushd build-cgi
    build --enable-force-cgi-redirect \
          --enable-pcntl \
          with-imap=shared with-imap-ssl \
          enable-mbstring=shared enable-mbstr-enc-trans \
          --enable-mbregex \
          --with-ncurses=shared \
          --with-gd=shared \
          --enable-bcmath=shared \
          enable-dba=shared with-db4=%{_prefix} \
          --with-xmlrpc=shared \
          --with-ldap=shared \
          --with-mysql=shared,%{_prefix} \
          --with-mysqli=shared,%{_bindir}/mysql_config \
          --enable-dom=shared \
          --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
          --with-pgsql=shared \
          --with-snmp=shared,%{_prefix} \
          --enable-soap=shared \
          --with-xsl=shared,%{_prefix} \
          enable-xmlreader=shared enable-xmlwriter=shared \
          --enable-fastcgi \
          --enable-pdo=shared \
          --with-pdo-odbc=shared,unixODBC,%{_prefix} \
          --with-pdo-mysql=shared,%{_prefix} \
          --with-pdo-pgsql=shared,%{_prefix} \
          --with-pdo-sqlite=shared,%{_prefix} \
    #      --with-pdo-oci=shared,$ORACLE_HOME \
          --with-oci8 \
           --enable-sigchild
    popd
    # Build Apache module, and the CLI SAPI, /usr/bin/php
    pushd build-apache
    build --with-apxs2=%{_sbindir}/apxs \
          without-mysql without-gd \
          without-odbc disable-dom \
          disable-dba without-unixODBC \
          disable-pdo disable-xmlreader --disable-xmlwriter
    popd
    %check
    cd build-apache
    # Run tests, using the CLI SAPI
    export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
    unset TZ LANG LC_ALL
    #AZ
    # Allows PDO_OCI tests to connect.  [email protected] May 2007
    #export PDO_OCI_TEST_DSN=oci:dbname=%{oci8_test_connection_string}
    #export PDO_OCI_TEST_USER=scott
    #export PDO_OCI_TEST_PASS=%{oci8_test_system_password}
    #AZ
    if ! make test; then
      set +x
      for f in `find .. -name \*.diff -type f -print`; do
        echo "TEST FAILURE: $f --"
        cat "$f"
        echo "-- $f result ends."
      done
      set -x
      #exit 1
    fi
    unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
    %install
    [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    # Install everything from the CGI SAPI build
    pushd build-cgi
    make install INSTALL_ROOT=$RPM_BUILD_ROOT
    mv $RPM_BUILD_ROOT%{_bindir}/php $RPM_BUILD_ROOT%{_bindir}/php-cgi
    # Install the CLI SAPI as /usr/bin/php
    make install-cli INSTALL_ROOT=$RPM_BUILD_ROOT
    popd
    # Install the Apache module
    pushd build-apache
    make install-sapi INSTALL_ROOT=$RPM_BUILD_ROOT
    popd
    # Install the default configuration file and icons
    install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
    install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
    install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
    install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
    # For PEAR packaging:
    install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear
    # Use correct libdir
    sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
    # install the DSO
    install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/httpd/modules
    install -m 755 build-apache/libs/libphp5.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
    # Apache config fragment
    install -m 755 -d $RPM_BUILD_ROOT/etc/httpd/conf.d
    install -m 644 $RPM_SOURCE_DIR/php.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
    install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php.d
    install -m 755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php
    install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session
    # Generate files lists and stub .ini files for each subpackage
    #AZ
    for mod in oci8 pgsql mysql mysqli odbc ldap snmp xmlrpc imap \
        mbstring ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter \
        pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite; do
    #AZ
        cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
    ; Enable ${mod} extension module
    extension=${mod}.so
    EOF
        cat > files.${mod} <<EOF
    %attr(755,root,root) %{_libdir}/php/modules/${mod}.so
    %config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
    EOF
    done
    # The dom, xsl and xml* modules are all packaged in php-xml
    cat files.dom files.xsl files.xml{reader,writer} > files.xml
    # The mysql and mysqli modules are both packaged in php-mysql
    cat files.mysqli >> files.mysql
    # Split out the PDO modules
    #AZ
    cat files.pdo_oci >> files.oci8
    #AZ
    cat files.pdo_mysql >> files.mysql
    cat files.pdo_pgsql >> files.pgsql
    cat files.pdo_odbc >> files.odbc
    # Package pdo_sqlite with pdo; isolating the sqlite dependency
    # isn't useful at this time since rpm itself requires sqlite.
    cat files.pdo_sqlite >> files.pdo
    # Remove unpackaged files
    rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
           $RPM_BUILD_ROOT%{_bindir}/{phptar} \
           $RPM_BUILD_ROOT%{_datadir}/pear
    # Remove irrelevant docs
    rm -f README.{Zeus,QNX,CVS-RULES}
    %clean
    [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    rm files.*
    %files
    %defattr(-,root,root)
    %{_libdir}/httpd/modules/libphp5.so
    %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
    %config %{_sysconfdir}/httpd/conf.d/php.conf
    %{contentdir}/icons/php.gif
    %files common
    %defattr(-,root,root)
    %doc CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS README*
    %doc Zend/ZEND_* gd_README TSRM_LICENSE regex_COPYRIGHT
    %config %{_sysconfdir}/php.ini
    %dir %{_sysconfdir}/php.d
    %dir %{_libdir}/php
    %dir %{_libdir}/php/modules
    %dir %{_localstatedir}/lib/php
    %dir %{_libdir}/php/pear
    %files cli
    %defattr(-,root,root)
    %{_bindir}/php
    %{_bindir}/php-cgi
    %{_mandir}/man1/php.1*
    %files devel
    %defattr(-,root,root)
    %{_bindir}/php-config
    %{_bindir}/phpize
    %{_includedir}/php
    %{_libdir}/php/build
    %{_mandir}/man1/php-config.1*
    %{_mandir}/man1/phpize.1*
    %files pgsql -f files.pgsql
    %files mysql -f files.mysql
    %files odbc -f files.odbc
    %files imap -f files.imap
    %files ldap -f files.ldap
    %files snmp -f files.snmp
    %files xml -f files.xml
    %files xmlrpc -f files.xmlrpc
    %files mbstring -f files.mbstring
    %files ncurses -f files.ncurses
    %files gd -f files.gd
    %files soap -f files.soap
    %files bcmath -f files.bcmath
    %files dba -f files.dba
    %files pdo -f files.pdo
    #AZ
    %files oci8 -f files.oci8
    #AZ
    %changelog
    * Wed Sep 12 2007 Joe Orton <[email protected]> 5.1.6-15.el5
    - improve fix for CVE-2007-3997 (#278411)
    * Fri Sep  7 2007 Joe Orton <[email protected]> 5.1.6-14.el5
    - fix backport for CVE-2007-3996 (#278411)
    * Thu Sep  6 2007 Joe Orton <[email protected]> 5.1.6-13.el5
    - add security fixes for CVE-2007-2756, CVE-2007-2872,
      CVE-2007-3799, CVE-2007-3996, CVE-2007-3998, CVE-2007-4658,
      CVE-2007-4670 (#278411)
    * Wed Apr  4 2007 Joe Orton <[email protected]> 5.1.6-12.el5
    - add security fix for CVE-2007-1864, SOAP redirect handling issue,
      FTP CRLF injection issue (#235016)
    * Wed Apr  4 2007 Joe Orton <[email protected]> 5.1.6-11.el5
    - add security fix for CVE-2007-1718 (#235016)
    * Tue Apr  3 2007 Joe Orton <[email protected]> 5.1.6-9.el5
    - add security fix for CVE-2007-1583 (#235016)
    - add security fixes for CVE-2007-0455, CVE-2007-1001 (#235036)
    * Fri Mar  9 2007 Joe Orton <[email protected]> 5.1.6-7.el5
    - add security fix for CVE-2007-1285 (#231597)
    * Fri Feb 16 2007 Joe Orton <[email protected]> 5.1.6-6.el5
    - add security fixes for: CVE-2007-0906, CVE-2007-0907,
      CVE-2007-0908, CVE-2007-0909, CVE-2007-0910, CVE-2007-0988 (#229013)
    * Tue Dec 19 2006 Joe Orton <[email protected]> 5.1.6-5.el5
    - fix version for php-zend-abi (#218758)
    * Thu Nov 23 2006 Joe Orton <[email protected]> 5.1.6-4.el5
    - php-xml provides php-domxml (#215656)
    - fix php-pdo-abi provide (#214281)
    - provide php-zend-abi (#212804)
    - don't Obsolete mod_php
    - fix PDO sqlite TEXT extraction truncate-by-one (#217033)
    - package php{ize,-config} man pages in -devel (#199382)
    - change module subpackages to require php-common not php (#177821)
    - add security fix for CVE-2006-5465 (#216114)
    * Wed Oct  4 2006 Joe Orton <[email protected]> 5.1.6-3
    - from upstream: add safety checks against integer overflow in _ecalloc
    * Tue Aug 29 2006 Joe Orton <[email protected]> 5.1.6-2
    - update to 5.1.6 (security fixes)
    - bump default memory_limit to 16M (#196802)
    * Wed Jul 12 2006 Jesse Keating <[email protected]> - 5.1.4-8.1
    - rebuild
    * Fri Jun  9 2006 Joe Orton <[email protected]> 5.1.4-8
    - Provide php-posix (#194583)
    - only provide php-pcntl from -cli subpackage
    - add missing defattr's (thanks to Matthias Saou)
    * Fri Jun  9 2006 Joe Orton <[email protected]> 5.1.4-7
    - move Obsoletes for php-openssl to -common (#194501)
    - Provide: php-cgi from -cli subpackage
    * Fri Jun  2 2006 Joe Orton <[email protected]> 5.1.4-6
    - split out php-cli, php-common subpackages (#177821)
    - add php-pdo-abi version export (#193202)
    * Wed May 24 2006 Radek Vokal <[email protected]> 5.1.4-5.1
    - rebuilt for new libnetsnmp
    * Thu May 18 2006 Joe Orton <[email protected]> 5.1.4-5
    - provide mod_php (#187891)
    - provide php-cli (#192196)
    - use correct LDAP fix (#181518)
    - define GNUSOURCE in php_config.h and leave it defined
    - drop (circular) dependency on php-pear
    * Mon May  8 2006 Joe Orton <[email protected]> 5.1.4-3
    - update to 5.1.4
    * Wed May  3 2006 Joe Orton <[email protected]> 5.1.3-3
    - update to 5.1.3
    * Tue Feb 28 2006 Joe Orton <[email protected]> 5.1.2-5
    - provide php-api (#183227)
    - add provides for all builtin modules (Tim Jackson, #173804)
    - own %%{_libdir}/php/pear for PEAR packages (per #176733)
    - add obsoletes to allow upgrade from FE4 PDO packages (#181863)
    * Fri Feb 10 2006 Jesse Keating <[email protected]> - 5.1.2-4.3
    - bump again for double-long bug on ppc(64)
    * Tue Feb 07 2006 Jesse Keating <[email protected]> - 5.1.2-4.1
    - rebuilt for new gcc4.1 snapshot and glibc changes
    * Tue Jan 31 2006 Joe Orton <[email protected]> 5.1.2-4
    - rebuild for new libc-client soname
    * Mon Jan 16 2006 Joe Orton <[email protected]> 5.1.2-3
    - only build xmlreader and xmlwriter shared (#177810)
    * Fri Jan 13 2006 Joe Orton <[email protected]> 5.1.2-2
    - update to 5.1.2
    * Thu Jan  5 2006 Joe Orton <[email protected]> 5.1.1-8
    - rebuild again
    * Mon Jan  2 2006 Joe Orton <[email protected]> 5.1.1-7
    - rebuild for new net-snmp
    * Mon Dec 12 2005 Joe Orton <[email protected]> 5.1.1-6
    - enable short_open_tag in default php.ini again (#175381)
    * Fri Dec 09 2005 Jesse Keating <[email protected]>
    - rebuilt
    * Thu Dec  8 2005 Joe Orton <[email protected]> 5.1.1-5
    - require net-snmp for php-snmp (#174800)
    * Sun Dec  4 2005 Joe Orton <[email protected]> 5.1.1-4
    - add /usr/share/pear back to hard-coded include_path (#174885)
    * Fri Dec  2 2005 Joe Orton <[email protected]> 5.1.1-3
    - rebuild for httpd 2.2
    * Mon Nov 28 2005 Joe Orton <[email protected]> 5.1.1-2
    - update to 5.1.1
    - remove pear subpackage
    - enable pdo extensions (php-pdo subpackage)
    - remove non-standard conditional module builds
    - enable xmlreader extension
    * Thu Nov 10 2005 Tomas Mraz <[email protected]> 5.0.5-6
    - rebuilt against new openssl
    * Mon Nov  7 2005 Joe Orton <[email protected]> 5.0.5-5
    - pear: update to XML_RPC 1.4.4, XML_Parser 1.2.7, Mail 1.1.9 (#172528)
    * Tue Nov  1 2005 Joe Orton <[email protected]> 5.0.5-4
    - rebuild for new libnetsnmp
    * Wed Sep 14 2005 Joe Orton <[email protected]> 5.0.5-3
    - update to 5.0.5
    - add fix for upstream #34435
    - devel: require autoconf, automake (#159283)
    - pear: update to HTTP-1.3.6, Mail-1.1.8, Net_SMTP-1.2.7, XML_RPC-1.4.1
    - fix imagettftext et al (upstream, #161001)
    * Thu Jun 16 2005 Joe Orton <[email protected]> 5.0.4-11
    - ldap: restore ldap_start_tls() function
    * Fri May  6 2005 Joe Orton <[email protected]> 5.0.4-10
    - disable RPATHs in shared extensions (#156974)
    * Tue May  3 2005 Joe Orton <[email protected]> 5.0.4-9
    - build simplexml_import_dom even with shared dom (#156434)
    - prevent truncation of copied files to ~2Mb (#155916)
    - install /usr/bin/php from CLI build alongside CGI
    - enable sysvmsg extension (#142988)
    * Mon Apr 25 2005 Joe Orton <[email protected]> 5.0.4-8
    - prevent build of builtin dba as well as shared extension
    * Wed Apr 13 2005 Joe Orton <[email protected]> 5.0.4-7
    - split out dba and bcmath extensions into subpackages
    - BuildRequire gcc-c++ to avoid AC_PROG_CXX{,CPP} failure (#155221)
    - pear: update to DB-1.7.6
    - enable FastCGI support in /usr/bin/php-cgi (#149596)
    * Wed Apr 13 2005 Joe Orton <[email protected]> 5.0.4-6
    - build /usr/bin/php with the CLI SAPI, and add /usr/bin/php-cgi,
      built with the CGI SAPI (thanks to Edward Rudd, #137704)
    - add php(1) man page for CLI
    - fix more test cases to use -n when invoking php
    * Wed Apr 13 2005 Joe Orton <[email protected]> 5.0.4-5
    - rebuild for new libpq soname
    * Tue Apr 12 2005 Joe Orton <[email protected]> 5.0.4-4
    - bundle from PEAR: HTTP, Mail, XML_Parser, Net_Socket, Net_SMTP
    - snmp: disable MSHUTDOWN function to prevent error_log noise (#153988)
    - mysqli: add fix for crash on x86_64 (Georg Richter, upstream #32282)
    * Mon Apr 11 2005 Joe Orton <[email protected]> 5.0.4-3
    - build shared objects as PIC (#154195)
    * Mon Apr  4 2005 Joe Orton <[email protected]> 5.0.4-2
    - fix PEAR installation and bundle PEAR DB-1.7.5 package
    * Fri Apr  1 2005 Joe Orton <[email protected]> 5.0.4-1
    - update to 5.0.4 (#153068)
    - add .phps AddType to php.conf (#152973)
    - better gcc4 fix for libxmlrpc
    * Wed Mar 30 2005 Joe Orton <[email protected]> 5.0.3-5
    - BuildRequire mysql-devel >= 4.1
    - don't mark php.ini as noreplace to make upgrades work (#152171)
    - fix subpackage descriptions (#152628)
    - fix memset(,,0) in Zend (thanks to Dave Jones)
    - fix various compiler warnings in Zend
    * Thu Mar 24 2005 Joe Orton <[email protected]> 5.0.3-4
    - package mysqli extension in php-mysql
    - really enable pcntl (#142903)
    - don't build with --enable-safe-mode (#148969)
    - use "Instant Client" libraries for oci8 module (Kai Bolay, #149873)
    * Fri Feb 18 2005 Joe Orton <[email protected]> 5.0.3-3
    - fix build with GCC 4
    * Wed Feb  9 2005 Joe Orton <[email protected]> 5.0.3-2
    - install the ext/gd headers (#145891)
    - enable pcntl extension in /usr/bin/php (#142903)
    - add libmbfl array arithmetic fix ([email protected], #143795)
    - add BuildRequire for recent pcre-devel (#147448)
    * Wed Jan 12 2005 Joe Orton <[email protected]> 5.0.3-1
    - update to 5.0.3 (thanks to Robert Scheck et al, #143101)
    - enable xsl extension (#142174)
    - package both the xsl and dom extensions in php-xml
    - enable soap extension, shared (php-soap package) (#142901)
    - add patches from upstream 5.0 branch:
    * Zend_strtod.c compile fixes
    * correct php_sprintf return value usage
    * Mon Nov 22 2004 Joe Orton <[email protected]> 5.0.2-8
    - update for db4-4.3 (Robert Scheck, #140167)
    - build against mysql-devel
    - run tests in %%check
    * Wed Nov 10 2004 Joe Orton <[email protected]> 5.0.2-7
    - truncate changelog at 4.3.1-1
    - merge from 4.3.x package:
    - enable mime_magic extension and Require: file (#130276)
    * Mon Nov  8 2004 Joe Orton <[email protected]> 5.0.2-6
    - fix dom/sqlite enable/without confusion
    * Mon Nov  8 2004 Joe Orton <[email protected]> 5.0.2-5
    - fix phpize installation for lib64 platforms
    - add fix for segfault in variable parsing introduced in 5.0.2
    * Mon Nov  8 2004 Joe Orton <[email protected]> 5.0.2-4
    - update to 5.0.2 (#127980)
    - build against mysqlclient10-devel
    - use new RTLD_DEEPBIND to load extension modules
    - drop explicit requirement for elfutils-devel
    - use AddHandler in default conf.d/php.conf (#135664)
    - "fix" round() fudging for recent gcc on x86
    - disable sqlite pending audit of warnings and subpackage split
    * Fri Sep 17 2004 Joe Orton <[email protected]> 5.0.1-4
    - don't build dom extension into 2.0 SAPI
    * Fri Sep 17 2004 Joe Orton <[email protected]> 5.0.1-3
    - ExclusiveArch: x86 ppc x86_64 for the moment
    * Fri Sep 17 2004 Joe Orton <[email protected]> 5.0.1-2
    - fix default extension_dir and conf.d/php.conf
    * Thu Sep  9 2004 Joe Orton <[email protected]> 5.0.1-1
    - update to 5.0.1
    - only build shared modules once
    - put dom extension in php-dom subpackage again
    - move extension modules into %%{_libdir}/php/modules
    - don't use --with-regex=system, it's ignored for the apache* SAPIs
    * Wed Aug 11 2004 Tom Callaway <[email protected]>
    - Merge in some spec file changes from Jeff Stern ([email protected])
    * Mon Aug 09 2004 Tom Callaway <[email protected]>
    - bump to 5.0.0
    - add patch to prevent clobbering struct re_registers from regex.h
    - remove domxml references, replaced with dom now built-in
    - fix php.ini to refer to php5 not php4
    * Wed Aug 04 2004 Florian La Roche <[email protected]>
    - rebuild
    * Wed Jul 14 2004 Joe Orton <[email protected]> 4.3.8-3
    - update to 4.3.8
    - catch some fd > FD_SETSIZE vs select() issues (#125258)
    * Mon Jun 21 2004 Joe Orton <[email protected]> 4.3.7-4
    - pick up test failures again
    - have -devel require php of same release
    * Thu Jun 17 2004 Joe Orton <[email protected]> 4.3.7-3
    - add gmp_powm fix (Oskari Saarenmaa, #124318)
    - split mbstring, ncurses, gd, openssl extns into subpackages
    - fix memory leak in apache2handler; use ap_r{write,flush}
      rather than brigade interfaces
    * Tue Jun 15 2004 Elliot Lee <[email protected]>
    - rebuilt
    * Thu Jun  3 2004 Joe Orton <[email protected]> 4.3.7-1
    - update to 4.3.7
    - have -pear subpackage require php of same VR
    * Wed May 26 2004 Joe Orton <[email protected]> 4.3.6-6
    - buildrequire smtpdaemon (#124430)
    - try switching to system libgd again (prevent symbol conflicts
      when e.g. mod_perl loads the system libgd library.)
    * Wed May 19 2004 Joe Orton <[email protected]> 4.3.6-5
    - don't obsolete php-imap (#123580)
    - unconditionally build -imap subpackage
    * Thu May 13 2004 Joe Orton <[email protected]> 4.3.6-4
    - remove trigger
    * Thu Apr 22 2004 Joe Orton <[email protected]> 4.3.6-3
    - fix umask reset "feature" (#121454)
    - don't use DL_GLOBAL when dlopen'ing extension modules
    * Sun Apr 18 2004 Joe Orton <[email protected]> 4.3.6-2
    - fix segfault on httpd SIGHUP (upstream #27810)
    * Fri Apr 16 2004 Joe Orton <[email protected]> 4.3.6-1
    - update to 4.3.6 (Robert Scheck, #121011)
    * Wed Apr  7 2004 Joe Orton <[email protected]> 4.3.4-11
    - add back imap subpackage, using libc-client (#115535)
    * Tue Mar 02 2004 Elliot Lee <[email protected]>
    - rebuilt
    * Wed Feb 18 2004 Joe Orton <[email protected]> 4.3.4-10
    - eliminate /usr/local/lib RPATH in odbc.so
    - really use system pcre library
    * Fri Feb 13 2004 Elliot Lee <[email protected]> 4.3.4-9
    - rebuilt
    * Mon Feb  2 2004 Bill Nottingham <[email protected]> 4.3.4-8
    - obsolete php-imap if we're not building it
    * Wed Jan 28 2004 Joe Orton <[email protected]> 4.3.4-7
    - gd fix for build with recent Freetype2 (from upstream)
    - remove easter egg (Oden Eriksson, Mandrake)
    * Wed Jan 21 2004 Joe Orton <[email protected]> 4.3.4-6
    - php-pear requires php
    - also remove extension=imap from php.ini in upgrade trigger
    - merge from Taroon: allow upgrade from Stronghold 4.0
    * Wed Jan 21 2004 Joe Orton <[email protected]> 4.3.4-5
    - add defattr for php-pear subpackage
    - restore defaults: output_buffering=Off, register_argc_argv=On
    - add trigger to handle php.ini upgrades smoothly (#112470)
    * Tue Jan 13 2004 Joe Orton <[email protected]> 4.3.4-4
    - conditionalize support for imap extension for the time being
    - switch /etc/php.ini to use php.ini-recommended (but leave
      variables_order as EGPCS) (#97765)
    - set session.path to /var/lib/php/session by default (#89975)
    - own /var/lib/php{,/session} and have apache own the latter
    - split off php-pear subpackage (#83771)
    * Sat Dec 13 2003 Jeff Johnson <[email protected]> 4.3.4-3
    - rebuild against db-4.2.52.
    * Mon Dec  1 2003 Joe Orton <[email protected]> 4.3.4-2
    - rebuild for new libxslt (#110658)
    - use --with-{mssql,oci8} for enabling extensions (#110482)
    - fix rebuild issues (Jan Visser, #110274)
    - remove hard-coded LIBS
    - conditional support for mhash (Aleksander Adamowski, #111251)
    * Mon Nov 10 2003 Joe Orton <[email protected]> 4.3.4-1.1
    - rebuild for FC1 updates
    * Mon Nov 10 2003 Joe Orton <[email protected]> 4.3.4-1
    - update to 4.3.4
    - include all licence files
    - libxmlrpc fixes
    * Mon Oct 20 2003 Joe Orton <[email protected]> 4.3.3-6
    - use bundled libgd (#107407)
    - remove manual: up-to-date manual sources are no longer DFSG-free;
      it's too big; it's on the web anyway; #91292, #105804, #107384
    * Wed Oct 15 2003 Joe Orton <[email protected]> 4.3.3-5
    - add php-xmlrpc subpackage (#107138)
    * Mon Oct 13 2003 Joe Orton <[email protected]> 4.3.3-4
    - drop recode support, symbols collide with MySQL
    * Sun Oct 12 2003 Joe Orton <[email protected]> 4.3.3-3
    - split domxml extension into php-domxml subpackage
    - enable xslt and xml support in domxml extension (#106042)
    - fix httpd-devel build requirement (#104341)
    - enable recode extension (#106755)
    - add workaround for #103982
    * Thu Sep 25 2003 Jeff Johnson <[email protected]> 4.3.3-3
    - rebuild against db-4.2.42.
    * Sun Sep  7 2003 Joe Orton <[email protected]> 4.3.3-2
    - don't use --enable-versioning, it depends on libtool being
    broken (#103690)
    * Sun Sep  7 2003 Joe Orton <[email protected]> 4.3.3-1
    - update to 4.3.3
    - add libtool build prereq (#103388)
    - switch to apache2handler
    * Mon Jul 28 2003 Joe Orton <[email protected]> 4.3.2-8
    - rebuild
    * Tue Jul 22 2003 Nalin Dahyabhai <[email protected]> 4.3.2-7
    - rebuild
    * Tue Jul  8 2003 Joe Orton <[email protected]> 4.3.2-6
    - use system pcre library
    * Mon Jun  9 2003 Joe Orton <[email protected]> 4.3.2-5
    - enable mbstring and mbregex (#81336)
    - fix use of libtool 1.5
    * Wed Jun 04 2003 Elliot Lee <[email protected]>
    - rebuilt
    * Tue Jun  3 2003 Joe Orton <[email protected]> 4.3.2-3
    - add lib64 and domxml fixes
    * Tue Jun  3 2003 Frank Dauer <[email protected]>
    - added conditional support for mssql module (#92149)
    * Fri May 30 2003 Joe Orton <[email protected]> 4.3.2-2
    - update the -tests and -lib64 patches
    - fixes for db4 detection
    - require aspell-devel >= 0.50.0 for pspell compatibility
    * Thu May 29 2003 Joe Orton <[email protected]> 4.3.2-1
    - update to 4.3.2
    * Fri May 16 2003 Joe Orton <[email protected]> 4.3.1-3
    - link odbc module correctly
    - patch so that php -n doesn't scan inidir
    - run tests using php -n, avoid loading system modules
    * Wed May 14 2003 Joe Orton <[email protected]> 4.3.1-2
    - workaround broken parser produced by bison-1.875
    * Tue May  6 2003 Joe Orton <[email protected]> 4.3.1-1
    - update to 4.3.1; run test suite
    - open extension modules with RTLD_NOW rather than _LAZYThe error is :
    Build complete.
    (It is safe to ignore warnings about tempnam and tmpnam).
    + with-oci8 enable-sigchild
    /var/tmp/rpm-tmp.3167: line 156: --with-oci8: command not found
    error: Bad exit status from /var/tmp/rpm-tmp.3167 (%build)
    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.3167 (%build)If i modify spec like this :
    # Build /usr/bin/php-cgi with the CGI SAPI, and all the shared extensions
    pushd build-cgi
    build --enable-force-cgi-redirect \
          --enable-pcntl \
          with-imap=shared with-imap-ssl \
          enable-mbstring=shared enable-mbstr-enc-trans \
          --enable-mbregex \
          --with-ncurses=shared \
          --with-gd=shared \
          --enable-bcmath=shared \
          enable-dba=shared with-db4=%{_prefix} \
          --with-xmlrpc=shared \
          --with-ldap=shared \
          --with-mysql=shared,%{_prefix} \
          --with-mysqli=shared,%{_bindir}/mysql_config \
          --enable-dom=shared \
          --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \
          --with-pgsql=shared \
          --with-snmp=shared,%{_prefix} \
          --enable-soap=shared \
          --with-xsl=shared,%{_prefix} \
          enable-xmlreader=shared enable-xmlwriter=shared \
          --enable-fastcgi \
          --enable-pdo=shared \
          --with-pdo-odbc=shared,unixODBC,%{_prefix} \
          --with-pdo-mysql=shared,%{_prefix} \
          --with-pdo-pgsql=shared,%{_prefix} \
          --with-pdo-sqlite=shared,%{_prefix} \
    #      --with-pdo-oci=shared,$ORACLE_HOME \
          --with-oci8=shared,$ORACLE_HOME/lib \
           --enable-sigchild
    popdI'm getting :
    Build complete.
    (It is safe to ignore warnings about tempnam and tmpnam).
    + with-oci8=shared,/u01/app/oracle/product/10.2.0/db_1/lib enable-sigchild
    /var/tmp/rpm-tmp.11885: line 156: --with-oci8=shared,/u01/app/oracle/product/10.2.0/db_1/lib: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.11885 (%build)
    Please help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

    and a bit further :
    diff:
    12,13c12,13
    < %define oci8_test_system_password tiger
    < %define oci8_test_connection_string localhost/lhome
    %define oci8_test_system_password oracle
    %define oci8_test_connection_string localhost/orcl2136,138c136,137
    < Requires: php-common = %{version}-%{release}, php-pdo
    < # oracle-instantclient-basic = %{ociver} php-pdo
    < #BuildRequires: oracle-instantclient-devel = %{ociver}
    Requires: php-common = %{version}-%{release}, oracle-instantclient-basic = %{ociver} php-pdo
    BuildRequires: oracle-instantclient-devel = %{ociver}339c338
    < \$user       = "scott";
    \$user = "system";487c486,487
    <       with-oci8 enable-sigchild
    --with-pdo-oci=shared,instantclient,/usr,%{ociver} \
    --with-oci8=shared,instantclient,/usr/lib/oracle/%{ociver}/client/lib --enable-sigchild496c496
    <       disable-pdo disable-xmlreader --disable-xmlwriter
    disable-pdo disable-xmlreader --disable-xmlwriter506,508c506,508
    < #export PDO_OCI_TEST_DSN=oci:dbname=%{oci8_test_connection_string}
    < #export PDO_OCI_TEST_USER=system
    < #export PDO_OCI_TEST_PASS=%{oci8_test_system_password}
    export PDO_OCI_TEST_DSN=oci:dbname=%{oci8_test_connection_string}
    export PDO_OCI_TEST_USER=system
    export PDO_OCI_TEST_PASS=%{oci8_test_system_password}571c571
    <     pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite; do
    pdo pdo_mysql pdo_pgsql pdo_odbc pdo_sqlite pdo_oci; do589c589
    < #cat files.pdo_oci >> files.oci8
    cat files.pdo_oci >> files.oci8rpmbuild -bi
    + '[' /var/tmp/php-root '!=' / ']'
    + rm -f /var/tmp/php-root/etc/httpd/conf/httpd.conf /var/tmp/php-root/etc/httpd/conf/httpd.conf.bak
    + /usr/lib/rpm/brp-compress
    + /usr/lib/rpm/brp-strip
    + /usr/lib/rpm/brp-strip-static-archive
    + /usr/lib/rpm/brp-strip-comment-note
    Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.40673
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd php-5.2.3
    + cd build-apache
    + export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
    + NO_INTERACTION=1
    + REPORT_EXIT_STATUS=1
    + MALLOC_CHECK_=2
    + unset TZ LANG LC_ALL
    + make test
    Build complete.
    Don't forget to run 'make test'.
    PHP Warning:  PHP Startup: gd: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    PHP Warning:  PHP Startup: ldap: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    PHP Warning:  PHP Startup: gd: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=0
    These options need to match
    in Unknown on line 0
    PHP Warning:  PHP Startup: ldap: Unable to initialize module
    Module compiled with module API=20050922, debug=0, thread-safety=0
    PHP    compiled with module API=20060613, debug=0, thread-safety=0etc. etc...

  • Failed to install php-oci8 with instant Client for linux 64

    Hello,
    I have a 64-bits Linux box with RHEL4, and PHP version has been upgraded from 4.3.9 to 5.1.6. I try to make the connection to remote oracle server.
    I download instantclient-basic-linuxppc-10.2.0.2-20060327.zip , and follow the instruction to
    install it.
    But when i try to install php-oci8*.rpm, no matter which i use:
    php-oci8-5.1.6-1.el5.i386.rpm or php-oci8-4.3.9-2.2.el4.i386.rpm
    The installation always failed due to dependencies errors with oracle instant client.
    I also tried with some other packages like: php-oci8-4.3.9-3.el4.x86_64.rpm
    All my tries gave me dependency errors.
    sometime like:
    error: Failed dependencies:
    libclntsh.so.10.1 is needed by php-oci8-5.1.6-1.el5.i386
    oracle-instantclient = 10.2.0.3 is needed by
    php-oci8-5.1.6-1.el5.i386And I cannt find the right RPM for oracle instant client for linux 64 bits box, and php-oci8 5.1.6 64 bits.
    I have been trying on this problem for more than one week, and so frustrated. I will appreciate if I can be guide on this issue.
    Thanks in advance!

    See my followup to your duplicate post in the PHP forum

  • PHP OCI8 1.4.0 Alpha is now available

    I just released an Alpha version of PECL OCI8 1.4 on http://pecl.php.net/package/oci8
    The code is also merged to what will eventually be the PHP 5.3.2 and PHP 6.0 releases.
    Documentation will appear on http://www.php.net/manual/en/ref.oci8.php
    in the next few days, if all goes according to plan.
    From the changelog:
    1. Introduce connection attribute functions:
    oci_set_module_name
    oci_set_action
    oci_set_client_info
    oci_set_client_identifier
    These set values that are visible/used by the database. They
    are useful for tracing, authentication and auditing.
    2. Introduce connection attribute function:
    oci_set_edition
    Oracle 11g R2 "editions" allow multiple versions of DB objects
    to exist at one time. By setting different editions, two
    different versions of an application can run concurrently,
    making upgrading easier and faster.
    3. Set the DRIVER_NAME attribute of Oracle Database 11gR2
    connections to aid application tracing. The value used is to
    "PHP OCI8" followed by the OCI8 version number. Note the
    version number may get truncated in DB views such as
    v$session_connect_info.
    4. Allow the oci_set_prefetch value to be 0. This is important in
    some cases using REF CURSORS in Oracle 11gR2.
    5. Introduce OCI_NO_AUTO_COMMIT as an alias for the OCI_DEFAULT
    constant (which is not the default value) used by oci_execute().
    6. Generate an error if an invalid resource type is used in
    oci_bind_by_name

    Docs for the new functionality should be pushed out to the mirrors later today. Currently the new pages are on the master http://www.php.net/manual/en/ref.oci8.php

  • JDBC OCI8 driver for Redhat linux 6.1

    I have oracle 8.1.5.0.1 Enterprise server loaded on RedHat linux 6.1 and i am trying to access database through jdbc. When I am trying to execute one of the compiled class say Employee.class provided in the JDBC samples directory using OCI* driver it is coming up with an error libocijdbc8.so can not open shared object file: no such file or directory. This libocijdbc8.so file can not be found on the disk. Can some one please provide me leads where can find this driver? ar Oracle's website or somewhere else?. Any help in this regard will be greatly appreciated.
    Thanks
    Naidu

    One more thing, I tried this with both jdk1.1.6_v5 and jdk1.1.8 and also i have class path pointing to $ORACLE_HOME/jdbc/lib/classes111.zip file. and the code is
    /* This sample shows how to list all the names from the EMP table
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    class Employee
    public static void main (String args [])
    throws SQLException, ClassNotFoundException
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You can put a database name after the @ sign in the connection URL.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:oci8:@NaiduT2", "scott", "tiger");
    // Create a Statement
    Statement stmt = conn.createStatement ();
    // Select the ENAME column from the EMP table
    ResultSet rset = stmt.executeQuery ("select ENAME from EMP");
    // Iterate through the result and print the employee names
    while (rset.next ())
    System.out.println (rset.getString (1));
    // Close the RseultSet
    rset.close();
    // Close the Statement
    stmt.close();
    // Close the connection
    conn.close();
    }

  • OCI8 connection issue

    SLES 10
    Oracle instantclient 10.2.0.4
    PHP 5.2.5
    I'm stuck (again!)
    I am unable to get OCI8 installed properly using these instructions:
    http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    When I run a phpinfo script in my browser, no OCI8 section is displayed.
    I was having trouble compiling OCI8 (step 3), until someone on the forum told me to unset ORACLE_HOME path, which I did, then the compile worked. I went on to complete steps 4 and 5:
    I edited the /etc/profile.d/oracle.sh file to manually set the LD_LIBRARY_PATH (commented out below, because I'm not sure I did that correctly):
    PATH=$PATH:$ORACLE_HOME/bin
    +LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$ORACLE_HOME/lib:$ORACLE\+
    _HOME/ctx/lib+
    +# LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib+
    I edited the /etc/php5/apache2/php.ini file to verify the extension directory and add oci8.so line:
    +; Directory in which the loadable extensions (modules) reside.+
    extension_dir = /usr/lib/php5/extensions
    extension=oci8.so
    For some reason, the ORACLE_HOME in the environment keeps resetting itself back to +/usr/lib/oracle/10.2.0.4/client+. Does the unset only hold for a terminal session? Is there a way to permanently unset it? (I used "UNSET ORACLE_HOME")
    Is the ORACLE_HOME path in the environment the reason why OCI8 won't work?
    Any other ideas? I'm new to Linux, so be gentle with me!
    Thanks in advance for any help. :)

    There really isn't anything different about it other than they've done all the configuration probably better than I could do it. It's still all of the same components that you would use.
    Jeff
    Edited by: user11114726 on Jun 10, 2009 5:28 PM

  • OCI8 compile errors on SLES 10

    I'm stuck. New to Linux, so the error messages are greek. I've googled for days. Can anyone decipher the issue here? Thanks in advance for any help!!
    Used RPM to install instant client 10.2.0.4 (user didn't want v11).
    PHP 5.2.5 installed.
    Used yast to install php5-dev pacakge
    Receive the following output when trying to install oci8 using pecl (sorry it's so long, but I didn't know which part was important - and I did delete a chunk out of the middle that seemed repetitive, since there is a character limit in this forum...):
    +<server>:~ # pecl install oci8+
    downloading oci8-1.3.5.tar ...
    Starting to download oci8-1.3.5.tar (Unknown size)
    +.............................................done: 1,071,616 bytes+
    +10 source files, building+
    running: phpize
    Configuring for:
    PHP Api Version:         20041225
    Zend Module Api No:      20060613
    Zend Extension Api No:   220060519
    +1. Please provide the path to the ORACLE_HOME directory. Use+
    +'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant+
    Client : autodetect
    +1-1, 'all', 'abort', or Enter to continue:+
    building in /var/tmp/pear-build-<username>/oci8-1.3.5
    +running: /tmp/pear/cache/oci8-1.3.5/configure --with-oci8+
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking whether gcc and cc understand -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... i686-suse-linux
    checking host system type... i686-suse-linux
    checking target system type... i686-suse-linux
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main
    -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
    -I/usr/include/php5/ext/date/lib
    checking for PHP extension directory... /usr/lib/php5/extensions
    checking for PHP installed headers prefix... /usr/include/php5
    checking for re2c... no
    configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate
    PHP parsers.
    checking for gawk... gawk
    checking for Oracle (OCI8) support... yes, shared
    checking PHP version... 5.2.5, ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for long int... yes
    checking size of long int... 4
    checking checking if we're on a 64-bit platform... no
    checking Oracle ORACLE_HOME install directory... /usr/lib/oracle/10.2.0.4/client
    checking ORACLE_HOME library validity... lib
    checking Oracle version... 10.1
    checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
    checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
    checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... gfortran
    checking whether we are using the GNU Fortran 77 compiler... yes
    checking whether gfortran accepts -g... yes
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared
    libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such
    file or directory
    GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    appending configuration tag "F77" to libtool
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for gfortran option to produce PIC... -fPIC
    checking if gfortran PIC flag -fPIC works... yes
    checking if gfortran static flag -static works... yes
    checking if gfortran supports -c -o file.o... yes
    checking whether the gfortran linker (/usr/i586-suse-linux/bin/ld) supports shared
    libraries... yes
    checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such
    file or directory
    GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    configure: creating ./config.status
    config.status: creating config.h
    running: make
    +/bin/sh /var/tmp/pear-build-<username>/oci8-1.3.5/libtool --mode=compile gcc  -I.+
    -I/tmp/pear/cache/oci8-1.3.5 -DPHP_ATOM_INC
    -I/var/tmp/pear-build-<username>/oci8-1.3.5/include
    -I/var/tmp/pear-build-<username>/oci8-1.3.5/main -I/tmp/pear/cache/oci8-1.3.5
    -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
    -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
    -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/cache/oci8-1.3.5/oci8.c -o oci8.lo
    mkdir .libs
    gcc -I. -I/tmp/pear/cache/oci8-1.3.5 -DPHP_ATOM_INC
    -I/var/tmp/pear-build-<username>/oci8-1.3.5/include
    -I/var/tmp/pear-build-<username>/oci8-1.3.5/main -I/tmp/pear/cache/oci8-1.3.5
    -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM
    -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
    -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/oci8-1.3.5/oci8.c  -fPIC -DPIC -o
    +.libs/oci8.o+
    In file included from /tmp/pear/cache/oci8-1.3.5/oci8.c:51:
    +/tmp/pear/cache/oci8-1.3.5/php_oci8_int.h:56:17: error: oci.h: No such file or+
    directory
    In file included from /tmp/pear/cache/oci8-1.3.5/oci8.c:51:
    specifier-qualifier-list before 'text'
    +/tmp/pear/cache/oci8-1.3.5/php_oci8_int.h:183: error: expected+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:992: error: (Each undeclared identifier is+
    reported only once
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:992: error: for each function it appears in.)+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:992: error: expected ';' before 'errstatus'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:993: error: 'sb4' undeclared (first use in this+
    named 'env'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:1042: error: called object+
    +'<erroneous-expression>' is not a function+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:1042: error: 'OCI_HTYPE_ENV' undeclared (first+
    use in this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:1044: error: 'zend_oci_globals' has no member+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2392: error: 'php_oci_out_column' has no+
    member named 'retlen'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2392: warning: assignment makes integer from+
    pointer without a cast
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2401: error: 'php_oci_out_column' has no+
    member named 'data'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2401: warning: initialization from incompatible+
    pointer type
    +/tmp/pear/cache/oci8-1.3.5/oci8.c: In function 'php_oci_fetch_row':+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2416: error: 'ub4' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2416: error: expected ';' before 'nrows'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2462: error: 'nrows' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2462: error: too many arguments to function+
    +'php_oci_statement_fetch'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2468: error: 'php_oci_statement' has no+
    member named 'ncolumns'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2468: warning: comparison between pointer and+
    integer
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2475: error: 'php_oci_out_column' has no+
    member named 'idle_expiry'
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: 'php_oci_spool' has no member+
    named 'env'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: 'dvoid' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2568: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2570: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2570: error: 'OCI_SUCCESS' undeclared (first+
    use in this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2571: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2571: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2580: error: 'zend_oci_globals' has no member+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2592: error: 'OCI_SPC_HOMOGENEOUS'+
    undeclared (first use in this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: 'OraText' undeclared (first use in+
    this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2598: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2600: error: 'zend_oci_globals' has no member+
    named 'persistent_timeout'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2608: error: expected ';' before 'timeout'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2610: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2612: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2613: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2613: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2625: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c: In function 'php_oci_get_spool':+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2680: error: 'php_oci_spool' has no member+
    named 'spool_hash_key'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2680: error: 'php_oci_spool' has no member+
    named 'spool_hash_key'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2680: warning: passing argument 1 of 'strlen'+
    from incompatible pointer type
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2680: warning: passing argument 2 of+
    +'_zend_hash_add_or_update' from incompatible pointer type+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2682: error: 'php_oci_spool' has no member+
    named 'spool_hash_key'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2682: warning: passing argument 1 of 'strlen'+
    from incompatible pointer type
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2683: error: 'php_oci_spool' has no member+
    named 'spool_hash_key'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c: At top level:+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2703: error: expected '=', ',', ';', 'asm' or+
    +'__attribute__' before '*' token+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c: In function 'php_oci_old_create_session':+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2728: error: 'ub4' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2728: error: expected ';' before+
    +'statement_cache_size'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2730: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2735: error: 'php_oci_connection' has no+
    member named 'env'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2735: error: 'php_oci_connection' has no+
    member named 'charset'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'php_oci_connection' has no+
    member named 'env'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'dvoid' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2740: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2742: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2742: error: 'OCI_SUCCESS' undeclared (first+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2748: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2748: error: 'php_oci_connection' has no+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2792: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2792: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2792: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2794: error: 'zend_oci_globals' has no member+
    named 'debug_mode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'php_oci_connection' has no+
    member named 'svc'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'OCI_HTYPE_SVCCTX' undeclared+
    +(first use in this function)+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'php_oci_connection' has no+
    member named 'server'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'OCI_ATTR_SERVER' undeclared+
    +(first use in this function)+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2801: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2809: error: 'php_oci_connection' has no+
    member named 'svc'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2809: error: 'php_oci_connection' has no+
    member named 'session'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2809: error: 'OCI_ATTR_SESSION' undeclared+
    +(first use in this function)+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2818: error: 'php_oci_connection' has no+
    member named 'svc'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2818: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2818: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2818: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2818: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2820: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2821: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2825: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2825: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2825: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2833: error: expected ';' before 'cred_type'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2837: error: 'cred_type' undeclared (first use in+
    this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2837: error: 'OCI_CRED_EXT' undeclared (first+
    use in this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2841: error: 'OCI_STMT_CACHE' undeclared+
    +(first use in this function)+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2841: error: invalid operands to binary |+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2841: error: incompatible types in assignment+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: 'php_oci_connection' has no+
    member named 'svc'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: 'php_oci_connection' has no+
    member named 'session'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: expected ')' before 'cred_type'+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2843: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2845: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2850: error: 'OCI_SUCCESS_WITH_INFO'+
    undeclared (first use in this function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2857: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2857: warning: comparison between pointer and+
    integer
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2858: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2862: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2862: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2862: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2862: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2864: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2991: error: 'ub1' undeclared (first use in this+
    function)
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2991: error: expected expression before ')'+
    token
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2991: error: invalid operands to binary *+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2991: error: 'zend_oci_globals' has no member+
    named 'in_call'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2992: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2993: error: 'zend_oci_globals' has no member+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2997: error: 'php_oci_connection' has no+
    member named 'next_pingp'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2999: error: 'zend_oci_globals' has no member+
    named 'err'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:2999: warning: comparison between pointer and+
    named 'errcode'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3003: error: 'php_oci_connection' has no+
    member named 'next_pingp'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3003: error: invalid operands to binary >+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3003: error: 'php_oci_connection' has no+
    member named 'next_pingp'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3003: error: invalid operands to binary >=+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3006: error: 'php_oci_connection' has no+
    member named 'next_pingp'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3006: error: 'zend_oci_globals' has no member+
    named 'spool_hash_key'
    +/tmp/pear/cache/oci8-1.3.5/oci8.c: At top level:+
    +/tmp/pear/cache/oci8-1.3.5/oci8.c:3082: error: expected '=', ',', ';', 'asm' or+
    +'__attribute__' before 'php_oci_ping_init'+
    +make: *** [oci8.lo] Error 1+
    ERROR: `make' failed
    +<server>:~ #+

    Unset ORACLE_HOME. It should not be set for Instant Client (except in one rare case).
    Also instead of leaving the install to "autodetect", try using the form "instantclient,/usr/lib/oracle/10.2.0.4/client/lib". See http://blogs.oracle.com/opal/2009/03/pecl_install_prompts_explained.html for a discussion of answering the PECL install prompts.
    Also see http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    and http://www.oracle.com/technology/tech/php/pdf/underground-php-oracle-manual.pdf

  • Unable to load php extension oci8.dll in wamp server windows xp

    Hi this is my first post in this forum.
    I have installed wamp server 2.2 on my windows xp desktop and I am trying to use oci8.dll extension to enable my oracle queries to run in my php pages. but when i enable to ext in wamp server i am getting the below error.
    PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.13/php_oci8.dll
    I have tried installing 'oracle instant client'
    I have tried copying oci8.dll file from another system(where oci8.dll is succesfully loaded)
    I updated the environment variable path also to point the oracle instantclient_10_2
    I am still not able to vercome this error.

    Your post doesn't have enough detail to identify a cause.
    How did you install Instant Client? Did you set PATH?
    Don't copy oci8.dll. It is too easy to get a conflicted set up.

  • Oci8 and oracle thin

    I am using developer 3.0 on the NT server machine, with oracle 8
    First of all when i start my computer one error message raise that is "one of your service is not running please check the event log". I saw the event log that service is oraclestartorc1. who can i start this service. the other oraclelistener service is also give error message in starting.
    so next thing is when i click on the connection UI to make a new connection. I click on the oracle oci8 and use localhost = 127.0.0.1 and protocol = TCP and SID = orcl then error message comes that "ocijdbc8 is not in share path" who can i remove this problem also. I also use BEQ protocol to connect but the error message is same. When i use oracle thin driver then it raise message "could not establish the connection with adapter". Who can i remove this also. when i use the jdbc-odbc bridge it success the connection in test. But it does not show in connection. Who can i get driver for oci8, oci7 or for thin. Simply i want to connect my computer local database. my oracle directory is "orant" please help me thanks..
    null

    Jawada,
    Try the following:
    1. Make sure your ORACLE_HOME directory is in your PATH (JDeveloper needs this so it can find the OCI driver's client-side DLL).
    2. Make sure you have an alias set up for your database in your TNSNAMES.ORA file (usually located in ORACLE_HOME\network\admin). I believe previous posts to your other questions provided instructions for this.
    3. Within JDeveloper, select Tools | IDE Options... from the menu. Choose the Environment Tab, and in the Oracle Home section, choose the name of your Oracle Home or choose Default Home from the Select an Oracle Home list. (this isn't really required unless you have multiple Oracle Home's installed on your machine).
    4. When creating your connection within JDeveloper:
    a. Choose Oracle JDBC OCI-8 from the Select a JDBC Driver list.
    b. Choose Existing TNS Names from the Select a Connection Method list.
    c. Choose the alias for your database from the TNS Service list (this list will not appear until you choose Existing TNS Names from the Connection Method list.
    null

  • Sqlnet.ora doesn't seem to be read since oci8 1.3.4

    Hello,
    I used to use oci8 version 1.2.3 and I wanted to update to last version (1.3.4). Everything works fine except the fact that "sqlnet.ora" does not seems to be read anymore.
    I use the following string to describe my database in oci_connect: "MEN1PRD".
    In sqlnet.ora there is the parameter NAMES.DEFAULT_DOMAIN which is set to "WORLD".
    In the tnsname.ora I have a full definition for "MEN1PRD.WORLD".
    With oci8 1.2.3, it worked but since I upgraded to 1.3.4 this is not the case anymore. I have to use the same ID in oci_connect and tnsname.org. The sqlnet.ora NAMES.DEFAULT_DOMAIN does not seem to be used anymore.
    The version of php (5.2.3) is still the same, the configure options are the sames, the oracle lib is the same (9.2) and the php.ini parameters are the same too. I just changed the oci8 version.
    Has anyone the same problem ? Is this a normal behaviour ? If yes, why
    and is there a workaround ?
    Thanks for your answers.
    ++ Jerome
    Reproduce code:
    Piece of code which used to work (version 1.2.3) and doesn't work
    anymore (version 1.3.4):
    $conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD');
    Piece of code which works (version 1.3.4):
    $conn = oci_connect('EDUCATION', 'manager', 'MEN1PRD.WORLD');
    Content of sqlnet.ora (which is in the same directory as tnsname.ora):
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    NAMES.DEFAULT_DOMAIN = WORLD
    LOG_DIRECTORY_SERVER = /var/tmp
    Contenat of tnsname.ora
    MEN1PRD_RAC =
    ( DESCRIPTION =
    ( ADDRESS = ( PROTOCOL = TCP )( HOST = host1 )( PORT = 1521 ) )
    ( ADDRESS = ( PROTOCOL = TCP )( HOST = host2 )( PORT = 1521 ) )
    ( LOAD_BALANCE = yes )
    ( CONNECT_DATA =
    ( SERVER = DEDICATED )
    ( SERVICE_NAME = SN_MEN1PRD )
    Init script:
    export ORACLE_HOME=/usr/local/oracle/VERSIONS/Linux/CL.9.2.0
    PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/network/admin:$ORACLE_HOME/lib:/usr/local/bin
    export ORACLE_SID=MEN1PRD
    export HOSTNAME=`hostname`
    export NLS_LANG=FRENCH_FRANCE.WE8ISO8859P15
    export LC_ALL=fr_FR
    export LANG=fr_FR
    Expected result:
    The connexion is made to the database
    Actual result:
    [Mon Feb 16 18:05:14 2009] [error] [client 127.0.0.1] PHP Warning:
    oci_connect() [function.oci-connect]:
    ORA-12154: TNS:could not resolve service name in /var/www/docs/test1.php
    on line 2

    See http://pecl.php.net/bugs/bug.php?id=15988 It's a problem with 9.2 - 10.2.0.3, fixed in 10.2.0.4
    Discussions about best solution is ongoing; currently centering around not using session pooling code path in PHP OCI8 when using Oracle prior to 11.

  • Need help with OCI8::Cursor object

    I'm using ActiveRecord::Base.connection.execute to run a SQL statement against an Oracle schema that is "external" to my Rails database.
    I'm building the connection on the fly using connection parameters stored in my Rails database (MySQL).
    So far so good...I can create the connection and run the query...I'm getting back an OCI8::Cursor object and that's where I'm stuck.
    I need to display the results of the query in a Rails view.
    New to Ruby and I'm not sure how to proceed.
    Here's what I'm getting back:
    #<OCI8::Cursor:0xb76c679c @stmttype=1, @svc=#<OCISvcCtx:0xb76c6c24>, @env=#<OCIEnv:0xb7765928>, @defns=[nil, #<OCIDefine:0xb76c5d10>, #<OCIDefine:0xb76c5cd4>, #<OCIDefine:0xb76c5c5c>, #<OCIDefine:0xb76c5bf8>, #<OCIDefine:0xb76c5bd0>, #<OCIDefine:0xb76c5ba8>, #<OCIDefine:0xb76c5b80>, #<OCIDefine:0xb76c5b58>, #<OCIDefine:0xb76c5b30>, #<OCIDefine:0xb76c5b08>, #<OCIDefine:0xb76c5ae0>, #<OCIDefine:0xb76c5ab8>, #<OCIDefine:0xb76c5a90>, #<OCIDefine:0xb76c5a68>, #<OCIDefine:0xb76c5a40>, #<OCIDefine:0xb76c5a18>, #<OCIDefine:0xb76c59f0>, #<OCIDefine:0xb76c59c8>, #<OCIDefine:0xb76c59a0>, #<OCIDefine:0xb76c5978>, #<OCIDefine:0xb76c5950>, #<OCIDefine:0xb76c5928>, #<OCIDefine:0xb76c5914>, #<OCIDefine:0xb76c58d8>, #<OCIDefine:0xb76c58b0>, #<OCIDefine:0xb76c5888>, #<OCIDefine:0xb76c5860>, #<OCIDefine:0xb76c5838>, #<OCIDefine:0xb76c5810>, #<OCIDefine:0xb76c57e8>, #<OCIDefine:0xb76c57c0>, #<OCIDefine:0xb76c5798>, #<OCIDefine:0xb76c5770>, #<OCIDefine:0xb76c5748>, #<OCIDefine:0xb76c5720>, #<OCIDefine:0xb76c56f8>, #<OCIDefine:0xb76c56d0>, #<OCIDefine:0xb76c56a8>, #<OCIDefine:0xb76c5680>, #<OCIDefine:0xb76c5658>, #<OCIDefine:0xb76c5630>, #<OCIDefine:0xb76c5608>, #<OCIDefine:0xb76c55e0>, #<OCIDefine:0xb76c55b8>, #<OCIDefine:0xb76c5590>, #<OCIDefine:0xb76c5568>, #<OCIDefine:0xb76c5540>, #<OCIDefine:0xb76c5518>, #<OCIDefine:0xb76c54f0>, #<OCIDefine:0xb76c54c8>, #<OCIDefine:0xb76c54a0>], @binds=nil, @ctx=[32, #<Mutex:0xb76c6c38>, nil, 65535], @parms=[#<OCIParam:0xb76c66c0>, #<OCIParam:0xb76c66ac>, #<OCIParam:0xb76c6698>, #<OCIParam:0xb76c6684>, #<OCIParam:0xb76c6670>, #<OCIParam:0xb76c665c>, #<OCIParam:0xb76c6648>, #<OCIParam:0xb76c6634>, #<OCIParam:0xb76c6620>, #<OCIParam:0xb76c65f8>, #<OCIParam:0xb76c65e4>, #<OCIParam:0xb76c65d0>, #<OCIParam:0xb76c65bc>, #<OCIParam:0xb76c65a8>, #<OCIParam:0xb76c6594>, #<OCIParam:0xb76c6580>, #<OCIParam:0xb76c656c>, #<OCIParam:0xb76c6558>, #<OCIParam:0xb76c6544>, #<OCIParam:0xb76c6530>, #<OCIParam:0xb76c651c>, #<OCIParam:0xb76c6508>, #<OCIParam:0xb76c64f4>, #<OCIParam:0xb76c64e0>, #<OCIParam:0xb76c64cc>, #<OCIParam:0xb76c64b8>, #<OCIParam:0xb76c64a4>, #<OCIParam:0xb76c6490>, #<OCIParam:0xb76c647c>, #<OCIParam:0xb76c6418>, #<OCIParam:0xb76c638c>, #<OCIParam:0xb76c62c4>, #<OCIParam:0xb76c61e8>, #<OCIParam:0xb76c6080>, #<OCIParam:0xb76c6058>, #<OCIParam:0xb76c5fcc>, #<OCIParam:0xb76c5fb8>, #<OCIParam:0xb76c5f68>, #<OCIParam:0xb76c5f54>, #<OCIParam:0xb76c5ea0>, #<OCIParam:0xb76c5e64>, #<OCIParam:0xb76c5e14>, #<OCIParam:0xb76c5e00>, #<OCIParam:0xb76c5dec>, #<OCIParam:0xb76c5dd8>, #<OCIParam:0xb76c5dc4>, #<OCIParam:0xb76c5db0>, #<OCIParam:0xb76c5d9c>, #<OCIParam:0xb76c5d88>, #<OCIParam:0xb76c5d74>, #<OCIParam:0xb76c5d60>], @stmt=#<OCIStmt:0xb76c6760>>
    My problem is that I simply don't have a firm enough grasp on the basics of Ruby to dissect this thing and get at it's innards.
    If someone could drop me a code snippet that shows how to reference the contents of this in my erb file I think I'll be off to the races.

    If you want low level access to Oracle database then you can use ruby-oci8 API directly without using ActiveRecord.
    You can read about ruby-oci8 API at http://ruby-oci8.rubyforge.org/en/api.html
    But if you want to use ActiveRecord then install and use oracle_enhanced adapter, see http://wiki.github.com/rsim/oracle-enhanced
    If you have any questions about oracle_enhanced adapter then probably it is better to ask them in http://groups.google.com/group/oracle-enhanced discussion group.
    It is not recommended approach to establish ActiveRecord connection and then use low level ruby-oci8 API.
    And if you have some problem then please describe exactly what you are doing and what you would like to achive and then also what error do you get.

  • BLOB JDBC/OCI8 and dbms_lob.read

    Hi,
    using dbms_lob.read() to retrieve a BLOB with JDBC/OCI8
    we cannot use a chunk larger than 255.
    If we try, we get a 21560 error.
    Any idea?
    Thanks
    Herve
    null

    Thanks for your quick answer.
    I tried it, but doing so, it doubles those characters coming from RAW format to VARCHAR2, and I've got a PNG-file that no picture-viewer shows, not even as garbage as was with CAST_TO_VARCHAR
    file size is now 44246 bytes and debug-output from loop is:
    chunk no:1 chunk size: 8192 chunksize in bytes: 8192
    chunk no:2 chunk size: 8192 chunksize in bytes: 8192
    chunk no:3 chunk size: 8192 chunksize in bytes: 8192
    chunk no:4 chunk size: 8192 chunksize in bytes: 8192
    chunk no:5 chunk size: 8192 chunksize in bytes: 8192
    chunk no:6 chunk size: 3286 chunksize in bytes: 3286
    whole chunk-size: 44246 in bytes: 44246
    Anymore ideas?

Maybe you are looking for

  • Why doesn't my iTunes content show in Library? Also, How can I sync music purchased on my iPhone to my PC's iTunes Library?

    I have been having several annoying problems with iTunes for the past several months... 1) Library content not showing after folder relocation: First, in order to free up space on my C drive, I wanted to relocate my iTunes folder to a new 1TB hard dr

  • First web site

    hi all, have been working on my first site please have a look and tell me what you think http://web.mac.com/gareth.barlow/iWeb/mac%20time/Home.html it's not complete but just looking for some views on it, are there too many pages and are the colors o

  • Apple reuse rules inquiry

    Hey guys, does anyone know if this is possible: I go to the store, give them my unlocked Iphone 5 to trade for an UNLOCKED NEW Iphone? Or it MUST be on contract? Thanks a lot in advance!

  • Send a message to my laptop

    i have received a multimedia message , but i am not able to transfer it to my laptop , i saved the message in the "my folder"s on the mobile , but when i browse my mobile using my laptop i can not find the folder and the message any help??/

  • SAP Solution Manager BP archiving

    Hello! I would like to delete BP. I have used transaction BUPA_PRE_DA, but I get next error: Business partner 0000000751 still used in business transactions Business partner 0000000753 still used in business transactions Business partner 0000000757 s