mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove unnecessary uses of object_and_properties_init
Use object_init_ex instead if the properties are NULL.
This commit is contained in:
parent
711e1fb33b
commit
ba5cb2eb32
3 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue