note 63303 modified in ref.oci8 by sixd

From: Date: Thu, 10 Apr 2008 22:32:04 +0000
Subject: note 63303 modified in ref.oci8 by sixd
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138157@lists.php.net to get a copy of this message
Apache 1.3, Oracle 9.2, PHP 5.1.2 on Windows XP Pro. Very weird behavior with php_oci8.dll coming with the full windows build (I downloaded yesterday...). Couldn't get any of the examples to work, it appears Apache crashes on oci_parse, but not so if I program "C style": while this doesn't work: <?php $db_conn = oci_connect("scott","tiger"); $parsed = oci_parse($db_conn,"select * from emp"); <-- Apache crashes on execution of this statement // etc... ?> this does: <?php function main($connection) { $parsed = oci_parse($connection,"select * from emp"); $r = oci_execute($parsed, OCI_DEFAULT); // etc... } $db_conn = oci_connect("scott","tiger"); main($db_conn); oci_close($db_conn); ?> Took me the whole day, then I found Francesco Marsan's note (THANKS!) dated February 9th, 2006... and indeed, downloading from http://pecl4win.php.net/ext.php/php_oci8.dll solved the problem instantly. --was-- Apache 1.3, Oracle 9.2, PHP 5.1.2 on Windows XP Pro. Very weird behavior with php_oci8.dll coming with the full windows build (I downloaded yesterday...). Couldn't get any of the examples to work, it appears Apache crashes on oci_parse, but not so if I program "C style": while this doesn't work: <?php $db_conn = oci_connect("scott","tiger"); $parsed = oci_parse($db_conn,"select * from emp"); <-- Apache crashes on execution of this statement // etc... ?> this does: <?php function main($connection) { $parsed = oci_parse($connection,"select * from emp"); $r = oci_execute($parsed, OCI_DEFAULT); // etc... } $db_conn = oci_connect("scott","tiger"); main($db_conn); oci_close($db_conn); ?> Took me the whole day, then I found Francesco Marsan's note (THANKS!) dated February 9th, 2006... and indeed, downloading from http://pecl4win.php.net/ext.php/php_oci8.dll solved the problem instantly. http://php.net/manual/en/ref.oci8.php

« previous php.notes (#138157) next »