Avoid HashTable allocations for empty arrays (using zend_empty_array).

This commit is contained in:
Dmitry Stogov 2017-10-24 17:27:31 +03:00
parent 2ca08a3d66
commit 9cf87aa196
22 changed files with 282 additions and 209 deletions

View file

@ -676,7 +676,7 @@ PHP_METHOD(sqlite3, querySingle)
if (!entire_row) {
RETVAL_NULL();
} else {
array_init(return_value);
ZVAL_EMPTY_ARRAY(return_value);
}
break;
}