diff options
author | Alex Waugh <alexwaugh@php.net> | 2001-11-04 12:46:30 +0000 |
---|---|---|
committer | Alex Waugh <alexwaugh@php.net> | 2001-11-04 12:46:30 +0000 |
commit | bddb9539f71cfcfd5d13a721903ae54f8a08bfea (patch) | |
tree | 6cf73b29715410758009fb1538969652825402ec /sapi | |
parent | f1e32a8c82ce731cb8d2c6a708b890a51425c5f8 (diff) | |
download | php-git-bddb9539f71cfcfd5d13a721903ae54f8a08bfea.tar.gz |
Convert PATH_TRANSLATED for RISC OS
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 5c71db425c..1907f46dde 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -64,6 +64,10 @@ #include <signal.h> #endif +#ifdef __riscos__ +#include <unixlib/local.h> +#endif + #include "zend_compile.h" #include "zend_execute.h" #include "zend_highlight.h" @@ -703,6 +707,11 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine env_path_translated = getenv("PATH_TRANSLATED"); #endif if(env_path_translated) { +#ifdef __riscos__ + /* Convert path to unix format*/ + __riscosify_control|=__RISCOSIFY_DONT_CHECK_DIR; + env_path_translated=__unixify(env_path_translated,0,NULL,1,0); +#endif SG(request_info).path_translated = estrdup(env_path_translated); } } |