]> granicus.if.org Git - php/commitdiff
main/fopen_wrappers.c
authorAnantha Kesari H Y <hyanantha@php.net>
Sat, 16 Jul 2005 12:21:34 +0000 (12:21 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Sat, 16 Jul 2005 12:21:34 +0000 (12:21 +0000)
NetWare file names are case insensitive
main/main.c
NetWare has no sendmail binary. It uses the smart host mailing code avaiolable in php distro. Could not find a better place to put this than main/main.c.
-- Kamesh

main/fopen_wrappers.c
main/main.c

index f52de88d6de946c2bfe65aff6812a6dfeaea6b33..f43e61666d5d18ed90b7aa98952c3cd954217a70 100644 (file)
@@ -123,7 +123,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                }
 
                /* Check the path */
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(NETWARE)
                if (strncasecmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
 #else
                if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
index 6a792e8bffd8233d16a75e1eb1e80a77add168bd..9c17d0fcb82ef5ff3581e35d4981c7323300fd03 100644 (file)
@@ -222,7 +222,7 @@ static PHP_INI_MH(OnUpdateTimeout)
 #      define PHP_SAFE_MODE_EXEC_DIR ""
 #endif
 
-#ifdef PHP_PROG_SENDMAIL
+#if defined(PHP_PROG_SENDMAIL) && !defined(NETWARE)
 #      define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
 #else
 #      define DEFAULT_SENDMAIL_PATH NULL