summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-11-14 22:19:41 +0100
committerAnatol Belski <ab@php.net>2014-11-14 22:19:41 +0100
commit82c2e3f20148b88b0721b6887edb9280b45e90f2 (patch)
treea986aa53912aea7f62464025526285855ace0e4a /ext/standard/exec.c
parent4ae31bff1277f69e7a2a7561d4f09cef3bae55eb (diff)
downloadphp-git-82c2e3f20148b88b0721b6887edb9280b45e90f2.tar.gz
fix build
ifdef this var declaration to avoid the vs warning
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r--ext/standard/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 01aaa71f39..15e4876af5 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -244,6 +244,9 @@ PHPAPI zend_string *php_escape_shell_cmd(char *str)
register int x, y, l = (int)strlen(str);
size_t estimate = (2 * l) + 1;
zend_string *cmd;
+#ifndef PHP_WIN32
+ char *p = NULL;
+#endif
TSRMLS_FETCH();