File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ static zend_always_inline void zend_object_release(zend_object *obj)
8080 }
8181}
8282
83- static zend_always_inline size_t zend_object_properties_size (zend_class_entry * ce )
83+ static zend_always_inline size_t zend_object_properties_size (const zend_class_entry * ce )
8484{
8585 return sizeof (zval ) *
8686 (ce -> default_properties_count -
@@ -90,7 +90,7 @@ static zend_always_inline size_t zend_object_properties_size(zend_class_entry *c
9090/* Allocates object type and zeros it, but not the standard zend_object and properties.
9191 * Standard object MUST be initialized using zend_object_std_init().
9292 * Properties MUST be initialized using object_properties_init(). */
93- static zend_always_inline void * zend_object_alloc (size_t obj_size , zend_class_entry * ce ) {
93+ static zend_always_inline void * zend_object_alloc (size_t obj_size , const zend_class_entry * ce ) {
9494 void * obj = emalloc (obj_size + zend_object_properties_size (ce ));
9595 memset (obj , 0 , obj_size - sizeof (zend_object ));
9696 return obj ;
You can’t perform that action at this time.
0 commit comments