PHP Oracle functions causing seg fault when using CLOBs

I'm trying to use oci_new_descriptor, OCI-Lob->save(), and oci_commit to insert a string into a CLOB table. Using other OCI-Lob seems to do no better. PHP is exiting unexpectedly without error messages--it is seg faulting.

Related tags: Oracle PHP

Credit: Trial and error

Turns out that something else was causing the seg fault. The latest PHP drivers for Oracle (10g) automatically read and write CLOBs. Using oci_new_descriptor and the OCI-Lob objects is completely unnecessary.

Rating: 1

Propose a different solution...