summaryrefslogtreecommitdiff
path: root/ext/mysqli
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/mysqli
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/mysqli')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index f74df1facb..f3d5e82309 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -1267,7 +1267,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
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 {