diff options
| author | jvoisin | 2018-08-09 16:16:53 +0200 |
|---|---|---|
| committer | jvoisin | 2018-08-09 16:16:53 +0200 |
| commit | e5d1375bae4fa16f1e92aaece70edf16a3d09959 (patch) | |
| tree | 6b77b0920903c4c1f56228529c0dfd0597c6282d | |
| parent | 413e4bf67a3100baa3723d1372a09cd36ff47c72 (diff) | |
Fix a typo in the previous commits
| -rw-r--r-- | src/sp_execute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c index 134aab2..1f9226c 100644 --- a/src/sp_execute.c +++ b/src/sp_execute.c | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) | 6 | ZEND_DECLARE_MODULE_GLOBALS(snuffleupagus) |
| 7 | 7 | ||
| 8 | static void (*orig_execute_ex)(zend_execute_data *execute_data); | 8 | static void (*orig_execute_ex)(zend_execute_data *execute_data) = NULL; |
| 9 | static void (*orig_zend_execute_internal)(zend_execute_data *execute_data, | 9 | static void (*orig_zend_execute_internal)(zend_execute_data *execute_data, |
| 10 | zval *return_value); | 10 | zval *return_value) = NULL; |
| 11 | static int (*orig_zend_stream_open)(const char *filename, | 11 | static int (*orig_zend_stream_open)(const char *filename, |
| 12 | zend_file_handle *handle) = NULL; | 12 | zend_file_handle *handle) = NULL; |
| 13 | 13 | ||
| @@ -271,7 +271,7 @@ end: | |||
| 271 | int hook_execute(void) { | 271 | int hook_execute(void) { |
| 272 | TSRMLS_FETCH(); | 272 | TSRMLS_FETCH(); |
| 273 | 273 | ||
| 274 | if (NULL == orig_zend_stream_open) { | 274 | if (NULL == orig_execute_ex) { |
| 275 | /* zend_execute_ex is used for "user" function calls */ | 275 | /* zend_execute_ex is used for "user" function calls */ |
| 276 | orig_execute_ex = zend_execute_ex; | 276 | orig_execute_ex = zend_execute_ex; |
| 277 | zend_execute_ex = sp_execute_ex; | 277 | zend_execute_ex = sp_execute_ex; |
