summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_utils.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2016-11-13 13:22:50 +0100
committerBob Weinand <bobwei9@hotmail.com>2016-11-13 13:22:50 +0100
commit5a4bad7b5f83ff86b0d75ed6557b8e29b76fc645 (patch)
tree3217b6f97782935f9568e130364547a85df1047e /sapi/phpdbg/phpdbg_utils.c
parent1e65d0ea67a479da18578a498fd8805fac1ea2d8 (diff)
parentef657978b24d889ab335c2c238352f5152188705 (diff)
downloadphp-git-5a4bad7b5f83ff86b0d75ed6557b8e29b76fc645.tar.gz
Merge branch 'PHP-7.1'
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r--sapi/phpdbg/phpdbg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c
index 642c1dec63..684a5a37b5 100644
--- a/sapi/phpdbg/phpdbg_utils.c
+++ b/sapi/phpdbg/phpdbg_utils.c
@@ -819,7 +819,7 @@ char *phpdbg_short_zval_print(zval *zv, int maxlen) /* {{{ */
break;
case IS_STRING: {
int i;
- zend_string *str = php_addcslashes(Z_STR_P(zv), 0, "\\\"", 2);
+ zend_string *str = php_addcslashes(Z_STR_P(zv), 0, "\\\"\n\t\0", 5);
for (i = 0; i < ZSTR_LEN(str); i++) {
if (ZSTR_VAL(str)[i] < 32) {
ZSTR_VAL(str)[i] = ' ';