note 63303 added to ref.oci8
| From: | jdstil at nononsense dot bluewin dot ch | Date: | Sat, 18 Mar 2006 23:02:44 +0000 |
| Subject: | note 63303 added to ref.oci8 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106055@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.
----
Server IP: 194.153.94.11
Probable Submitter: 83.79.15.185
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.oci8.php
Edit -- http://master.php.net/note/edit/63303
Del: integrated -- http://master.php.net/note/delete/63303/integrated
Del: useless -- http://master.php.net/note/delete/63303/useless
Del: bad code -- http://master.php.net/note/delete/63303/bad+code
Del: spam -- http://master.php.net/note/delete/63303/spam
Del: non-english -- http://master.php.net/note/delete/63303/non-english
Del: in docs -- http://master.php.net/note/delete/63303/in+docs
Del: other reasons-- http://master.php.net/note/delete/63303
Reject -- http://master.php.net/note/reject/63303
Search -- http://master.php.net/manage/user-notes.php