# [PATCH] sapi/cgi fix force_redirect type

- Thread: https://externals.io/message/4815
- Original archive: https://news-web.php.net/php.internals/4815
- Started by Joe Orton on 2003-10-13T12:37:21+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4815 — Joe Orton — 2003-10-13T12:37:21+00:00

URL: https://externals.io/message/4815#4815

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
