File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ ZEND_METHOD(Closure, call)
183
183
if (fci_cache .function_handler -> common .fn_flags & ZEND_ACC_GENERATOR ) {
184
184
/* copied upon generator creation */
185
185
GC_DELREF (& closure -> std );
186
- } else if (fci_cache .function_handler -> common .fn_flags & ZEND_ACC_HEAP_RT_CACHE ) {
186
+ } else if (ZEND_USER_CODE (my_function .type )
187
+ && fci_cache .function_handler -> common .fn_flags & ZEND_ACC_HEAP_RT_CACHE ) {
187
188
efree (ZEND_MAP_PTR (my_function .op_array .run_time_cache ));
188
189
}
189
190
}
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ typedef struct _zend_oparray_context {
278
278
/* Class has unresolved variance obligations. | | | */
279
279
#define ZEND_ACC_UNRESOLVED_VARIANCE (1 << 21) /* X | | | */
280
280
/* | | | */
281
- /* Function Flags | | | */
281
+ /* Function Flags (unused: 23, 26) | | | */
282
282
/* ============== | | | */
283
283
/* | | | */
284
284
/* deprecation flag | | | */
@@ -318,15 +318,16 @@ typedef struct _zend_oparray_context {
318
318
/* run_time_cache allocated on heap (user only) | | | */
319
319
#define ZEND_ACC_HEAP_RT_CACHE (1 << 22) /* | X | | */
320
320
/* | | | */
321
- /* method flag used by Closure::__invoke() | | | */
322
- #define ZEND_ACC_USER_ARG_INFO (1 << 23 ) /* | X | | */
321
+ /* method flag used by Closure::__invoke() (int only) | | | */
322
+ #define ZEND_ACC_USER_ARG_INFO (1 << 22 ) /* | X | | */
323
323
/* | | | */
324
324
#define ZEND_ACC_GENERATOR (1 << 24) /* | X | | */
325
325
/* | | | */
326
+ /* function was processed by pass two (user only) | | | */
326
327
#define ZEND_ACC_DONE_PASS_TWO (1 << 25) /* | X | | */
327
328
/* | | | */
328
329
/* internal function is allocated at arena (int only) | | | */
329
- #define ZEND_ACC_ARENA_ALLOCATED (1 << 26 ) /* | X | | */
330
+ #define ZEND_ACC_ARENA_ALLOCATED (1 << 25 ) /* | X | | */
330
331
/* | | | */
331
332
/* op_array is a clone of trait method | | | */
332
333
#define ZEND_ACC_TRAIT_CLONE (1 << 27) /* | X | | */
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ You can use the following macro to check the extension API version for compatibi
44
44
45
45
/* The first number is the engine version and the rest is the date (YYYYMMDD).
46
46
* This way engine 2/3 API no. is always greater than engine 1 API no.. */
47
- #define ZEND_EXTENSION_API_NO 320190529
47
+ #define ZEND_EXTENSION_API_NO 320190902
48
48
49
49
typedef struct _zend_extension_version_info {
50
50
int zend_extension_api_no ;
Original file line number Diff line number Diff line change 31
31
#define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module
32
32
#define ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU zend_module
33
33
34
- #define ZEND_MODULE_API_NO 20190529
34
+ #define ZEND_MODULE_API_NO 20190902
35
35
#ifdef ZTS
36
36
#define USING_ZTS 1
37
37
#else
You can’t perform that action at this time.
0 commit comments