]> granicus.if.org Git - php/commitdiff
- Change PHP_SEPARATOR to PHP_DIR_SEPARATOR
authorAndi Gutmans <andi@php.net>
Sun, 20 Aug 2000 19:56:24 +0000 (19:56 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 20 Aug 2000 19:56:24 +0000 (19:56 +0000)
main/fopen_wrappers.c
main/main.c
main/php.h

index 89a24308ffcfe441063385206f0bb76fe990e909..406c295e0b44956c1e1d2dfd0c3cd314d2988049 100644 (file)
@@ -317,8 +317,8 @@ PHPAPI FILE *php_fopen_primary_script(void)
                        if (pw && pw->pw_dir) {
                                filename = emalloc(strlen(PG(user_dir)) + strlen(path_info) + strlen(pw->pw_dir) + 4);
                                if (filename) {
-                                       sprintf(filename, "%s%c%s%c%s", pw->pw_dir, PHP_SEPARATOR,
-                                                               PG(user_dir), PHP_SEPARATOR, s+1); /* Safe */
+                                       sprintf(filename, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR,
+                                                               PG(user_dir), PHP_DIR_SEPARATOR, s+1); /* Safe */
                                        STR_FREE(SG(request_info).path_translated);
                                        SG(request_info).path_translated = filename;
                                }
@@ -338,7 +338,7 @@ PHPAPI FILE *php_fopen_primary_script(void)
                        if (filename) {
                                memcpy(filename, PG(doc_root), length);
                                if (!IS_SLASH(filename[length - 1])) {  /* length is never 0 */
-                                       filename[length++] = PHP_SEPARATOR;
+                                       filename[length++] = PHP_DIR_SEPARATOR;
                                }
                                if (IS_SLASH(path_info[0])) {
                                        length--;
index c239fa1f72a947982ba1e0aa1a7cdd5d66657212..93ff27609367aecb669acbffeb33bcd128edacc0 100644 (file)
@@ -1148,7 +1148,7 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_
                        && primary_file->filename) {
                char *filename;
 
-               filename = strrchr(primary_file->filename, PHP_SEPARATOR);
+               filename = strrchr(primary_file->filename, PHP_DIR_SEPARATOR);
                
                if (filename) {
                        filename++;
index 8d8b4c503470767b1773026c3c4da30d8ef4d477..670335d63c90371dec19bf18e5578f13f161c5ca 100644 (file)
@@ -65,11 +65,11 @@ extern unsigned char second_arg_allow_ref[];
 #      else
 #      define PHPAPI __declspec(dllimport) 
 #      endif
-#define PHP_SEPARATOR '\\'
+#define PHP_DIR_SEPARATOR '\\'
 #else
 #define PHPAPI
 #define THREAD_LS
-#define PHP_SEPARATOR '/'
+#define PHP_DIR_SEPARATOR '/'
 #endif
 
 #include "php_regex.h"