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;
}
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--;
&& primary_file->filename) {
char *filename;
- filename = strrchr(primary_file->filename, PHP_SEPARATOR);
+ filename = strrchr(primary_file->filename, PHP_DIR_SEPARATOR);
if (filename) {
filename++;
# 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"