diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 13:27:20 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 17:25:45 +0100 |
commit | b7d83ff8a69f60820ac45ffc02d903482c40399f (patch) | |
tree | 6243b59ca45fe26b33f9d7e9b5132d5e0ea6e700 | |
parent | a8ac22452df4289d5d6acfd84f0cc616504d1112 (diff) | |
download | php-git-b7d83ff8a69f60820ac45ffc02d903482c40399f.tar.gz |
Fix wrong exec length on relative paths
-rw-r--r-- | phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |