From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 5.3.0alpha2
PHP Bug Type: OCI8 related
Bug description: phpinfo() doesn't show compile time home with phpize install
Description:
------------
If OCI8 is installed from PECL, then phpinfo() doesn't show anything for
the "Compile-time ORACLE_HOME" or "Libraries Used" field.
There is no runtime impact on scripts because these are strings
constructed at build time,
The incorrect macros values are:
PHP_OCI8_SHARED_LIB_ADD
PHP_OCI8_DIR
The macros are defined as empty strings in the pre-existing
/usr/include/php/main/build-def.h. Nothing in phpize/configure overrides
them.
The PHP_OCI8_VERSION value is correct since it is overridden in php_oci8.h
(after Steph's PECL versioning project)
Potential solution is to change config.m4 and add these lines at the
end of the ORACEL_HOME and Instant Client blocks:
AC_DEFINE_UNQUOTED(PHP_OCI8_DEF_DIR, "$OCI8_DIR", [ ])
AC_DEFINE_UNQUOTED(PHP_OCI8_DEF_SHARED_LIBADD, "$OCI8_SHARED_LIBADD", [
])
Then change oci8.c to use the new macros:
#ifdef PHP_OCI8_DEF_DIR
php_info_print_table_row(2, "Compile-time ORACLE_HOME",
PHP_OCI8_DEF_DIR);
#endif
#ifdef PHP_OCI8_DEF_SHARED_LIBADD
php_info_print_table_row(2, "Libraries Used",
PHP_OCI8_DEF_SHARED_LIBADD);
#endif
Reproduce code:
---------------
tar -zxf oci8-1.3.4.tgz
cd oci8-1.3.4
phpize && ./configure --with-oci8=shared,$ORACLE_HOME && make install
[Add extension=oci8.so to php.ini]
php -i |grep ORACLE_HOME
Expected result:
----------------
phpinfo() should show:
Compile-time ORACLE_HOME => /home/oracle/app/oracle
Actual result:
--------------
phpinfo() shows:
Compile-time ORACLE_HOME =>
--
Edit bug report at http://bugs.php.net/?id=46623&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46623&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46623&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46623&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46623&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46623&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46623&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46623&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46623&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46623&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46623&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46623&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46623&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46623&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46623&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46623&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46623&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46623&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46623&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46623&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46623&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46623&r=mysqlcfg