summaryrefslogtreecommitdiff
path: root/src/sp_sloppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_sloppy.c')
-rw-r--r--src/sp_sloppy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c
index 05d2505..09e79d8 100644
--- a/src/sp_sloppy.c
+++ b/src/sp_sloppy.c
@@ -1,7 +1,9 @@
1#include "sp_sloppy.h" 1#include "sp_sloppy.h"
2 2
3ZEND_API zend_op_array* (*zend_compile_file_default)(zend_file_handle* file_handle, int type) = NULL; 3ZEND_API zend_op_array* (*zend_compile_file_default)(
4ZEND_API zend_op_array* (*zend_compile_string_default)(zval* source_string, char* filename) = NULL; 4 zend_file_handle* file_handle, int type) = NULL;
5ZEND_API zend_op_array* (*zend_compile_string_default)(zval* source_string,
6 char* filename) = NULL;
5 7
6static void modify_opcode(zend_op_array* opline) { 8static void modify_opcode(zend_op_array* opline) {
7 if (NULL != opline) { 9 if (NULL != opline) {
@@ -24,7 +26,8 @@ ZEND_API zend_op_array* sp_compile_string(zval* source_string, char* filename) {
24 return opline; 26 return opline;
25} 27}
26 28
27ZEND_API zend_op_array* sp_compile_file(zend_file_handle* file_handle, int type) { 29ZEND_API zend_op_array* sp_compile_file(zend_file_handle* file_handle,
30 int type) {
28 zend_op_array* opline = zend_compile_file_default(file_handle, type); 31 zend_op_array* opline = zend_compile_file_default(file_handle, type);
29 modify_opcode(opline); 32 modify_opcode(opline);
30 return opline; 33 return opline;