summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
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
commitc34fd924660a0c2f3b2ef6ce30d95b541b76ef61 (patch)
treeaad44d5bfc205ab53b6fbd572da83a6a0638c101 /sapi/phpdbg/phpdbg.c
parentcc3587f4a30a3a33f6043c919cf8ef11ba33087b (diff)
downloadphp-git-c34fd924660a0c2f3b2ef6ce30d95b541b76ef61.tar.gz
Fix wrong exec length on relative paths
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c2
1 files changed, 1 insertions, 1 deletions
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;