@@ -38,7 +38,42 @@ PHP 8.4 INTERNALS UPGRADE NOTES
38
38
out zend_string*. This won't cut off the string if it embeds a NUL byte.
39
39
40
40
* zend_mm_set_custom_debug_handlers() has been removed from ZendMM, use
41
- zend_mm_set_custom_handlers() instead
41
+ zend_mm_set_custom_handlers() instead which now supports DEBUG builds
42
+
43
+ * zend_mm_set_custom_handlers() has changed its signature from
44
+ void()(zend_mm_heap *heap,
45
+ void* (*_malloc)(size_t),
46
+ void (*_free)(void*),
47
+ void* (*_realloc)(void*, size_t))
48
+ to
49
+ void()(zend_mm_heap *heap,
50
+ void* (*_malloc)(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC),
51
+ void (*_free)(void* ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC),
52
+ void* (*_realloc)(void*, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC))
53
+
54
+ * zend_mm_get_custom_handlers() has changed its signature from
55
+ void()(zend_mm_heap *heap,
56
+ void* (**_malloc)(size_t),
57
+ void (**_free)(void*),
58
+ void* (**_realloc)(void*, size_t))
59
+ to
60
+ void()(zend_mm_heap *heap,
61
+ void* (**_malloc)(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC),
62
+ void (**_free)(void* ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC),
63
+ void* (**_realloc)(void*, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC))
64
+
65
+ * __zend_malloc() has changed their signature from
66
+ void(*)(size_t) to
67
+ void(*)(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
68
+
69
+ * __zend_calloc() has changed their signature from
70
+ void(*)(size_t, size_t) to
71
+ void(*)(size_t, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
72
+
73
+ * __zend_realloc() has changed their signature from
74
+ void(*)(void *, size_t) to
75
+ void(*)(void *, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
76
+
42
77
43
78
========================
44
79
2. Build system changes
0 commit comments