com php-src: Fix wrong exec length on relative paths: sapi/phpdbg/phpdbg.c

From: Date: Tue, 28 Oct 2014 16:25:45 +0000
Subject: com php-src: Fix wrong exec length on relative paths: sapi/phpdbg/phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82739@lists.php.net to get a copy of this message
Commit: c34fd924660a0c2f3b2ef6ce30d95b541b76ef61 Author: Bob Weinand <bobwei9@hotmail.com> Tue, 28 Oct 2014 13:27:20 +0100 Parents: cc3587f4a30a3a33f6043c919cf8ef11ba33087b Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c34fd924660a0c2f3b2ef6ce30d95b541b76ef61 Log: Fix wrong exec length on relative paths Changed paths: M sapi/phpdbg/phpdbg.c Diff: diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 9c56b1d..4bfbf4c 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;

« previous php.cvs (#82739) next »