summaryrefslogtreecommitdiff
path: root/ext/intl/calendar
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-07-21 14:25:15 +0800
committerXinchen Hui <laruence@gmail.com>2016-07-21 14:25:15 +0800
commit4a643e5e1362951362b5eb4a30af0d5068ca6686 (patch)
treed92e38442c31c9b057b37d5a42b74a2a371735a0 /ext/intl/calendar
parent7e1843fc0408a9ea5abc06c0c6b6da7d55c69272 (diff)
downloadphp-git-4a643e5e1362951362b5eb4a30af0d5068ca6686.tar.gz
Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
Diffstat (limited to 'ext/intl/calendar')
-rw-r--r--ext/intl/calendar/calendar_class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/calendar/calendar_class.cpp b/ext/intl/calendar/calendar_class.cpp
index 72cd7e1dd0..4414a7a092 100644
--- a/ext/intl/calendar/calendar_class.cpp
+++ b/ext/intl/calendar/calendar_class.cpp
@@ -261,7 +261,7 @@ static zend_object *Calendar_object_create(zend_class_entry *ce)
intern = (Calendar_object*)ecalloc(1, sizeof(Calendar_object) + sizeof(zval) * (ce->default_properties_count - 1));
zend_object_std_init(&intern->zo, ce);
- object_properties_init((zend_object*) intern, ce);
+ object_properties_init(&intern->zo, ce);
calendar_object_init(intern);