|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-16 15:47 UTC] toolbag at gmail dot com
[2006-06-16 18:44 UTC] toolbag at gmail dot com
[2006-06-16 18:45 UTC] toolbag at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ Instantiating a PDO object from a PHP script that is called from the CLI results in a seg fault. Running the same script from a browser is perfectly ok. I am using PDO + PDO_OCI in a large web app with no problems, but when I coded up some PDO/OCI code to run within a cronjob, this happens. Reproduce code: --------------- <?php try { $dbh = new PDO("oci:dbname=<host>", "<user>", "<pass>"); }catch(PDOException $e) { die("Error: " . $e->getMessage() ); } $dbh = null; echo "I am never reached"; ?> Expected result: ---------------- From the browser I see: "I am never reached". From the CLI: immediate seg fault.