summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-09-18 15:14:36 +0200
committerAnatol Belski <ab@php.net>2013-09-18 15:14:36 +0200
commit86dfe7be49a674358e69003413c4a48bee3463ed (patch)
treeee96648a25758e87faedb63c686d1177c6304970 /main/php_variables.c
parentdc7015d4e4c2f9cb139ccb2befc4075f6a228a24 (diff)
downloadphp-git-86dfe7be49a674358e69003413c4a48bee3463ed.tar.gz
better way to fix PRIu64 availability on windows
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 353aa6357d..ab9aee3ae3 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -29,6 +29,9 @@
#include "php_content_types.h"
#include "SAPI.h"
#include "zend_globals.h"
+#ifdef PHP_WIN32
+# include "win32/php_inttypes.h"
+#endif
/* for systems that need to override reading of environment variables */
void _php_import_environment_variables(zval *array_ptr TSRMLS_DC);
@@ -292,11 +295,7 @@ static inline int add_post_vars(zval *arr, post_var_data_t *vars, zend_bool eof
while (add_post_var(arr, vars, eof TSRMLS_CC)) {
if (++vars->cnt > max_vars) {
php_error_docref(NULL TSRMLS_CC, E_WARNING,
-#ifdef PHP_WIN32
- "Input variables exceeded %I64u. "
-#else
"Input variables exceeded %" PRIu64 ". "
-#endif
"To increase the limit change max_input_vars in php.ini.",
max_vars);
return FAILURE;