fix potential problem in php_oci_bind_post_exec() when OCIDateToText() fails

This commit is contained in:
Antony Dovgal 2005-12-01 13:46:05 +00:00
parent a139e19fe3
commit 4f906aa23f

View file

@ -697,7 +697,9 @@ int php_oci_bind_post_exec(void *data TSRMLS_DC)
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 @@ int php_oci_bind_post_exec(void *data TSRMLS_DC)
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;