summaryrefslogtreecommitdiff
path: root/ext/intl/timezone/timezone_class.cpp
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-07-02 17:03:50 +0300
committerDmitry Stogov <dmitry@zend.com>2018-07-02 17:03:50 +0300
commit091d77f28a78a700ce0e72457606e01ed696de83 (patch)
tree3167f9e6df3b4f4935c3cc0b5d65d421d472f2a3 /ext/intl/timezone/timezone_class.cpp
parent43aca3118ab011b878ec577904eafc18f86f69ae (diff)
downloadphp-git-091d77f28a78a700ce0e72457606e01ed696de83.tar.gz
Avoid magic method hash lookups
Diffstat (limited to 'ext/intl/timezone/timezone_class.cpp')
-rw-r--r--ext/intl/timezone/timezone_class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/timezone/timezone_class.cpp b/ext/intl/timezone/timezone_class.cpp
index 2bf8c990ab..929797a96e 100644
--- a/ext/intl/timezone/timezone_class.cpp
+++ b/ext/intl/timezone/timezone_class.cpp
@@ -98,7 +98,7 @@ U_CFUNC zval *timezone_convert_to_datetimezone(const TimeZone *timeZone,
goto error;
}
ZVAL_STR(&arg, u8str);
- zend_call_method_with_1_params(ret, NULL, NULL, "__construct", NULL, &arg);
+ zend_call_method_with_1_params(ret, NULL, &Z_OBJCE_P(ret)->constructor, "__construct", NULL, &arg);
if (EG(exception)) {
spprintf(&message, 0,
"%s: DateTimeZone constructor threw exception", func);