Skip to content

Commit

Permalink
OCI8: Fixed bug #59985 (show normal warning text for OCI_NO_DATA). Sy…
Browse files Browse the repository at this point in the history
…nc NEWS.
  • Loading branch information
cjbj committed Nov 10, 2011
1 parent 27697a6 commit 4827f5c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
7 changes: 6 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ PHP NEWS
. Fixed bug #60227 (header() cannot detect the multi-line header with
CR(0x0D)). (rui)

- Oracle Database extension (OCI8):
. Fixed bug #59985 (show normal warning text for OCI_NO_DATA)
(Chris Jones)

11 Nov 2011, PHP 5.4.0 RC1
- General improvements:
. Changed silent conversion of array to string to produce a notice. (Patrick)
Expand All @@ -33,8 +37,9 @@ PHP NEWS
is_a and is_subclass_of). (alan_k)

- Oracle Database extension (OCI8):
. Increased maxium Oracle error message buffer length for new 11.2.0.3 size
. Increased maximum Oracle error message buffer length for new 11.2.0.3 size
(Chris Jones)
. Improve internal initalization failure error messages (Chris Jones)

- SPL extension
. Reverted changes that required constructor overrides to invoke the parent
Expand Down
2 changes: 1 addition & 1 deletion ext/oci8/oci8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1632,9 +1632,9 @@ sb4 php_oci_error(OCIError *err_p, sword status TSRMLS_DC)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCI_NEED_DATA");
break;
case OCI_NO_DATA:
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCI_NO_DATA");
errcode = php_oci_fetch_errmsg(err_p, &errbuf TSRMLS_CC);
if (errbuf) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", errbuf);
efree(errbuf);
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCI_NO_DATA: failed to fetch error message");
Expand Down
3 changes: 2 additions & 1 deletion ext/oci8/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>
Increased maximum possible Oracle DB error message length
Fixed bug #59985 (show normal warning text for OCI_NO_DATA)
Increased maximum Oracle error message buffer length for new Oracle 11.2.0.3 size
Improve internal initalization failure error messages
</notes>
<contents>
Expand Down
4 changes: 3 additions & 1 deletion ext/oci8/tests/array_bind_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ var_dump($array);
echo "Done\n";
?>
--EXPECTF--
Warning: oci_execute(): OCI_NO_DATA in %s on line %d
Warning: oci_execute(): ORA-01403: %s
ORA-06512: at "SYSTEM.ARRAYBINDPKG1", line %d
ORA-06512: at line %d in %sarray_bind_003.php on line %d
array(4) {
[0]=>
string(9) "06-DEC-05"
Expand Down
4 changes: 3 additions & 1 deletion ext/oci8/tests/array_bind_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ var_dump($array);
echo "Done\n";
?>
--EXPECTF--
Warning: oci_execute(): OCI_NO_DATA in %s on line %d
Warning: oci_execute(): ORA-01403: %s
ORA-06512: at "SYSTEM.ARRAYBINDPKG1", line %d
ORA-06512: at line %d in %sarray_bind_004.php on line %d
array(0) {
}
Done
3 changes: 2 additions & 1 deletion ext/oci8/tests/pecl_bug16842.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ oci_close($c);
Test 1
Raises NO_DATA_FOUND

Warning: oci_execute(): OCI_NO_DATA in %s on line 11
Warning: oci_execute(): ORA-01403: %s
ORA-06512: at line %d in %specl_bug16842.php on line %d
bool(false)
array(4) {
["code"]=>
Expand Down

0 comments on commit 4827f5c

Please sign in to comment.