com php-src: - Missing credits: phpdbg.c phpdbg.h

From: Date: Sun, 17 Nov 2013 12:40:51 +0000
Subject: com php-src: - Missing credits: phpdbg.c phpdbg.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74894@lists.php.net to get a copy of this message
Commit: 146520f045c3459dc8ddaf5050ddb1c5b02cba18 Author: Felipe Pena <felipensp@gmail.com> Sun, 17 Nov 2013 10:40:51 -0200 Parents: 180bb579bfcae9e6a42c1c738ea66bdbb6463d19 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=146520f045c3459dc8ddaf5050ddb1c5b02cba18 Log: - Missing credits Changed paths: M phpdbg.c M phpdbg.h Diff: diff --git a/phpdbg.c b/phpdbg.c index a8e5c82..e467176 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -12,6 +12,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ + | Authors: Felipe Pena <felipe@php.net> | | Authors: Joe Watkins <joe.watkins@live.co.uk> | +----------------------------------------------------------------------+ */ @@ -44,9 +45,9 @@ const char* phpdbg_get_param_type(phpdbg_param_t *param TSRMLS_DC) { return "file"; case STR_PARAM: return "string"; - + default: /* this is bad */ - return "unknown"; + return "unknown"; } } @@ -60,24 +61,24 @@ phpdbg_param_type phpdbg_parse_param(const char *str, size_t len, phpdbg_param_t } if (phpdbg_is_addr(str)) { - + param->addr = strtoul(str, 0, 16); param->type = ADDR_PARAM; goto parsed; - + } else if (phpdbg_is_numeric(str)) { - + param->num = strtol(str, NULL, 0); param->type = NUMERIC_PARAM; goto parsed; - + } else if (phpdbg_is_class_method(str, len+1, &class_name, &func_name)) { - + param->method.class = class_name; param->method.name = func_name; param->type = METHOD_PARAM; goto parsed; - + } else { const char *line_pos = strchr(str, ':'); @@ -97,7 +98,7 @@ phpdbg_param_type phpdbg_parse_param(const char *str, size_t len, phpdbg_param_t param->str = estrndup(str, len); param->len = len; param->type = STR_PARAM; - + parsed: phpdbg_debug("phpdbg_parse_param(\"%s\", %lu): %s", str, len, phpdbg_get_param_type(param TSRMLS_CC)); return param->type; @@ -236,9 +237,9 @@ static PHP_FUNCTION(phpdbg_break) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &type, &expr, &expr_len) == FAILURE) { return; } - + phpdbg_parse_param(expr, expr_len, &param TSRMLS_CC); - + switch (type) { case METHOD_PARAM: phpdbg_do_break_method(&param TSRMLS_CC); @@ -259,9 +260,9 @@ static PHP_FUNCTION(phpdbg_break) default: zend_error( E_WARNING, "unrecognized parameter type %ld", type); } - + phpdbg_clear_param(&param TSRMLS_CC); - + } else if (EG(current_execute_data) && EG(active_op_array)) { zend_ulong opline_num = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes); diff --git a/phpdbg.h b/phpdbg.h index e38f478..1b23039 100644 --- a/phpdbg.h +++ b/phpdbg.h @@ -12,6 +12,7 @@ | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ + | Authors: Felipe Pena <felipe@php.net> | | Authors: Joe Watkins <joe.watkins@live.co.uk> | +----------------------------------------------------------------------+ */

« previous php.cvs (#74894) next »