summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-10-28 13:27:20 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-10-28 17:25:45 +0100
commitb7d83ff8a69f60820ac45ffc02d903482c40399f (patch)
tree6243b59ca45fe26b33f9d7e9b5132d5e0ea6e700
parenta8ac22452df4289d5d6acfd84f0cc616504d1112 (diff)
downloadphp-git-b7d83ff8a69f60820ac45ffc02d903482c40399f.tar.gz
Fix wrong exec length on relative paths
-rw-r--r--phpdbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 9c56b1d7bc..4bfbf4c1e9 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;