cvs: php4 /sapi/cgi cgi_main.c

From: Date: Sun, 04 Nov 2001 12:46:30 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8080@lists.php.net to get a copy of this message
alexwaugh Sun Nov 4 07:46:30 2001 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: Convert PATH_TRANSLATED for RISC OS Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.136 php4/sapi/cgi/cgi_main.c:1.137 --- php4/sapi/cgi/cgi_main.c:1.136 Thu Sep 27 16:01:18 2001 +++ php4/sapi/cgi/cgi_main.c Sun Nov 4 07:46:30 2001 @@ -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 @@ 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); } }

« previous php.cvs (#8080) next »