diff options
author | David Hedbor <neotron@php.net> | 2000-06-05 19:51:22 +0000 |
---|---|---|
committer | David Hedbor <neotron@php.net> | 2000-06-05 19:51:22 +0000 |
commit | 7fdfcc28ec9f1c68dfe085db71411e660ce5d336 (patch) | |
tree | 6a37d8689e8ae50e4d4eb6bcea485e2529b071cd /sapi | |
parent | 3701bc420774c1b689f8a43f0ed891c99fea3cd2 (diff) | |
download | php-git-7fdfcc28ec9f1c68dfe085db71411e660ce5d336.tar.gz |
Changed include statement for main.h to avoid inclusion of Pike's main.h.
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/roxen/roxen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sapi/roxen/roxen.c b/sapi/roxen/roxen.c index eeab74c57c..a0c0321752 100644 --- a/sapi/roxen/roxen.c +++ b/sapi/roxen/roxen.c @@ -25,7 +25,8 @@ #include "php_ini.h" #include "php_globals.h" #include "SAPI.h" -#include "main.h" +/* Was using Pike's main.h */ +#include "../../main.h" #include "ext/standard/info.h" #include "php_version.h" @@ -592,17 +593,16 @@ static int php_roxen_module_main(SLS_D) #endif #endif - /* Change virtual directory, if the feature is enabled */ #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] != '/') ; - /* VERY BAD, but should work */ if(len > 0) { dir[len] = '\0'; - V_CHDIR(dir); } + V_CHDIR(dir); free(dir); #endif |