Monthly Archives: December 2012

Install Oracle Client on Ubuntu (PHP)

Download Instant Client on:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
- oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
- oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm

Install alien to convert to rmp to deb package:

sudo apt-get install alien

Convert Packages:

sudo alien oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
sudo alien oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm

Install client:

sudo dpkg -i oracle*.deb

Install Lib for PHP:

sudo pecl install oci8
sudo apt-get install libaio1

Refs:
https://help.ubuntu.com/community/Oracle%20Instant%20Client
http://vinteum.com/instalando-oci8-e-oracle-instant-client-no-ubuntu/
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

Add ” extension=oci8.so” to your php.ini

show full var_dump

Just update xdebug.ini file

xdebug.var_display_max_depth = -1
xdebug.var_display_max_children = -1
xdebug.var_display_max_data = -1

Refs:
http://stackoverflow.com/questions/9998490/how-to-get-xdebug-var-dump-to-show-full-object-array
http://xdebug.org/docs/all_settings#var_display_max_children

Catch SoapClient Exception

If you can’t get SoapClient exception if WSDL cant be loaded (PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn’t load from xxx)

Try this (before instantiating SoapClient):

xdebug_disable();

Found this solution up here:
https://bugs.php.net/bug.php?id=47584

Input is not proper UTF-8, indicate encoding (DOMDocument::loadXML)

Probably your XML string isn’t in UTF-8. Try this:

utf8_encode($xml);
Page 1 of 11