cvs: php-src /ext/oci8 oci8_statement.c

From: Date: Thu, 01 Dec 2005 13:46:06 +0000
Subject: cvs: php-src /ext/oci8 oci8_statement.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35560@lists.php.net to get a copy of this message
tony2001 Thu Dec 1 08:46:06 2005 EDT Modified files: /php-src/ext/oci8 oci8_statement.c Log: fix potential problem in php_oci_bind_post_exec() when OCIDateToText() fails http://cvs.php.net/diff.php/php-src/ext/oci8/oci8_statement.c?r1=1.7&r2=1.8&ty=u Index: php-src/ext/oci8/oci8_statement.c diff -u php-src/ext/oci8/oci8_statement.c:1.7 php-src/ext/oci8/oci8_statement.c:1.8 --- php-src/ext/oci8/oci8_statement.c:1.7 Tue Nov 22 11:30:36 2005 +++ php-src/ext/oci8/oci8_statement.c Thu Dec 1 08:46:05 2005 @@ -25,7 +25,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: oci8_statement.c,v 1.7 2005/11/22 16:30:36 tony2001 Exp $ */ +/* $Id: oci8_statement.c,v 1.8 2005/12/01 13:46:05 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H @@ -697,7 +697,9 @@ php_oci_error(connection->err, connection->errcode TSRMLS_CC); ZVAL_NULL(*entry); } - ZVAL_STRINGL(*entry, buff, buff_len, 1); + else { + ZVAL_STRINGL(*entry, buff, buff_len, 1); + } zend_hash_move_forward(hash); } else { @@ -706,7 +708,9 @@ php_oci_error(connection->err, connection->errcode TSRMLS_CC); add_next_index_null(bind->zval); } - add_next_index_stringl(bind->zval, buff, buff_len, 1); + else { + add_next_index_stringl(bind->zval, buff, buff_len, 1); + } } } break;

« previous php.cvs (#35560) next »