summaryrefslogtreecommitdiff
path: root/sapi/roxen
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-08-20 14:29:00 +0000
committerSascha Schumann <sas@php.net>2000-08-20 14:29:00 +0000
commit1d68a02df36170851b4c3e72faea43129022642e (patch)
tree30e9672cd229cac4cd65dce9f06d8fbf9474a446 /sapi/roxen
parent320105bcd8540a6673e54106c03d569249af48f9 (diff)
downloadphp-git-1d68a02df36170851b4c3e72faea43129022642e.tar.gz
The status quo in PHP is that the current directory is initialized
to the directory where the executing script is located. Since this needs to be implemented for all SAPI modules anyway, this change moves the functionality to php_execute_script() and gets rid of the per-module code.
Diffstat (limited to 'sapi/roxen')
-rw-r--r--sapi/roxen/roxen.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sapi/roxen/roxen.c b/sapi/roxen/roxen.c
index 62c17a7726..b2c0dbf8e5 100644
--- a/sapi/roxen/roxen.c
+++ b/sapi/roxen/roxen.c
@@ -593,19 +593,6 @@ static int php_roxen_module_main(SLS_D)
#endif
#endif
-#ifdef VIRTUAL_DIR
- /* Change virtual directory, if the feature is enabled */
- dir = malloc(len = strlen(THIS->filename));
- strcpy(dir, THIS->filename);
- while(--len >= 0 && dir[len] != '/')
- ;
- if(len > 0) {
- dir[len] = '\0';
- }
- V_CHDIR(dir);
- free(dir);
-#endif
-
file_handle.type = ZEND_HANDLE_FILENAME;
file_handle.filename = THIS->filename;
file_handle.free_filename = 0;