Skip to content

Commit

Permalink
PHP 7 doesn't have EG(in_execution)
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Aug 29, 2015
1 parent 486d9b1 commit 3a5162c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xdebug_stack.c
Expand Up @@ -638,7 +638,11 @@ void xdebug_error_cb(int type, const char *error_filename, const uint error_line
error_handling = EG(error_handling);
exception_class = EG(exception_class);
/* according to error handling mode, suppress error, throw exception or show it */
if (error_handling != EH_NORMAL && EG(in_execution)) {
if (error_handling != EH_NORMAL
#if PHP_VERSION_ID < 70000
&& EG(in_execution)
#endif
) {
switch (type) {
case E_CORE_ERROR:
case E_COMPILE_ERROR:
Expand Down

0 comments on commit 3a5162c

Please sign in to comment.