Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

php, OCI and CLI Segmentation Fault

504804Apr 7 2006 — edited Jun 30 2006
Hello,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2006
Added on Apr 7 2006
3 comments
2,213 views