summaryrefslogtreecommitdiff
path: root/sapi/servlet/servlet.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
committerZeev Suraski <zeev@php.net>2001-01-02 22:49:31 +0000
commitbd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f (patch)
treeff521b5242f3800f3495220bfdf51f9cf35bbe20 /sapi/servlet/servlet.c
parent348f6c609c148c2c1f17669dad521fe04cd50a2a (diff)
downloadphp-git-bd0ac7fe14b6f2eb82a2e13a38c3eca5d4fe2e4f.tar.gz
Many patches. I hope I remember them all:
- Make sapi_module available to external modules (PHPAPI) - Make the php.ini path reported in phpinfo() always point to real full path of the php.ini file - Optimized the ISAPI module not to read unnecessary server variables and read necessary variables at most once.
Diffstat (limited to 'sapi/servlet/servlet.c')
-rw-r--r--sapi/servlet/servlet.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sapi/servlet/servlet.c b/sapi/servlet/servlet.c
index 210e59c9b9..061186de27 100644
--- a/sapi/servlet/servlet.c
+++ b/sapi/servlet/servlet.c
@@ -65,8 +65,6 @@
#include "zend_highlight.h"
#include "zend_indent.h"
-PHPAPI extern char *php_ini_path;
-
JNIEXPORT void JNICALL Java_net_php_reflect_setEnv
(JNIEnv *newJenv, jclass self);
@@ -216,7 +214,7 @@ static char *sapi_servlet_read_cookies(SLS_D)
* sapi maintenance
*/
-static sapi_module_struct sapi_module = {
+static sapi_module_struct servlet_sapi_module = {
"java_servlet", /* name */
"Java Servlet", /* pretty name */
@@ -263,9 +261,9 @@ JNIEXPORT void JNICALL Java_net_php_servlet_startup
}
#endif
- sapi_startup(&sapi_module);
+ sapi_startup(&servlet_sapi_module);
- if (php_module_startup(&sapi_module)==FAILURE) {
+ if (php_module_startup(&servlet_sapi_module)==FAILURE) {
ThrowServletException(jenv,"module startup failure");
return;
}