[PATCH] sapi/cgi fix force_redirect type
| From: | Joe Orton | Date: | Mon, 13 Oct 2003 12:37:21 +0000 |
| Subject: | [PATCH] sapi/cgi fix force_redirect type | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-4815@lists.php.net to get a copy of this message | ||
4.3/sapi/cgi/cgi_main.c: In function `main':
4.3/sapi/cgi/cgi_main.c:1080: warning: passing arg 2 of `cfg_get_long' from incompatible
pointer type
real bug, could do nasty things on LP64 platforms:
--- sapi/cgi/cgi_main.c 21 Sep 2003 22:08:13 -0000 1.190.2.49
+++ sapi/cgi/cgi_main.c 13 Oct 2003 12:28:23 -0000
@@ -956,7 +956,7 @@
zend_llist global_vars;
int interactive=0;
#if FORCE_CGI_REDIRECT
- int force_redirect = 1;
+ long force_redirect = 1;
char *redirect_status_env = NULL;
#endif