mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid HashTable allocations for empty arrays (using zend_empty_array).
This commit is contained in:
parent
2ca08a3d66
commit
9cf87aa196
22 changed files with 282 additions and 209 deletions
|
@ -676,7 +676,7 @@ PHP_METHOD(sqlite3, querySingle)
|
|||
if (!entire_row) {
|
||||
RETVAL_NULL();
|
||||
} else {
|
||||
array_init(return_value);
|
||||
ZVAL_EMPTY_ARRAY(return_value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue