Skip to content

Commit 97424c4

Browse files
committed
2 parents f7ae112 + f62098e commit 97424c4

File tree

3 files changed

+23
-16
lines changed

3 files changed

+23
-16
lines changed

Changelog.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
ChangeLog for phpdbg
22
====================
33

4-
Version 0.0.2 0000-00-00
4+
Version 0.1.0 2013-11-23
55
------------------------
66

7-
1. Added until/u command
7+
1. New commands:
8+
- until (continue until the current line is executed)
9+
- frame (switch to a frame in the current stack for inspection)
10+
- info (quick access to useful information on the console)
11+
- finish (continue until the current function has returned)
12+
- leave (continue until the current function is returning)
13+
- shell (shell a command)
14+
- register (register a function for use as a command)
815
2. Added printers for class and method
916
3. Make uniform commands and aliases where possible
1017
4. Include all alias information and sub-command information in help
11-
5. Added finish/f command
12-
6. Added info command
13-
7. Added signal handling to break execution (ctrl-c)
18+
5. Added signal handling to break execution (ctrl-c)
19+
6. Fixed #13 (Output Buffering Control seems fail)
20+
7. Fixed #14 (Fixed typo in Makefile.frag)
1421

1522

1623
Version 0.0.1 2013-11-15

phpdbg.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static inline int php_sapi_phpdbg_ub_write(const char *message, unsigned int len
344344
static inline void php_sapi_phpdbg_flush(void *context) /* {{{ */
345345
{
346346
TSRMLS_FETCH();
347-
347+
348348
fflush(PHPDBG_G(io)[PHPDBG_STDOUT]);
349349
} /* }}} */
350350

@@ -444,10 +444,10 @@ static void phpdbg_welcome(zend_bool cleaning TSRMLS_DC) /* {{{ */
444444
static inline void phpdbg_sigint_handler(int signo) /* {{{ */
445445
{
446446
TSRMLS_FETCH();
447-
447+
448448
if (EG(in_execution)) {
449-
/* we don't want to set signalled while phpdbg is interactive */
450-
if (!(PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE)) {
449+
/* we don't want to set signalled while phpdbg is not interactive */
450+
if (PHPDBG_G(flags) & PHPDBG_IS_INTERACTIVE) {
451451
PHPDBG_G(flags) |= PHPDBG_IS_SIGNALED;
452452
}
453453
} else {
@@ -733,7 +733,7 @@ int main(int argc, char **argv) /* {{{ */
733733
if (ini_entries) {
734734
free(ini_entries);
735735
}
736-
736+
737737
if (ini_override) {
738738
free(ini_override);
739739
}

phpdbg_prompt.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default TS
9393
while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) {
9494
cmd_len = strlen(cmd)-1;
9595

96-
while (cmd && cmd_len > 0L && isspace(cmd[cmd_len-1]))
96+
while (cmd_len > 0L && isspace(cmd[cmd_len-1]))
9797
cmd_len--;
9898

9999
cmd[cmd_len] = '\0';
@@ -173,10 +173,10 @@ PHPDBG_COMMAND(exec) /* {{{ */
173173
if (sb.st_mode & (S_IFREG|S_IFLNK)) {
174174
char *res = phpdbg_resolve_path(param->str TSRMLS_CC);
175175
size_t res_len = strlen(res);
176-
177-
if ((res_len != PHPDBG_G(exec_len)) ||
176+
177+
if ((res_len != PHPDBG_G(exec_len)) ||
178178
(memcmp(res, PHPDBG_G(exec), res_len) != SUCCESS)) {
179-
179+
180180
if (PHPDBG_G(exec)) {
181181
phpdbg_notice("Unsetting old execution context: %s", PHPDBG_G(exec));
182182
efree(PHPDBG_G(exec));
@@ -609,7 +609,7 @@ PHPDBG_COMMAND(eval) /* {{{ */
609609
!(PHPDBG_G(flags) & PHPDBG_IS_STEPONEVAL)) {
610610
PHPDBG_G(flags) |= PHPDBG_IS_STEPPING;
611611
}
612-
612+
613613
CG(unclean_shutdown) = 0;
614614
} break;
615615

@@ -1083,7 +1083,7 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ *
10831083
}
10841084

10851085
phpdbg_debug(
1086-
"created %d params from %d argvuments",
1086+
"created %d params from %d arguments",
10871087
fci.param_count, input->argc);
10881088

10891089
zend_call_function(&fci, NULL TSRMLS_CC);

0 commit comments

Comments
 (0)