1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Keep initialized object_handlers structures in read-only memory.

This commit is contained in:
Dmitry Stogov
2018-03-14 14:01:45 +03:00
parent 12baec3dfa
commit 1af60a2a71
15 changed files with 48 additions and 58 deletions

View File

@@ -67,7 +67,7 @@ static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj)
#define ZEND_OBJECTS_STORE_HANDLERS 0, zend_object_std_dtor, zend_objects_destroy_object, zend_objects_clone_obj
ZEND_API zend_object_handlers * ZEND_FASTCALL zend_get_std_object_handlers(void);
ZEND_API const zend_object_handlers * ZEND_FASTCALL zend_get_std_object_handlers(void);
END_EXTERN_C()
static zend_always_inline void zend_object_release(zend_object *obj)