sixd Thu Jan 31 00:26:44 2008 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/oci8/tests bug42841.phpt
Modified files:
/php-src/ext/oci8 oci8_statement.c
Log:
Fixed bug #42841 (REF CURSOR and oci_new_cursor PHP crash)
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.7.2.14.2.30&r2=1.7.2.14.2.31&diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.30
php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.31
--- php-src/ext/oci8/oci8_statement.c:1.7.2.14.2.30 Mon Dec 31 07:20:09 2007
+++ php-src/ext/oci8/oci8_statement.c Thu Jan 31 00:26:43 2008
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_statement.c,v 1.7.2.14.2.30 2007/12/31 07:20:09 sebastian Exp $ */
+/* $Id: oci8_statement.c,v 1.7.2.14.2.31 2008/01/31 00:26:43 sixd Exp $ */
#ifdef HAVE_CONFIG_H
@@ -1174,6 +1174,14 @@
}
if (Z_TYPE_P(val) == IS_RESOURCE) {
+ /* Processing for ref-cursor out binds */
+ if (phpbind->statement != NULL) {
+ *bufpp = phpbind->statement;
+ *alenpp = &phpbind->dummy_len;
+ *piecep = OCI_ONE_PIECE;
+ *rcodepp = &phpbind->retcode;
+ *indpp = &phpbind->indicator;
+ }
retval = OCI_CONTINUE;
} else if (Z_TYPE_P(val) == IS_OBJECT) {
if (!phpbind->descriptor) {
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/bug42841.phpt?view=markup&rev=1.1
Index: php-src/ext/oci8/tests/bug42841.phpt
+++ php-src/ext/oci8/tests/bug42841.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php