Test: /ext/oci8/tests/bug42134.phpt - Version 5.6.0beta2        

Bug #42134 oci_error() returns false after oci_new_collection() fails
Submitted: 2007-07-28 21:40:16 Modified: 2007-07-31 19:21:18
From: sixd Assigned:
Status: Closed Package: OCI8 related
PHP Version: 5CVS-2007-07-28 (CVS) OS: n/a

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ Warning: oci_connect(): ORA-12541: TNS:no listener in %s/bug42134.php on line 8
002+
003+ Warning: oci_new_collection() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 14
001- Warning: oci_new_collection(): OCI-22303: type ""."ABC" not found in %s on line %d
003- array(4) {
004- ["code"]=>
005- int(22303)
006- ["message"]=>
007- string(34) "OCI-22303: type ""."ABC" not found"
008- ["offset"]=>
009- int(0)
010- ["sqltext"]=>
011- string(0) ""
012- }
005+
006+ Warning: oci_error() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 17
007+ NULL
008+
009+ Warning: oci_new_connect(): ORA-12541: TNS:no listener in %s/bug42134.php on line 24
010+
011+ Warning: oci_new_collection() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 30
012+ New connection: New Collection error
013+
014+ Warning: oci_error() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 33
015+ NULL
016+
017+ Warning: oci_pconnect(): ORA-12541: TNS:no listener in %s/bug42134.php on line 40
018+
019+ Warning: oci_new_collection() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 46
020+ Persistent connection: New Collection error
014- Warning: oci_new_collection(): OCI-22303: type ""."DEF" not found in %s on line %d
015- New connection: New Collection error
016- array(4) {
022+ Warning: oci_error() expects parameter 1 to be resource, boolean given in %s/bug42134.php on line 49
023+ NULL
024+ Done
017- ["code"]=>
018- int(22303)
019- ["message"]=>
020- string(34) "OCI-22303: type ""."DEF" not found"
021- ["offset"]=>
022- int(0)
023- ["sqltext"]=>
024- string(0) ""
025- }
026-
027- Warning: oci_new_collection(): OCI-22303: type ""."GHI" not found in %s on line %d
028- Persistent connection: New Collection error
029- array(4) {
030- ["code"]=>
031- int(22303)
032- ["message"]=>
033- string(34) "OCI-22303: type ""."GHI" not found"
034- ["offset"]=>
035- int(0)
036- ["sqltext"]=>
037- string(0) ""
038- }
039- Done