mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fix Bug #55550 mysql.trace_mode miscounts result sets,
fixes ext/mysql/tests/mysql_deprecated_api.phpt
This commit is contained in:
parent
3d74cffc20
commit
1cb8c01f0d
2 changed files with 7 additions and 0 deletions
3
NEWS
3
NEWS
|
@ -12,6 +12,9 @@ PHP NEWS
|
|||
. Fixed bug #48476 (cloning extended DateTime class without calling
|
||||
parent::__constr crashed PHP). (Hannes)
|
||||
|
||||
- MySQL:
|
||||
. Fixed bug #55550 (mysql.trace_mode miscounts result sets). (Johannes)
|
||||
|
||||
- Phar:
|
||||
. Fixed bug#52013 (Unable to decompress files in a compressed phar). (Hannes)
|
||||
. Fixed bug#53872 (internal corruption of phar). (Hannes)
|
||||
|
|
|
@ -1588,6 +1588,7 @@ PHP_FUNCTION(mysql_list_dbs)
|
|||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
MySG(result_allocated)++;
|
||||
ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result);
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -1625,6 +1626,7 @@ PHP_FUNCTION(mysql_list_tables)
|
|||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
MySG(result_allocated)++;
|
||||
ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result);
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -1662,6 +1664,7 @@ PHP_FUNCTION(mysql_list_fields)
|
|||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
MySG(result_allocated)++;
|
||||
ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result);
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -1694,6 +1697,7 @@ PHP_FUNCTION(mysql_list_processes)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
MySG(result_allocated)++;
|
||||
ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue