|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-04 19:49 UTC] christopher dot jones at oracle dot com
[2009-11-04 20:52 UTC] glenn dot schmidt at deakin dot edu dot au
[2010-09-08 18:57 UTC] russ at iris dot washington dot edu
[2011-11-07 11:13 UTC] areddan at silverarm dot com
[2011-11-07 19:21 UTC] sixd@php.net
[2011-11-07 19:21 UTC] sixd@php.net
-Package: oci8
+Package: *General Issues
[2011-11-07 20:10 UTC] sixd@php.net
[2011-11-07 20:19 UTC] sixd@php.net
[2011-11-07 20:19 UTC] sixd@php.net
-Status: Assigned
+Status: Closed
[2011-11-08 09:18 UTC] areddan at silverarm dot com
[2011-11-08 09:19 UTC] areddan at silverarm dot com
[2011-11-08 19:19 UTC] sixd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ I don't think that the function php_oci_create_env handles failure of OCIEnvNlsCreate as well as it should. It will always just output the "There is something wrong with your system" message, as a PHP warning. It doesn't attempt to get an actual error message from OCIErrorGet(). It also doesn't store the error in such a way that it is accessible to the PHP oci_error() function. Reproduce code: --------------- $conn = oci_connect('scott', 'tiger', 'mydb'); if (!$conn) { $e = oci_error(); if ($e) { echo 'The error that occurred was: "'.$e['message'].'"'; } } Expected result: ---------------- (if OCIEnvNlsCreate was to fail) **Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries The error that occurred was: "<message from OCIErrorGet, or at least the same message as in the above warning>" Actual result: -------------- **Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries **Warning: oci_error(): OCIError: unable to find error handle