summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-07 16:00:01 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-01-07 16:00:29 +0100
commitba5cb2eb325ffb933e4120c173c44e2e674e1506 (patch)
tree3d966451bb23aafd36d5f7b554bf78ed52600754 /ext/pgsql
parent711e1fb33b06c9da7baed028ea912c189f33f442 (diff)
downloadphp-git-ba5cb2eb325ffb933e4120c173c44e2e674e1506.tar.gz
Remove unnecessary uses of object_and_properties_init
Use object_init_ex instead if the properties are NULL.
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 66b4a15290..8d448bfe61 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -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 {