cvs: php4 /sapi/isapi/ php4isapi.c
| From: | Ben Mansell | Date: | Mon, 15 May 2000 12:40:12 +0000 |
| Subject: | cvs: php4 /sapi/isapi/ php4isapi.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15042@lists.php.net to get a copy of this message | ||
joosters Mon May 15 14:40:12 2000 EDT
Modified files:
/php4/sapi/isapi php4isapi.c
Log:
Define PHP_SELF properly with Zeus+ISAPI
Index: php4/sapi/isapi/php4isapi.c
diff -u php4/sapi/isapi/php4isapi.c:1.42 php4/sapi/isapi/php4isapi.c:1.43
--- php4/sapi/isapi/php4isapi.c:1.42 Thu May 4 12:38:14 2000
+++ php4/sapi/isapi/php4isapi.c Mon May 15 14:40:12 2000
@@ -334,7 +334,11 @@
}
/* PHP_SELF support */
+#ifdef WITH_ZEUS
+ if (lpECB->GetServerVariable(lpECB->ConnID, "PATH_INFO", static_variable_buf,
&variable_len)
+#else
if (lpECB->GetServerVariable(lpECB->ConnID, "SCRIPT_NAME", static_variable_buf,
&variable_len)
+#endif
&& static_variable_buf[0]) {
php_register_variable("PHP_SELF", static_variable_buf, track_vars_array ELS_CC PLS_CC);
}