php, OCI and CLI Segmentation Fault
504804Apr 7 2006 — edited Jun 30 2006Hello,
I working with php 5.1.2 on an Red Hat Box.
The following Script runs without Problems in a browser. But on the Commandline I get a Segmantation Fault.
<?php
$db = oci_connect( $user, $passwd, $SID);
$sql = "select name from user_account where id = 260";
$statement = oci_parse( $db, $sql );
$success = oci_execute($statement);
$num = oci_fetch_all( $statement, $dbData, 0, -1, OCI_FETCHSTATEMENT_BY_ROW
);
print_r( $dbData );
?>
This gives me the following Output:
Array
(
[0] => Array
(
[NAME] => sturm
)
)
Segmentation Falut (core dumped)
Using this Link ( http://bugs.php.net/bugs-generating-backtrace.php ) I generated a Backtrace:
#0 0x016eaaa0 in ?? ()
#1 0x005dc467 in exit () from /lib/tls/libc.so.6
#2 0x0822144c in main ()
I googled a lot, but I didn't find an answer. Perhaps here someone can help me.
Thanks an Greetings,
Stefan Sturm