blendingmode). (cmb)
- Intl:
+ . Fixed bug #72639 (Segfault when instantiating class that extends
+ IntlCalendar and adds a property). (Laruence)
. Partially fixed #72506 (idn_to_ascii for UTS #46 incorrect for long domain
names). (cmb)
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);
--- /dev/null
+--TEST--
+Bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
+--SKIPIF--
+<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+--FILE--
+<?php
+class A extends IntlCalendar {
+ public function __construct() {}
+ private $a;
+}
+var_dump(new A());
+?>
+--EXPECTF--
+object(A)#%d (1) {
+ ["valid"]=>
+ bool(false)
+}