summaryrefslogtreecommitdiff
path: root/src/sp_sloppy.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2020-06-15 11:51:16 +0200
committerBen Fuhrmannek2020-06-15 11:51:16 +0200
commit7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (patch)
treece57745314d905ff06119788acb56c11dcb3aede /src/sp_sloppy.c
parentf742d9f88bf788e38bbe832f1b75e39784f024bc (diff)
parent7f9602ebc23582195d63eb35f1de1961297f2e00 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/sp_sloppy.c')
-rw-r--r--src/sp_sloppy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c
index 5837783..88052bb 100644
--- a/src/sp_sloppy.c
+++ b/src/sp_sloppy.c
@@ -2,8 +2,13 @@
2 2
3ZEND_API zend_op_array* (*orig_zend_compile_file)(zend_file_handle* file_handle, 3ZEND_API zend_op_array* (*orig_zend_compile_file)(zend_file_handle* file_handle,
4 int type) = NULL; 4 int type) = NULL;
5#if PHP_VERSION_ID >= 80000
6ZEND_API zend_op_array* (*orig_zend_compile_string)(zval* source_string,
7 const char* filename) = NULL;
8#else
5ZEND_API zend_op_array* (*orig_zend_compile_string)(zval* source_string, 9ZEND_API zend_op_array* (*orig_zend_compile_string)(zval* source_string,
6 char* filename) = NULL; 10 char* filename) = NULL;
11#endif
7 12
8static void modify_opcode(zend_op_array* opline) { 13static void modify_opcode(zend_op_array* opline) {
9 if (NULL != opline) { 14 if (NULL != opline) {