Remove unnecessary uses of object_and_properties_init

Use object_init_ex instead if the properties are NULL.
This commit is contained in:
Nikita Popov 2019-01-07 16:00:01 +01:00
parent 711e1fb33b
commit ba5cb2eb32
3 changed files with 3 additions and 3 deletions

View file

@ -2797,7 +2797,7 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
zval retval;
ZVAL_COPY_VALUE(&dataset, return_value);
object_and_properties_init(return_value, ce, NULL);
object_init_ex(return_value, ce);
if (!ce->default_properties_count && !ce->__set) {
Z_OBJ_P(return_value)->properties = Z_ARR(dataset);
} else {