mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
fix potential problem in php_oci_bind_post_exec() when OCIDateToText() fails
This commit is contained in:
parent
a139e19fe3
commit
4f906aa23f
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue