Skip to content

Commit 4e74519

Browse files
committed
Add true global for mixed type
1 parent a529f5b commit 4e74519

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: Zend/zend_compile.c

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ static inline uint32_t zend_alloc_cache_slot(void) {
8484
return zend_alloc_cache_slots(1);
8585
}
8686

87+
const zend_type zend_mixed_type = { NULL, MAY_BE_ANY };
88+
8789
ZEND_API zend_op_array *(*zend_compile_file)(zend_file_handle *file_handle, int type);
8890
ZEND_API zend_op_array *(*zend_compile_string)(zend_string *source_string, const char *filename, zend_compile_position position);
8991

Diff for: Zend/zend_compile.h

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
typedef struct _zend_op_array zend_op_array;
5555
typedef struct _zend_op zend_op;
56+
extern const zend_type zend_mixed_type;
5657

5758
/* On 64-bit systems less optimal, but more compact VM code leads to better
5859
* performance. So on 32-bit systems we use absolute addresses for jump

0 commit comments

Comments
 (0)