diff options
author | Remi Collet <remi@remirepo.net> | 2020-05-19 10:22:25 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-05-19 10:22:25 +0200 |
commit | 822052602398c57e79ae9d3fc7122e026b922e49 (patch) | |
tree | a1bd751c454f0166cea3479a5749d7d5bedd4f0b /uopz-xdebug.patch | |
parent | 0fca34b575c39b90e6ca872c732179aa9af199bc (diff) |
revert workaround for xdebug < 2.9.4
Diffstat (limited to 'uopz-xdebug.patch')
-rw-r--r-- | uopz-xdebug.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/uopz-xdebug.patch b/uopz-xdebug.patch new file mode 100644 index 0000000..ef07ba9 --- /dev/null +++ b/uopz-xdebug.patch @@ -0,0 +1,72 @@ + +Revert workaround to xdebug < 2.9.4 + + d9785ce7357fae2a49ba5f00a6705cd75d6fbdcd. + db01930f131eb5f673cba7bd536dab881818760c + +--- + src/handlers.c | 14 -------------- + src/handlers.h | 1 - + uopz.c | 8 +++++--- + 3 files changed, 5 insertions(+), 18 deletions(-) + +diff --git a/src/handlers.c b/src/handlers.c +index 386b840..42910d3 100644 +--- a/src/handlers.c ++++ b/src/handlers.c +@@ -163,20 +163,6 @@ void uopz_handlers_init(void) { + } + } + +-void uopz_handlers_update(void) { +- uopz_vm_handler_t *handler = uopz_vm_handlers; +- +- while (handler) { +- if (!handler->opcode) { +- break; +- } +- if (zend_get_user_opcode_handler(handler->opcode) != handler->uopz) { +- UOPZ_HANDLER_OVERLOAD(handler); +- } +- handler++; +- } +-} +- + void uopz_handlers_shutdown(void) { + uopz_vm_handler_t *handler = uopz_vm_handlers; + +diff --git a/src/handlers.h b/src/handlers.h +index 80574d3..6884faf 100644 +--- a/src/handlers.h ++++ b/src/handlers.h +@@ -20,7 +20,6 @@ + #define UOPZ_HANDLERS_H + + void uopz_handlers_init(void); +-void uopz_handlers_update(void); + void uopz_handlers_shutdown(void); + + #endif /* UOPZ_HANDLERS_H */ +diff --git a/uopz.c b/uopz.c +index b181dda..2f8c193 100644 +--- a/uopz.c ++++ b/uopz.c +@@ -24,7 +24,6 @@ + #include "php_ini.h" + #include "ext/standard/info.h" + +-#include "SAPI.h" + + #include "uopz.h" + +@@ -154,8 +152,6 @@ static PHP_RINIT_FUNCTION(uopz) + + uopz_request_init(); + +- uopz_handlers_update(); +- + return SUCCESS; + } /* }}} */ + + + |