#46623 [Csd]: phpinfo() doesn't show compile time home with phpize install
| From: | sixd@php.net | Date: | Wed, 11 Mar 2009 17:06:48 +0000 |
| Subject: | #46623 [Csd]: phpinfo() doesn't show compile time home with phpize install | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134619@lists.php.net to get a copy of this message | ||
ID: 46623
Updated by: sixd@php.net
Reported By: sixd@php.net
Status: Closed
Bug Type: OCI8 related
Operating System: Linux
PHP Version: 5.3.0alpha2
Assigned To: sixd
New Comment:
Patched files are:
http://cvs.php.net/viewvc.cgi/pecl/oci8/config.m4?r1=1.55.2.3.2.11.2.5&r2=1.55.2.3.2.11.2.6
http://cvs.php.net/viewvc.cgi/pecl/oci8/oci8.c?r1=1.269.2.16.2.38.2.27&r2=1.269.2.16.2.38.2.28
Previous Comments:
------------------------------------------------------------------------
[2009-03-09 17:53:13] sixd@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2008-11-21 12:44:34] jani@php.net
Sixd, when you assign something to yourself, change the status too.
------------------------------------------------------------------------
[2008-11-19 20:09:08] sixd@php.net
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 this bug report at http://bugs.php.net/?id=46623&edit=1