Deleted: php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_error.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_error.phpt 2010-03-22 21:49:59 UTC (rev 296650) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_error.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -1,70 +0,0 @@ ---TEST-- -Test some oci_bind_by_name error conditions ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Insert value -bool(true) -Test 1 - Assign a resource to the bind variable and execute - -Warning: oci_execute(): Invalid variable used for bind in %s on line %d -bool(false) -Test 2 - Re-bind a resource - -Warning: oci_bind_by_name(): Invalid variable used for bind in %s on line %d - -Warning: oci_execute(): Invalid variable used for bind in %s on line %d -bool(false) -resource(%d) of type (oci8 connection) -Test 3 - Resource mismatch !! - -Warning: oci_bind_by_name(): Invalid variable used for bind in %s on line %d - -Warning: oci_execute(): ORA-01008: %s on line %d -bool(false) -Done Copied: php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_rowid.phpt (from rev 296627, php/php-src/branches/PHP_5_3/ext/oci8/tests/rowid_bind.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_rowid.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_rowid.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -0,0 +1,86 @@ +--TEST-- +Test ROWID bind +--SKIPIF-- + +--FILE-- + +--EXPECT-- +Initial Data +array(1) { + ["ADDRESS"]=> + string(16) "original text #1" +} +array(1) { + ["ADDRESS"]=> + string(16) "original text #2" +} +Verify Change +array(1) { + ["ADDRESS"]=> + string(13) "Some new text" +} +array(1) { + ["ADDRESS"]=> + string(16) "original text #2" +} +Done Copied: php/php-src/branches/PHP_5_3/ext/oci8/tests/error_bind.phpt (from rev 296250, php/php-src/branches/PHP_5_3/ext/oci8/tests/bind_error.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/error_bind.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/error_bind.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -0,0 +1,70 @@ +--TEST-- +Test some oci_bind_by_name error conditions +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Insert value +bool(true) +Test 1 - Assign a resource to the bind variable and execute + +Warning: oci_execute(): Invalid variable used for bind in %s on line %d +bool(false) +Test 2 - Re-bind a resource + +Warning: oci_bind_by_name(): Invalid variable used for bind in %s on line %d + +Warning: oci_execute(): Invalid variable used for bind in %s on line %d +bool(false) +resource(%d) of type (oci8 connection) +Test 3 - Resource mismatch !! + +Warning: oci_bind_by_name(): Invalid variable used for bind in %s on line %d + +Warning: oci_execute(): ORA-01008: %s on line %d +bool(false) +Done Copied: php/php-src/branches/PHP_5_3/ext/oci8/tests/error_parse.phpt (from rev 296250, php/php-src/branches/PHP_5_3/ext/oci8/tests/parse_error.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/error_parse.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/error_parse.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -0,0 +1,142 @@ +--TEST-- +Test error handling when persistent connection is passed to oci_error() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Normal connection: Parse error +array(4) { + ["code"]=> + int(1756) + ["message"]=> + string(48) "ORA-01756: quoted string not properly terminated" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} +New connection: Parse error +array(4) { + ["code"]=> + int(1756) + ["message"]=> + string(48) "ORA-01756: quoted string not properly terminated" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} +Persistent connection: Parse error +array(4) { + ["code"]=> + int(1756) + ["message"]=> + string(48) "ORA-01756: quoted string not properly terminated" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} +No connection: error: bool(false) +Normal connection (take #2): Parse error: ORA-01756: quoted string not properly terminated +New connection (take #2): Parse error: ORA-01756: quoted string not properly terminated +Persistent connection (take #2): Parse error: ORA-01756: quoted string not properly terminated +Normal connection: New Collection error: OCI-22303: type ""."ABC" not found +New connection (take #3): Parse error: ORA-01756: quoted string not properly terminated +Persistent connection (take #3): Parse error: ORA-01756: quoted string not properly terminated +Done Deleted: php/php-src/branches/PHP_5_3/ext/oci8/tests/parse_error.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/parse_error.phpt 2010-03-22 21:49:59 UTC (rev 296650) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/parse_error.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -1,142 +0,0 @@ ---TEST-- -Test error handling when persistent connection is passed to oci_error() ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Normal connection: Parse error -array(4) { - ["code"]=> - int(1756) - ["message"]=> - string(48) "ORA-01756: quoted string not properly terminated" - ["offset"]=> - int(0) - ["sqltext"]=> - string(0) "" -} -New connection: Parse error -array(4) { - ["code"]=> - int(1756) - ["message"]=> - string(48) "ORA-01756: quoted string not properly terminated" - ["offset"]=> - int(0) - ["sqltext"]=> - string(0) "" -} -Persistent connection: Parse error -array(4) { - ["code"]=> - int(1756) - ["message"]=> - string(48) "ORA-01756: quoted string not properly terminated" - ["offset"]=> - int(0) - ["sqltext"]=> - string(0) "" -} -No connection: error: bool(false) -Normal connection (take #2): Parse error: ORA-01756: quoted string not properly terminated -New connection (take #2): Parse error: ORA-01756: quoted string not properly terminated -Persistent connection (take #2): Parse error: ORA-01756: quoted string not properly terminated -Normal connection: New Collection error: OCI-22303: type ""."ABC" not found -New connection (take #3): Parse error: ORA-01756: quoted string not properly terminated -Persistent connection (take #3): Parse error: ORA-01756: quoted string not properly terminated -Done Deleted: php/php-src/branches/PHP_5_3/ext/oci8/tests/rowid_bind.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/oci8/tests/rowid_bind.phpt 2010-03-22 21:49:59 UTC (rev 296650) +++ php/php-src/branches/PHP_5_3/ext/oci8/tests/rowid_bind.phpt 2010-03-22 22:37:20 UTC (rev 296651) @@ -1,86 +0,0 @@ ---TEST-- -Test ROWID bind ---SKIPIF-- - ---FILE-- - ---EXPECT-- -Initial Data -array(1) { - ["ADDRESS"]=> - string(16) "original text #1" -} -array(1) { - ["ADDRESS"]=> - string(16) "original text #2" -} -Verify Change -array(1) { - ["ADDRESS"]=> - string(13) "Some new text" -} -array(1) { - ["ADDRESS"]=> - string(16) "original text #2" -} -Done