|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-31 07:20 UTC] tony2001@php.net
[2007-07-31 19:21 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 17:00:02 2025 UTC |
Description: ------------ Collection creation errors are displayed if display_errors and error_reporting are set appropriately, but a subsequent oci_error() returns false, so error trapping won't display the problem. After OCITypeByName() fails in php_oci_collection_create(), php_oci_collection_close() is called. The line zend_list_delete(collection->connection->rsrc_id) causes the subsequent oci_error() function line connection = (php_oci_connection *) zend_fetch_resource(&arg TSRMLS_CC, -1, NULL, NULL, 1, le_connection); to return a null pointer. Reproduce code: --------------- <?php $c = oci_connect('hr', 'hrpwd', '//localhost/XE'); $collection = oci_new_collection($c, "BOGUS"); if (!$collection) { $m = oci_error($c); echo "Error: ", $m["message"]; } ?> Expected result: ---------------- Error: OCI-22303: type ""."BOGUS" not found Actual result: -------------- Error: