From: Alex Waugh Date: Sun, 4 Nov 2001 12:46:30 +0000 (+0000) Subject: Convert PATH_TRANSLATED for RISC OS X-Git-Tag: ChangeLog~419 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bddb9539f71cfcfd5d13a721903ae54f8a08bfea;p=php Convert PATH_TRANSLATED for RISC OS --- 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 #endif +#ifdef __riscos__ +#include +#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); } }