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

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