mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
Fix for missing errmsg in test 005
This commit is contained in:
@@ -2468,8 +2468,6 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
|
||||
ibase_result *ib_result;
|
||||
XSQLVAR *var;
|
||||
|
||||
RESET_ERRMSG;
|
||||
|
||||
switch (ZEND_NUM_ARGS()) {
|
||||
case 1:
|
||||
if (ZEND_NUM_ARGS() == 1 && zend_get_parameters_ex(1, &result_arg) == FAILURE) {
|
||||
@@ -2490,14 +2488,11 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
|
||||
|
||||
ZEND_FETCH_RESOURCE(ib_result, ibase_result *, result_arg, -1, "InterBase result", le_result);
|
||||
|
||||
if (ib_result->out_sqlda == NULL) {
|
||||
_php_ibase_module_error("Trying to fetch results from a non-select query");
|
||||
if (ib_result->out_sqlda == NULL || !ib_result->has_more_rows) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (!ib_result->has_more_rows) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
} /* might have been because of an error */
|
||||
|
||||
RESET_ERRMSG;
|
||||
|
||||
array_init(return_value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user