com php-src: Merge branch 'master' of https://github.com/krakjoe/phpdbg: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Tue, 19 Nov 2013 01:50:38 +0000 |
| Subject: | com php-src: Merge branch 'master' of https://github.com/krakjoe/phpdbg: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74807@lists.php.net to get a copy of this message | ||
Commit: fb6df2fa08a2f83aa698892443ecf8c58d9b19e8
Author: krakjoe <joe.watkins@live.co.uk> Tue, 19 Nov 2013 01:50:38 +0000
Parents: 9ebc61f282b33cfbb02a482b624e9d4f8c6a3497 db8f825414776a94f9dbc4ab08d5232b0483dab3
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fb6df2fa08a2f83aa698892443ecf8c58d9b19e8
Log:
Merge branch 'master' of https://github.com/krakjoe/phpdbg
Changed paths:
MM phpdbg_prompt.c
Diff:
diff --cc phpdbg_prompt.c
index 45000a1,9dfef6b..ba74f20
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@@ -914,8 -914,8 +914,8 @@@ int phpdbg_interactive(TSRMLS_D) /* {{
{
size_t cmd_len;
int ret = SUCCESS;
- const char *start = NULL;
+ char *start = NULL;
-
+
#ifndef HAVE_LIBREADLINE
char cmd[PHPDBG_MAX_CMD];
@@@ -929,7 -929,8 +929,7 @@@
while (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
cmd = readline(PROMPT);
cmd_len = cmd ? strlen(cmd) : 0;
- #endif
-
+ #endif
start = estrndup(cmd, cmd_len);
/* trim space from end of input */
@@@ -961,9 -962,10 +961,9 @@@
ZVAL_STRING(farg, &start[offset], 1);
params[0] = &farg;
}
-
+
ZVAL_STRINGL(&fname, cmd, strlen(cmd), 1);
-
+
-
fci.size = sizeof(fci);
fci.function_table = &PHPDBG_G(registered);
fci.function_name = &fname;