From: Bob Weinand Date: Tue, 28 Oct 2014 12:27:20 +0000 (+0100) Subject: Fix wrong exec length on relative paths X-Git-Tag: php-5.6.3RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c34fd924660a0c2f3b2ef6ce30d95b541b76ef61;p=php Fix wrong exec length on relative paths --- diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 9c56b1d7bc..4bfbf4c1e9 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1466,7 +1466,7 @@ phpdbg_main: if (exec) { /* set execution context */ PHPDBG_G(exec) = phpdbg_resolve_path(exec TSRMLS_CC); - PHPDBG_G(exec_len) = strlen(exec); + PHPDBG_G(exec_len) = PHPDBG_G(exec) ? strlen(PHPDBG_G(exec)) : 0; free(exec); exec = NULL;