com php-src: remove zend extension: phpdbg.c phpdbg_prompt. c
| From: | Bob Weinand | Date: | Mon, 09 Dec 2013 09:33:32 +0000 |
| Subject: | com php-src: remove zend extension: phpdbg.c phpdbg_prompt. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75270@lists.php.net to get a copy of this message | ||
Commit: 12d071fa7c94c7edafd56499443a26cd8716cc6b
Author: krakjoe <joe.watkins@live.co.uk> Mon, 9 Dec 2013 09:33:32 +0000
Parents: 9cd93565230dcefc33aadc7eba5a16b23fcfca62
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=12d071fa7c94c7edafd56499443a26cd8716cc6b
Log:
remove zend extension
Changed paths:
M phpdbg.c
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 7fd89f1..7a5cd48 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -540,37 +540,6 @@ static sapi_module_struct phpdbg_sapi_module = {
};
/* }}} */
-void phpdbg_op_array_handler(zend_op_array *op_array) {
- TSRMLS_FETCH();
-
- phpdbg_resolve_op_array_breaks(op_array TSRMLS_CC);
-}
-
-#ifndef ZEND_EXT_API
-#define ZEND_EXT_API ZEND_DLEXPORT
-#endif
-ZEND_EXTENSION();
-
-ZEND_DLEXPORT zend_extension zend_extension_entry = {
- PHPDBG_NAME,
- PHPDBG_VERSION,
- PHPDBG_AUTHORS,
- PHPDBG_URL,
- "(c) 2013",
- NULL, /* startup_func_t */
- NULL, /* shutdown_func_t */
- NULL, /* activate_func_t */
- NULL, /* deactivate_func_t */
- NULL, /* message_handler_func_t */
- phpdbg_op_array_handler, /* op_array_handler_func_t */
- NULL, /* statement_handler_func_t */
- NULL, /* fcall_begin_handler_func_t */
- NULL, /* fcall_end_handler_func_t */
- NULL, /* op_array_ctor_func_t */
- NULL, /* op_array_dtor_func_t */
- STANDARD_ZEND_EXTENSION_PROPERTIES
-};
-
const opt_struct OPTIONS[] = { /* {{{ */
{'c', 1, "ini path override"},
{'d', 1, "define ini entry on command line"},
@@ -1090,8 +1059,7 @@ phpdbg_main:
phpdbg->ini_entries = ini_entries;
if (phpdbg->startup(phpdbg) == SUCCESS) {
- zend_register_extension(&zend_extension_entry, NULL);
-
+
zend_activate(TSRMLS_C);
/* do not install sigint handlers for remote consoles */
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index bff0975..7e01b2e 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -1318,6 +1318,9 @@ zend_vm_enter:
#endif
while (1) {
+ /* resolve nth opline breakpoints */
+ phpdbg_resolve_op_array_breaks(EG(active_op_array) TSRMLS_CC);
+
#ifdef ZEND_WIN32
if (EG(timed_out)) {
zend_timeout(0);