diff options
| author | jvoisin | 2022-06-27 20:55:20 +0200 |
|---|---|---|
| committer | jvoisin | 2022-06-27 20:55:20 +0200 |
| commit | a5f070cd7d982ae96ad72fb79420407574e7682a (patch) | |
| tree | 998d2eb8483bc15930e023e467b235cbb7eb7340 /src/sp_execute.c | |
| parent | 30f1270c26edb6ced469eb302de2fa27befbdbec (diff) | |
Dump the eval'ed code
Diffstat (limited to 'src/sp_execute.c')
| -rw-r--r-- | src/sp_execute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index b81f408..a8798e4 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -302,6 +302,8 @@ ZEND_API zend_op_array* sp_compile_string(zend_string* source_string, | |||
| 302 | #else | 302 | #else |
| 303 | ZEND_API zend_op_array* sp_compile_string(zval* source_string, char* filename) { | 303 | ZEND_API zend_op_array* sp_compile_string(zval* source_string, char* filename) { |
| 304 | #endif | 304 | #endif |
| 305 | // TODO(jvoisin) handle recursive calls to `eval` | ||
| 306 | SPG(eval_source_string) = source_string; | ||
| 305 | zend_op_array* opline = orig_zend_compile_string(source_string, filename); | 307 | zend_op_array* opline = orig_zend_compile_string(source_string, filename); |
| 306 | sp_sloppy_modify_opcode(opline); | 308 | sp_sloppy_modify_opcode(opline); |
| 307 | return opline; | 309 | return opline; |
