*/
/* $Id$ */
-/* Synced with php3 revision 1.66 1999-06-18 [ssb] */
-
#include "php.h"
#include "php_globals.h"
#include "SAPI.h"
} /* if doc_root && path_info */
if (!fn) {
/* we have to free SG(request_info).path_translated here because
- php3_destroy_request_info assumes that it will get
+ php_destroy_request_info assumes that it will get
freed when the include_names hash is emptied, but
we're not adding it in this case */
STR_FREE(SG(request_info).path_translated);
*/
/* $Id$ */
-/* Synced with php3 revision 1.25 1999-06-16 [ssb] */
-
#ifndef _FOPEN_WRAPPERS_H
#define _FOPEN_WRAPPERS_H
PG(header_is_being_sent)=0;
}
- if (php3_init_request_info(NULL)) {
+ if (php_init_request_info(NULL)) {
php_printf("Unable to initialize request info.\n");
return FAILURE;
}
zend_deactivate(CLS_C ELS_CC);
sapi_deactivate(SLS_C);
- php3_destroy_request_info(NULL);
+ php_destroy_request_info(NULL);
shutdown_memory_manager(CG(unclean_shutdown), 0);
php_unset_timeout();
#include "SAPI.h"
#ifndef THREAD_SAFE
-PHPAPI php3_request_info request_info;
+PHPAPI php_request_info request_info;
#endif
#if CGI_BINARY
-int php3_init_request_info(void *conf)
+int php_init_request_info(void *conf)
{
request_info.current_user = NULL;
request_info.current_user_length = 0;
/* We always need to emalloc() filename, since it gets placed into
the include file hash table, and gets freed with that table.
Notice that this means that we don't need to efree() it in
- php3_destroy_request_info()! */
+ php_destroy_request_info()! */
#if DISCARD_PATH
if (request_info.script_filename) {
SLS_FETCH();
return SUCCESS;
}
-int php3_destroy_request_info(void *conf)
+int php_destroy_request_info(void *conf)
{
STR_FREE(request_info.current_user);
return SUCCESS;
#if APACHE
-int php3_init_request_info(void *conf)
+int php_init_request_info(void *conf)
{
request_rec *r;
SLS_FETCH();
#endif
#if !CGI_BINARY
-int php3_destroy_request_info(void *conf)
+int php_destroy_request_info(void *conf)
{
/* see above for why we don't want to efree() request_info.filename */
STR_FREE(request_info.current_user);
int current_user_length;
const char *script_filename;
char *php_argv0;
-} php3_request_info;
+} php_request_info;
#ifndef THREAD_SAFE
-PHPAPI extern php3_request_info request_info;
+PHPAPI extern php_request_info request_info;
#endif
-extern int php3_init_request_info(void *conf);
-extern int php3_destroy_request_info(void *conf);
+extern int php_init_request_info(void *conf);
+extern int php_destroy_request_info(void *conf);
#endif
/*