]> granicus.if.org Git - php/commitdiff
Remove Netware support
authorKalle Sommer Nielsen <kalle@php.net>
Sat, 12 Nov 2016 10:20:01 +0000 (11:20 +0100)
committerKalle Sommer Nielsen <kalle@php.net>
Sat, 12 Nov 2016 10:20:01 +0000 (11:20 +0100)
If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.

65 files changed:
NEWS
TSRM/TSRM.c
TSRM/tsrm_config_common.h
UPGRADING
Zend/configure.in
Zend/zend_API.c
Zend/zend_compile.c
Zend/zend_portability.h
Zend/zend_stream.c
Zend/zend_virtual_cwd.c
Zend/zend_virtual_cwd.h
acinclude.m4
config.sub
configure.in
ext/ftp/ftp.c
ext/ftp/php_ftp.c
ext/iconv/iconv.c
ext/ldap/ldap.c
ext/mbstring/config.m4
ext/mysqlnd/mysqlnd_debug.h
ext/opcache/Optimizer/zend_func_info.c
ext/openssl/openssl.c
ext/openssl/xp_ssl.c
ext/phar/func_interceptors.c
ext/phar/stream.c
ext/snmp/snmp.c
ext/soap/php_encoding.c
ext/spl/spl_directory.c
ext/standard/basic_functions.c
ext/standard/dl.c
ext/standard/dns.c
ext/standard/file.c
ext/standard/file.h
ext/standard/filestat.c
ext/standard/flock_compat.c
ext/standard/ftp_fopen_wrapper.c
ext/standard/http_fopen_wrapper.c
ext/standard/info.c
ext/standard/mail.c
ext/standard/math.c
ext/standard/microtime.c
ext/standard/pack.c
ext/standard/php_dns.h
ext/standard/proc_open.c
ext/standard/string.c
main/fopen_wrappers.c
main/main.c
main/network.c
main/php.h
main/php_getopt.h
main/php_open_temporary_file.c
main/php_scandir.c
main/streams/glob_wrapper.c
main/streams/memory.c
main/streams/plain_wrapper.c
main/streams/streams.c
main/streams/userspace.c
main/streams/xp_socket.c
sapi/apache2handler/php_apache.h
sapi/apache2handler/php_functions.c
sapi/apache2handler/sapi_apache2.c
sapi/cli/config.m4
sapi/phpdbg/phpdbg_prompt.c
win32/sendmail.c
win32/sendmail.h

diff --git a/NEWS b/NEWS
index d4aa448ce09e4c9b4435636510bf2f3d5f5d7db5..51b63fd7cdaa97b1281cac0b029e8339b976d8c1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ PHP                                                                        NEWS
 
 - Core:
   . Removed the sql.safe_mode directive. (Kalle)
+  . Removed support for Netware. (Kalle)
   . Fixed bug #54535 (WSA cleanup executes before MSHUTDOWN). (Kalle)
   . Implemented FR #69791 (Disallow mail header injections by extra headers)
     (Yasuo)
index 386b682ea7447998daac4abe824453b27d88d089..6669df6d43c22d1dd7d86b5a5f57667d5db96659 100644 (file)
@@ -318,15 +318,6 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
        int hash_value;
        tsrm_tls_entry *thread_resources;
 
-#ifdef NETWARE
-       /* The below if loop is added for NetWare to fix an abend while unloading PHP
-        * when an Apache unload command is issued on the system console.
-        * While exiting from PHP, at the end for some reason, this function is called
-        * with tsrm_tls_table = NULL. When this happened, the server abends when
-        * tsrm_tls_table is accessed since it is NULL.
-        */
-       if(tsrm_tls_table) {
-#endif
        if (!th_id) {
                /* Fast path for looking up the resources for the current
                 * thread. Its used by just about every call to
@@ -380,9 +371,6 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
         * changes to the structure as we read it.
         */
        TSRM_SAFE_RETURN_RSRC(thread_resources->storage, id, thread_resources->count);
-#ifdef NETWARE
-       }       /* if(tsrm_tls_table) */
-#endif
 }
 
 /* frees an interpreter context.  You are responsible for making sure that
index 829cf677f09538ccc8a21bd44da7fd7684618c2e..64cecd912ae2c55378228fcfeef763f1c67e50d3 100644 (file)
@@ -25,9 +25,7 @@
 #pragma alloca
 #  else
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
-#    ifndef NETWARE
 char *alloca ();
-#    endif
 #   endif
 #  endif
 # endif
index 11497cc8241769f2a6331e912c8caad7c8f7129b..153d5b2c10af626fd6b6368a20700ca51b165638 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -24,6 +24,7 @@ PHP 7.2 UPGRADE NOTES
     closed resources.
   . is_object() will now return true for objects of class
     __PHP_Incomplete_Class.
+  . Support for Netware operating systems have been removed.
 
 ========================================
 2. New Features
index 29551d924c513d05167223c99117b1c898afdabe..3ebea4b8ed170cde85823c88ec1fb38ad64b0510 100644 (file)
@@ -62,13 +62,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
 
 #include <math.h>
 
-/* To enable the is_nan, is_infinite and is_finite PHP functions */
-#ifdef NETWARE
-       #define HAVE_ISNAN 1
-       #define HAVE_ISINF 1
-       #define HAVE_ISFINITE 1
-#endif
-
 #ifndef zend_isnan
 #ifdef HAVE_ISNAN
 #define zend_isnan(a) isnan(a)
@@ -102,12 +95,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
 
 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
 
-#ifdef NETWARE
-#ifdef USE_WINSOCK
-#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
-#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
-#endif
-#endif
 ])
 
 dnl We want this one before the checks, so the checks can modify CFLAGS.
index 2479cf0d32a0ff9160144db47ea6c7781ddafd40..277ec6ea6aec18fb83a2c6978db379a32049d26e 100644 (file)
@@ -2518,12 +2518,10 @@ void module_destructor(zend_module_entry *module) /* {{{ */
        }
 
 #if HAVE_LIBDL
-#if !(defined(NETWARE) && defined(APACHE_1_BUILD))
        if (module->handle && !getenv("ZEND_DONT_UNLOAD_MODULES")) {
                DL_UNLOAD(module->handle);
        }
 #endif
-#endif
 }
 /* }}} */
 
index 14e9a9c4ca7968ecf7f1c03a91a4d533a9b867e2..44ed339d4e76694c7f6c67c675a1e88a08b6c7bf 100644 (file)
@@ -1879,22 +1879,6 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
                        return len;
                }
        }
-#elif defined(NETWARE)
-       /*
-        * Find the first occurrence of : from the left
-        * move the path pointer to the position just after :
-        * increment the len_adjust to the length of path till colon character(inclusive)
-        * If there is no character beyond : simple return len
-        */
-       char *colonpos = NULL;
-       colonpos = strchr(path, ':');
-       if (colonpos != NULL) {
-               len_adjust = ((colonpos - path) + 1);
-               path += len_adjust;
-               if (len_adjust == len) {
-                       return len;
-               }
-       }
 #endif
 
        if (len == 0) {
@@ -1919,20 +1903,9 @@ ZEND_API size_t zend_dirname(char *path, size_t len)
        }
        if (end < path) {
                /* No slash found, therefore return '.' */
-#ifdef NETWARE
-               if (len_adjust == 0) {
-                       path[0] = '.';
-                       path[1] = '\0';
-                       return 1; /* only one character */
-               } else {
-                       path[0] = '\0';
-                       return len_adjust;
-               }
-#else
                path[0] = '.';
                path[1] = '\0';
                return 1 + len_adjust;
-#endif
        }
 
        /* Strip slashes which came before the file name */
index ff12d93269174929692c2ebc37e5aa354434a290..d2126d2755a4d2599722e28ff3c723a9decfe5c7 100644 (file)
@@ -38,9 +38,6 @@
 #ifdef ZEND_WIN32
 # include "zend_config.w32.h"
 # define ZEND_PATHS_SEPARATOR          ';'
-#elif defined(NETWARE)
-# include <zend_config.h>
-# define ZEND_PATHS_SEPARATOR          ';'
 #elif defined(__riscos__)
 # include <zend_config.h>
 # define ZEND_PATHS_SEPARATOR          ';'
@@ -338,7 +335,7 @@ char *alloca();
 
 #endif
 
-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
 # define ZEND_ALLOCA_MAX_SIZE (32 * 1024)
 # define ALLOCA_FLAG(name) \
        zend_bool name;
index b3553bd3cc459e29a4ced01f41e53a6e0053622a..680a50aea0babb6f3500fa7f349532295d71938f 100644 (file)
@@ -156,16 +156,7 @@ static size_t zend_stream_read(zend_file_handle *file_handle, char *buf, size_t
                int c = '*';
                size_t n;
 
-#ifdef NETWARE
-               /*
-                       c != 4 check is there as fread of a character in NetWare LibC gives 4 upon ^D character.
-                       Ascii value 4 is actually EOT character which is not defined anywhere in the LibC
-                       or else we can use instead of hardcoded 4.
-               */
-               for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != 4 && c != '\n'; ++n) {
-#else
                for (n = 0; n < len && (c = zend_stream_getc(file_handle)) != EOF && c != '\n'; ++n)  {
-#endif
                        buf[n] = (char)c;
                }
                if (c == '\n') {
index c623bf8d30f680b51f97dcfe3f48501fdee9d6ed..8192b424b4b531cc5a570fb1f71052d0b7fb8abc 100644 (file)
 # endif
 #endif
 
-#ifdef NETWARE
-#include <fsio.h>
-#endif
-
 #ifndef HAVE_REALPATH
 #define realpath(x,y) strcpy(y,x)
 #endif
@@ -65,8 +61,8 @@
 
 #include "TSRM.h"
 
-/* Only need mutex for popen() in Windows and NetWare because it doesn't chdir() on UNIX */
-#if (defined(ZEND_WIN32) || defined(NETWARE)) && defined(ZTS)
+/* Only need mutex for popen() in Windows because it doesn't chdir() on UNIX */
+#if defined(ZEND_WIN32) && defined(ZTS)
 MUTEX_T cwd_mutex;
 #endif
 
@@ -407,23 +403,12 @@ CWD_API void virtual_cwd_startup(void) /* {{{ */
        char cwd[MAXPATHLEN];
        char *result;
 
-#ifdef NETWARE
-       result = getcwdpath(cwd, NULL, 1);
-       if(result)
-       {
-               char *c=cwd;
-               while(c = strchr(c, '\\'))
-               {
-                       *c='/';
-                       ++c;
-               }
-       }
-#else
+
 #ifdef ZEND_WIN32
        ZeroMemory(&cwd, sizeof(cwd));
 #endif
        result = getcwd(cwd, sizeof(cwd));
-#endif
+
        if (!result) {
                cwd[0] = '\0';
        }
@@ -442,7 +427,7 @@ CWD_API void virtual_cwd_startup(void) /* {{{ */
        cwd_globals_ctor(&cwd_globals);
 #endif
 
-#if (defined(ZEND_WIN32) || defined(NETWARE)) && defined(ZTS)
+#if (defined(ZEND_WIN32)) && defined(ZTS)
        cwd_mutex = tsrm_mutex_alloc();
 #endif
 }
@@ -453,7 +438,7 @@ CWD_API void virtual_cwd_shutdown(void) /* {{{ */
 #ifndef ZTS
        cwd_globals_dtor(&cwd_globals);
 #endif
-#if (defined(ZEND_WIN32) || defined(NETWARE)) && defined(ZTS)
+#if (defined(ZEND_WIN32)) && defined(ZTS)
        tsrm_mutex_free(cwd_mutex);
 #endif
 
@@ -1054,11 +1039,6 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
                                        return -1;
                                }
                        }
-
-#elif defined(NETWARE)
-               save = 0;
-               tmp = do_alloca(len+1, use_heap);
-               memcpy(tmp, path, len+1);
 #else
                if (save && php_sys_lstat(path, &st) < 0) {
                        if (use_realpath == CWD_REALPATH) {
@@ -1296,18 +1276,6 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
                resolved_path[2] = DEFAULT_SLASH;
                start = 3;
        }
-#elif defined(NETWARE)
-       if (IS_ABSOLUTE_PATH(resolved_path, path_length)) {
-               /* skip VOLUME name */
-               start = 0;
-               while (start != ':') {
-                       if (resolved_path[start] == 0) return -1;
-                       start++;
-               }
-               start++;
-               if (!IS_SLASH(resolved_path[start])) return -1;
-               resolved_path[start++] = DEFAULT_SLASH;
-       }
 #endif
 
        add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_length-1]);
@@ -1595,7 +1563,7 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode) /* {{{ */
 }
 /* }}} */
 
-#if !defined(ZEND_WIN32) && !defined(NETWARE)
+#if !defined(ZEND_WIN32)
 CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link) /* {{{ */
 {
        cwd_state new_state;
@@ -1842,36 +1810,6 @@ CWD_API FILE *virtual_popen(const char *command, const char *type) /* {{{ */
        return popen_ex(command, type, CWDG(cwd).cwd, NULL);
 }
 /* }}} */
-#elif defined(NETWARE)
-/* On NetWare, the trick of prepending "cd cwd; " doesn't work so we need to perform
-   a VCWD_CHDIR() and mutex it
- */
-CWD_API FILE *virtual_popen(const char *command, const char *type) /* {{{ */
-{
-       char prev_cwd[MAXPATHLEN];
-       char *getcwd_result;
-       FILE *retval;
-
-       getcwd_result = VCWD_GETCWD(prev_cwd, MAXPATHLEN);
-       if (!getcwd_result) {
-               return NULL;
-       }
-
-#ifdef ZTS
-       tsrm_mutex_lock(cwd_mutex);
-#endif
-
-       VCWD_CHDIR(CWDG(cwd).cwd);
-       retval = popen(command, type);
-       VCWD_CHDIR(prev_cwd);
-
-#ifdef ZTS
-       tsrm_mutex_unlock(cwd_mutex);
-#endif
-
-       return retval;
-}
-/* }}} */
 #else /* Unix */
 CWD_API FILE *virtual_popen(const char *command, const char *type) /* {{{ */
 {
index 033f7d6ad01ffab79a7de7ee476dcae85ed8a107..1f927bb035446e36f7b15e78bbfccf3cf7bc2808 100644 (file)
@@ -73,19 +73,6 @@ typedef unsigned short mode_t;
 #define IS_ABSOLUTE_PATH(path, len) \
        (len >= 2 && (/* is local */isalpha(path[0]) && path[1] == ':' || /* is UNC */IS_SLASH(path[0]) && IS_SLASH(path[1])))
 
-#elif defined(NETWARE)
-#ifdef HAVE_DIRENT_H
-#include <dirent.h>
-#endif
-
-#define DEFAULT_SLASH '/'
-#define DEFAULT_DIR_SEPARATOR  ';'
-#define IS_SLASH(c)    ((c) == '/' || (c) == '\\')
-#define IS_SLASH_P(c)  IS_SLASH(*(c))
-/* Colon indicates volume name, either first character should be forward slash or backward slash */
-#define IS_ABSOLUTE_PATH(path, len) \
-    ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
-
 #else
 #ifdef HAVE_DIRENT_H
 #include <dirent.h>
@@ -193,7 +180,7 @@ CWD_API int virtual_access(const char *pathname, int mode);
 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf);
 #endif
 CWD_API int virtual_chmod(const char *filename, mode_t mode);
-#if !defined(ZEND_WIN32) && !defined(NETWARE)
+#if !defined(ZEND_WIN32)
 CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link);
 #endif
 
@@ -281,7 +268,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
 #define VCWD_UTIME(path, time) virtual_utime(path, time)
 #endif
 #define VCWD_CHMOD(path, mode) virtual_chmod(path, mode)
-#if !defined(ZEND_WIN32) && !defined(NETWARE)
+#if !defined(ZEND_WIN32)
 #define VCWD_CHOWN(path, owner, group) virtual_chown(path, owner, group, 0)
 #if HAVE_LCHOWN
 #define VCWD_LCHOWN(path, owner, group) virtual_chown(path, owner, group, 1)
@@ -336,7 +323,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(void);
 # endif
 #endif
 
-#if !defined(ZEND_WIN32) && !defined(NETWARE)
+#if !defined(ZEND_WIN32)
 #define VCWD_CHOWN(path, owner, group) chown(path, owner, group)
 #if HAVE_LCHOWN
 #define VCWD_LCHOWN(path, owner, group) lchown(path, owner, group)
index 3eb0f1e914f582ff7e965cc8568946f7970e5886..88c97961c7a5cffe03b1ba10f4f540901b451f89 100644 (file)
@@ -842,10 +842,6 @@ AC_DEFUN([PHP_SHARED_MODULE],[
       suffix=so
       link_cmd='$(LIBTOOL) --mode=link ifelse($4,,[$(CC)],[$(CXX)]) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$3'/$1.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $($2) $(translit($1,a-z_-,A-Z__)_SHARED_LIBADD) && mv -f '$3'/.libs/$1.so '$3'/$1.so'
       ;;
-    *netware*[)]
-      suffix=nlm
-      link_cmd='$(LIBTOOL) --mode=link ifelse($4,,[$(CC)],[$(CXX)]) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o [$]@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $($2) ifelse($1, php7lib, , -L$(top_builddir)/netware -lphp7lib) $(translit(ifelse($1, php7lib, $1, m4_substr($1, 3)),a-z_-,A-Z__)_SHARED_LIBADD)'
-      ;;
     *[)]
       suffix=la
       link_cmd='$(LIBTOOL) --mode=link ifelse($4,,[$(CC)],[$(CXX)]) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o [$]@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $($2) $(translit($1,a-z_-,A-Z__)_SHARED_LIBADD)'
@@ -970,14 +966,7 @@ dnl ---------------------------------------------- Static module
 dnl ---------------------------------------------- Shared module
       [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=yes
       PHP_ADD_SOURCES_X($ext_dir,$2,$ac_extra,shared_objects_$1,yes)
-      case $host_alias in
-        *netware*[)]
-          PHP_SHARED_MODULE(php$1,shared_objects_$1, $ext_builddir, $6, $7)
-          ;;
-        *[)]
-          PHP_SHARED_MODULE($1,shared_objects_$1, $ext_builddir, $6, $7)
-          ;;
-      esac
+      PHP_SHARED_MODULE($1,shared_objects_$1, $ext_builddir, $6, $7)
       AC_DEFINE_UNQUOTED([COMPILE_DL_]translit($1,a-z_-,A-Z__), 1, Whether to build $1 as dynamic module)
     fi
   fi
index 7ffe37378428816992ba3a143d5bbd891701b395..e8b950c261315cc97d757894db5c6824ca5aed0f 100644 (file)
@@ -261,7 +261,7 @@ case $basic_machine in
        | d10v | d30v | dlx | dsp16xx \
        | epiphany \
        | fido | fr30 | frv \
-       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0 | hppa64 \
        | hexagon \
        | i370 | i860 | i960 | ia64 \
        | ip2k | iq2000 \
@@ -384,7 +384,7 @@ case $basic_machine in
        | elxsi-* \
        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
        | h8300-* | h8500-* \
-       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0-* | hppa64-* \
        | hexagon-* \
        | i*86-* | i860-* | i960-* | ia64-* \
        | ip2k-* | iq2000-* \
@@ -1411,7 +1411,7 @@ case $os in
                os=`echo $os | sed -e 's|nto|nto-qnx|'`
                ;;
        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
-             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+             | -windows* | -osx | -abug | -os9* | -beos* | -haiku* \
              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
                ;;
        -mac*)
index de68932ca1fa3c3832f2397ee6d23560e27e050d..be73e1ebb711ce5554204f151463ea4049122a31 100644 (file)
@@ -67,13 +67,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
 
 #include <math.h>
 
-/* To enable the is_nan, is_infinite and is_finite PHP functions */
-#ifdef NETWARE
-       #define HAVE_ISNAN 1
-       #define HAVE_ISINF 1
-       #define HAVE_ISFINITE 1
-#endif
-
 #ifndef zend_isnan
 #ifdef HAVE_ISNAN
 #define zend_isnan(a) isnan(a)
@@ -107,13 +100,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
 
 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
 
-#ifdef NETWARE
-#ifdef USE_WINSOCK
-#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
-#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
-#endif
-#endif
-
 #undef PTHREADS
 ])
 
@@ -331,15 +317,6 @@ case $host_alias in
       CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
     fi
     ;;
-  *netware*)
-    PHP_BUILD_PROGRAM
-    PHP_ADD_SOURCES(/main, internal_functions.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, PHP_GLOBAL_OBJS)
-    PHP_ADD_SOURCES(win32, sendmail.c, -I$CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, PHP_GLOBAL_OBJS)
-    PHP7LIB_SHARED_LIBADD=\$\(EXTRA_LIBS\)
-    EXTENSION_DIR=sys:/php$PHP_MAJOR_VERSION/ext
-    PHP_SUBST(PHP7LIB_SHARED_LIBADD)
-    PHP_SHARED_MODULE(php7lib, PHP_GLOBAL_OBJS, netware)
-    ;;
 esac
 
 # Disable PIC mode by default where it is known to be safe to do so,
@@ -1299,20 +1276,10 @@ EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
 PHP_BUILD_DATE=`date '+%Y-%m-%d'`
 AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date])
 
-case $host_alias in
-*netware*)
-  PHP_OS="NetWare"
-  PHP_UNAME="NetWare"
-  AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[hardcode for each of the cross compiler host])
-  AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[hardcode for each of the cross compiler host])
-  ;;
-*)
-  PHP_UNAME=`uname -a | xargs`
-  AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
-  PHP_OS=`uname | xargs`
-  AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
-  ;;
-esac
+PHP_UNAME=`uname -a | xargs`
+AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
+PHP_OS=`uname | xargs`
+AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])
 
 PHP_SUBST_OLD(PHP_INSTALLED_SAPIS)
 
@@ -1490,16 +1457,7 @@ PHP_ADD_SOURCES(main/streams, streams.c cast.c memory.c filter.c \
        glob_wrapper.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
 
 PHP_ADD_SOURCES(/main, internal_functions.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, sapi)
-
-case $host_alias in
-  *netware*)
-    PHP_ADD_BUILD_DIR(win32)
-    PHP_ADD_BUILD_DIR(netware)
-    ;;
-  *)
-    PHP_ADD_SOURCES_X(/main, internal_functions_cli.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, PHP_BINARY_OBJS)
-    ;;
-esac
+PHP_ADD_SOURCES_X(/main, internal_functions_cli.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1, PHP_BINARY_OBJS)
 
 PHP_ADD_SOURCES(Zend, \
     zend_language_parser.c zend_language_scanner.c \
index 7b31a37a0b119ba1c6d007cc392c51eca2ead003..456820f48e9dfd5b4b35ec049c644ecfeabb3f66 100644 (file)
 #include <time.h>
 #ifdef PHP_WIN32
 #include <winsock2.h>
-#elif defined(NETWARE)
-#ifdef USE_WINSOCK    /* Modified to use Winsock (NOVSOCK2.H), at least for now */
-#include <novsock2.h>
-#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#endif
-#else
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
 #include "ftp.h"
 #include "ext/standard/fsock.h"
 
-/* Additional headers for NetWare */
-#if defined(NETWARE) && !defined(USE_WINSOCK)
-#include <sys/select.h>
-#endif
-
 /* sends an ftp command, returns true on success, false on error.
  * it sends the string "cmd args\r\n" if args is non-null, or
  * "cmd\r\n" if args is null
@@ -1283,7 +1269,7 @@ my_send(ftpbuf_t *ftp, php_socket_t s, void *buf, size_t len)
                        if (n == 0) {
                                _set_errno(ETIMEDOUT);
                        }
-#elif !(defined(NETWARE) && defined(USE_WINSOCK))
+#else
                        if (n == 0) {
                                errno = ETIMEDOUT;
                        }
@@ -1372,7 +1358,7 @@ my_recv(ftpbuf_t *ftp, php_socket_t s, void *buf, size_t len)
                if (n == 0) {
                        _set_errno(ETIMEDOUT);
                }
-#elif !(defined(NETWARE) && defined(USE_WINSOCK))
+#else
                if (n == 0) {
                        errno = ETIMEDOUT;
                }
@@ -1447,7 +1433,7 @@ data_available(ftpbuf_t *ftp, php_socket_t s)
                if (n == 0) {
                        _set_errno(ETIMEDOUT);
                }
-#elif !(defined(NETWARE) && defined(USE_WINSOCK))
+#else
                if (n == 0) {
                        errno = ETIMEDOUT;
                }
@@ -1471,7 +1457,7 @@ data_writeable(ftpbuf_t *ftp, php_socket_t s)
                if (n == 0) {
                        _set_errno(ETIMEDOUT);
                }
-#elif !(defined(NETWARE) && defined(USE_WINSOCK))
+#else
                if (n == 0) {
                        errno = ETIMEDOUT;
                }
@@ -1496,7 +1482,7 @@ my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrl
                if (n == 0) {
                        _set_errno(ETIMEDOUT);
                }
-#elif !(defined(NETWARE) && defined(USE_WINSOCK))
+#else
                if (n == 0) {
                        errno = ETIMEDOUT;
                }
index 8afd3e2b6d10de0fa4e83312586123047382f25f..f9d397ffa3f32d9a8e4b649479213d4b66a2f5dc 100644 (file)
 
 #include "php.h"
 
-#if defined(NETWARE) && defined(USE_WINSOCK)
-#include <novsock2.h>
-#endif
-
 #ifdef HAVE_FTP_SSL
 # include <openssl/ssl.h>
 #endif
index 528e981eaa8ddea00f4a6bb5289a5f1e86126b39..2df564ada819eaedd0c9f73087fbbd2e1dc2e6ae 100644 (file)
@@ -291,16 +291,12 @@ PHP_MINIT_FUNCTION(miconv)
        }
 #elif HAVE_GLIBC_ICONV
        version = (char *)gnu_get_libc_version();
-#elif defined(NETWARE)
-       version = "OS built-in";
 #endif
 
 #ifdef PHP_ICONV_IMPL
        REGISTER_STRING_CONSTANT("ICONV_IMPL", PHP_ICONV_IMPL, CONST_CS | CONST_PERSISTENT);
 #elif HAVE_LIBICONV
        REGISTER_STRING_CONSTANT("ICONV_IMPL", "libiconv", CONST_CS | CONST_PERSISTENT);
-#elif defined(NETWARE)
-       REGISTER_STRING_CONSTANT("ICONV_IMPL", "Novell", CONST_CS | CONST_PERSISTENT);
 #else
        REGISTER_STRING_CONSTANT("ICONV_IMPL", "unknown", CONST_CS | CONST_PERSISTENT);
 #endif
@@ -584,12 +580,7 @@ PHP_ICONV_API php_iconv_err_t php_iconv_string(const char *in_p, size_t in_len,
        out_buffer = zend_string_alloc(out_size, 0);
        out_p = ZSTR_VAL(out_buffer);
 
-#ifdef NETWARE
-       result = iconv(cd, (char **) &in_p, &in_size, (char **)
-#else
-       result = iconv(cd, (const char **) &in_p, &in_size, (char **)
-#endif
-                               &out_p, &out_left);
+       result = iconv(cd, (const char **) &in_p, &in_size, (char **) &out_p, &out_left);
 
        if (result == (size_t)(-1)) {
                zend_string_free(out_buffer);
index 0f82354ac9a0aaea23809d237e9f75e99b647142..6c1e4714e37aa30e001423808db9a9804f106058 100644 (file)
 #include "config.h"
 #endif
 
-/* Additional headers for NetWare */
-#if defined(NETWARE) && (NEW_LIBC)
-#include <sys/select.h>
-#include <sys/timeval.h>
-#endif
-
 #include "php.h"
 #include "php_ini.h"
 
index bd88ee4b63fdfd6ef300747c2e1c9c33b784bff8..85439636bdc02f9ead26668464c16ffcf0702a2e 100644 (file)
@@ -87,15 +87,7 @@ int foo(int x, ...) {
 }
 int main() { return foo(10, "", 3.14); }
         ], [php_cv_mbstring_stdarg=yes], [php_cv_mbstring_stdarg=no], [
-          dnl cross-compile needs something here
-          case $host_alias in
-          *netware*)
-          php_cv_mbstring_stdarg=yes
-          ;;
-          *)
           php_cv_mbstring_stdarg=no
-          ;;
-          esac
         ])
       ])
 
index 0597c8501dabebe4747a13048dccbeaa2b8c1534..415cb7c81c3bf0dc285de9f82b4c9897f41be198 100644 (file)
@@ -82,9 +82,6 @@ PHPAPI MYSQLND_DEBUG * mysqlnd_debug_init(const char * skip_functions[]);
 #if defined(__GNUC__) || defined(PHP_WIN32)
 #ifdef PHP_WIN32
 #include "win32/time.h"
-#elif defined(NETWARE)
-#include <sys/timeval.h>
-#include <sys/time.h>
 #else
 #include <sys/time.h>
 #endif
index 51e20be56ce167dba9471da8af306cf07512b9f9..ce2c11dcdaea1b7dfa3a8aca30fed58cdbd1c2c7 100644 (file)
@@ -575,7 +575,7 @@ static const func_info_t func_infos[] = {
 #ifdef HAVE_GETHOSTNAME
        F1("gethostname",                  MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
 #endif
-#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__)))
        F0("dns_check_record",             MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
        F0("checkdnsrr",                   MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
 # if defined(PHP_WIN32) || HAVE_FULL_DNS_FUNCS
@@ -689,7 +689,7 @@ static const func_info_t func_infos[] = {
        F0("socket_set_timeout",           MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
 #endif
        F1("socket_get_status",            MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
        F1("realpath",                     MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
 #endif
 #ifdef HAVE_FNMATCH
@@ -734,10 +734,8 @@ static const func_info_t func_infos[] = {
        F0("is_link",                      MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
        F1("stat",                         MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
        F1("lstat",                        MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
-#ifndef NETWARE
        F0("chown",                        MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
        F0("chgrp",                        MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
-#endif
 #if HAVE_LCHOWN
        F0("lchown",                       MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
 #endif
index 43d2308806bbb21dbfd606cec9cedb17ffaaa604..39f32bb08cc9c65f64aaa865ba0895b3f163f8b7 100644 (file)
@@ -60,7 +60,7 @@
 /* Common */
 #include <time.h>
 
-#if defined(NETWARE) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
+#if (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
 #define timezone _timezone     /* timezone is called _timezone in LibC */
 #endif
 
index 9a53a6edb9e026a7f32ea086c9925c4da7b65790..4bd81ae6213c891d80ed62e60bb5fe91b2441177 100644 (file)
 #undef X509_EXTENSIONS
 #endif
 
-#ifdef NETWARE
-#include <sys/select.h>
-#endif
-
 #ifndef OPENSSL_NO_SSL3
 #define HAVE_SSL3 1
 #endif
index a390a1fa5c061561b42b860828db37f29264e457..05bcbf9c3672137f810998c5b406d480686649c5 100644 (file)
@@ -446,7 +446,6 @@ static void phar_fancy_stat(zend_stat_t *stat_sb, int type, zval *return_value)
                "size", "atime", "mtime", "ctime", "blksize", "blocks"
        };
 
-#ifndef NETWARE
        if (type >= FS_IS_W && type <= FS_IS_X) {
                if(stat_sb->st_uid==getuid()) {
                        rmask=S_IRUSR;
@@ -476,7 +475,6 @@ static void phar_fancy_stat(zend_stat_t *stat_sb, int type, zval *return_value)
                        }
                }
        }
-#endif
 
        switch (type) {
        case FS_PERMS:
@@ -490,23 +488,11 @@ static void phar_fancy_stat(zend_stat_t *stat_sb, int type, zval *return_value)
        case FS_GROUP:
                RETURN_LONG((zend_long)stat_sb->st_gid);
        case FS_ATIME:
-#ifdef NETWARE
-               RETURN_LONG((zend_long)stat_sb->st_atime.tv_sec);
-#else
                RETURN_LONG((zend_long)stat_sb->st_atime);
-#endif
        case FS_MTIME:
-#ifdef NETWARE
-               RETURN_LONG((zend_long)stat_sb->st_mtime.tv_sec);
-#else
                RETURN_LONG((zend_long)stat_sb->st_mtime);
-#endif
        case FS_CTIME:
-#ifdef NETWARE
-               RETURN_LONG((zend_long)stat_sb->st_ctime.tv_sec);
-#else
                RETURN_LONG((zend_long)stat_sb->st_ctime);
-#endif
        case FS_TYPE:
                if (S_ISLNK(stat_sb->st_mode)) {
                        RETURN_STRING("link");
@@ -548,15 +534,9 @@ static void phar_fancy_stat(zend_stat_t *stat_sb, int type, zval *return_value)
                ZVAL_LONG(&stat_rdev, -1);
 #endif
                ZVAL_LONG(&stat_size, stat_sb->st_size);
-#ifdef NETWARE
-               ZVAL_LONG(&stat_atime, (stat_sb->st_atime).tv_sec);
-               ZVAL_LONG(&stat_mtime, (stat_sb->st_mtime).tv_sec);
-               ZVAL_LONG(&stat_ctime, (stat_sb->st_ctime).tv_sec);
-#else
                ZVAL_LONG(&stat_atime, stat_sb->st_atime);
                ZVAL_LONG(&stat_mtime, stat_sb->st_mtime);
                ZVAL_LONG(&stat_ctime, stat_sb->st_ctime);
-#endif
 #ifdef HAVE_ST_BLKSIZE
                ZVAL_LONG(&stat_blksize, stat_sb->st_blksize);
 #else
@@ -669,15 +649,9 @@ splitted:
                                sb.st_size = 0;
                                sb.st_mode = 0777;
                                sb.st_mode |= S_IFDIR; /* regular directory */
-#ifdef NETWARE
-                               sb.st_mtime.tv_sec = phar->max_timestamp;
-                               sb.st_atime.tv_sec = phar->max_timestamp;
-                               sb.st_ctime.tv_sec = phar->max_timestamp;
-#else
                                sb.st_mtime = phar->max_timestamp;
                                sb.st_atime = phar->max_timestamp;
                                sb.st_ctime = phar->max_timestamp;
-#endif
                                goto statme_baby;
                        } else {
                                char *save;
@@ -715,15 +689,9 @@ notfound:
                                        sb.st_size = 0;
                                        sb.st_mode = 0777;
                                        sb.st_mode |= S_IFDIR; /* regular directory */
-#ifdef NETWARE
-                                       sb.st_mtime.tv_sec = phar->max_timestamp;
-                                       sb.st_atime.tv_sec = phar->max_timestamp;
-                                       sb.st_ctime.tv_sec = phar->max_timestamp;
-#else
                                        sb.st_mtime = phar->max_timestamp;
                                        sb.st_atime = phar->max_timestamp;
                                        sb.st_ctime = phar->max_timestamp;
-#endif
                                        goto statme_baby;
                                }
                                PHAR_G(cwd) = save;
@@ -747,15 +715,9 @@ stat_entry:
                                        sb.st_mode |= S_IFREG; /* regular file */
                                }
                                /* timestamp is just the timestamp when this was added to the phar */
-#ifdef NETWARE
-                               sb.st_mtime.tv_sec = data->timestamp;
-                               sb.st_atime.tv_sec = data->timestamp;
-                               sb.st_ctime.tv_sec = data->timestamp;
-#else
                                sb.st_mtime = data->timestamp;
                                sb.st_atime = data->timestamp;
                                sb.st_ctime = data->timestamp;
-#endif
                        } else {
                                sb.st_size = 0;
                                sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
@@ -764,15 +726,9 @@ stat_entry:
                                        sb.st_mode |= S_IFLNK;
                                }
                                /* timestamp is just the timestamp when this was added to the phar */
-#ifdef NETWARE
-                               sb.st_mtime.tv_sec = data->timestamp;
-                               sb.st_atime.tv_sec = data->timestamp;
-                               sb.st_ctime.tv_sec = data->timestamp;
-#else
                                sb.st_mtime = data->timestamp;
                                sb.st_atime = data->timestamp;
                                sb.st_ctime = data->timestamp;
-#endif
                        }
 
 statme_baby:
index 5706c2095244b95b6991a8543d7237c7adf9f9a5..27554c17850d28e87cfa4f218a6a716cebf8ff33 100644 (file)
@@ -491,42 +491,24 @@ void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_stat
                ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
                ssb->sb.st_mode |= S_IFREG; /* regular file */
                /* timestamp is just the timestamp when this was added to the phar */
-#ifdef NETWARE
-               ssb->sb.st_mtime.tv_sec = data->timestamp;
-               ssb->sb.st_atime.tv_sec = data->timestamp;
-               ssb->sb.st_ctime.tv_sec = data->timestamp;
-#else
                ssb->sb.st_mtime = data->timestamp;
                ssb->sb.st_atime = data->timestamp;
                ssb->sb.st_ctime = data->timestamp;
-#endif
        } else if (!is_temp_dir && data->is_dir) {
                ssb->sb.st_size = 0;
                ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
                ssb->sb.st_mode |= S_IFDIR; /* regular directory */
                /* timestamp is just the timestamp when this was added to the phar */
-#ifdef NETWARE
-               ssb->sb.st_mtime.tv_sec = data->timestamp;
-               ssb->sb.st_atime.tv_sec = data->timestamp;
-               ssb->sb.st_ctime.tv_sec = data->timestamp;
-#else
                ssb->sb.st_mtime = data->timestamp;
                ssb->sb.st_atime = data->timestamp;
                ssb->sb.st_ctime = data->timestamp;
-#endif
        } else {
                ssb->sb.st_size = 0;
                ssb->sb.st_mode = 0777;
                ssb->sb.st_mode |= S_IFDIR; /* regular directory */
-#ifdef NETWARE
-               ssb->sb.st_mtime.tv_sec = phar->max_timestamp;
-               ssb->sb.st_atime.tv_sec = phar->max_timestamp;
-               ssb->sb.st_ctime.tv_sec = phar->max_timestamp;
-#else
                ssb->sb.st_mtime = phar->max_timestamp;
                ssb->sb.st_atime = phar->max_timestamp;
                ssb->sb.st_ctime = phar->max_timestamp;
-#endif
        }
        if (!phar->is_writeable) {
                ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777);
index cabfa9e7df8318517a195fb6019059a362b2c96f..616abe093760e3ca5ba4dd493bda076a23ea1e65 100644 (file)
 #include <errno.h>
 #include <process.h>
 #include "win32/time.h"
-#elif defined(NETWARE)
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#else
-#include <sys/socket.h>
-#endif
-#include <errno.h>
-#include <sys/timeval.h>
 #else
 #include <sys/socket.h>
 #include <netinet/in.h>
index c6a3f865cb0e605ea6a234429a6773e63f460b65..8119f6f4f72e718fb4fae6a433481ed946f534bc 100644 (file)
@@ -2896,7 +2896,7 @@ static xmlNodePtr to_xml_datetime_ex(encodeTypePtr type, zval *data, char *forma
 #ifdef HAVE_TM_GMTOFF
                snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", (ta->tm_gmtoff < 0) ? '-' : '+', abs(ta->tm_gmtoff / 3600), abs( (ta->tm_gmtoff % 3600) / 60 ));
 #else
-# if defined(__CYGWIN__) || defined(NETWARE) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
+# if defined(__CYGWIN__) || (defined(PHP_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1900)
                snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", ((ta->tm_isdst ? _timezone - 3600:_timezone)>0)?'-':'+', abs((ta->tm_isdst ? _timezone - 3600 : _timezone) / 3600), abs(((ta->tm_isdst ? _timezone - 3600 : _timezone) % 3600) / 60));
 # else
                snprintf(tzbuf, sizeof(tzbuf), "%c%02d:%02d", ((ta->tm_isdst ? timezone - 3600:timezone)>0)?'-':'+', abs((ta->tm_isdst ? timezone - 3600 : timezone) / 3600), abs(((ta->tm_isdst ? timezone - 3600 : timezone) % 3600) / 60));
index 0c09fbe6c20d30f36cb2daf53572435bc123b5dd..374371803806046bf1c35cd725346953d1a0c9fd 100644 (file)
@@ -391,7 +391,7 @@ void spl_filesystem_info_set_filename(spl_filesystem_object *intern, char *path,
        }
 
        p1 = strrchr(intern->file_name, '/');
-#if defined(PHP_WIN32) || defined(NETWARE)
+#if defined(PHP_WIN32)
        p2 = strrchr(intern->file_name, '\\');
 #else
        p2 = 0;
@@ -1261,7 +1261,7 @@ SPL_METHOD(SplFileInfo, getLinkTarget)
 }
 /* }}} */
 
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
 /* {{{ proto string SplFileInfo::getRealPath()
    Return the resolved path */
 SPL_METHOD(SplFileInfo, getRealPath)
@@ -1929,7 +1929,7 @@ static const zend_function_entry spl_SplFileInfo_functions[] = {
        SPL_ME(SplFileInfo,       isDir,         arginfo_splfileinfo_void, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       isLink,        arginfo_splfileinfo_void, ZEND_ACC_PUBLIC)
        SPL_ME(SplFileInfo,       getLinkTarget, arginfo_splfileinfo_void, ZEND_ACC_PUBLIC)
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
        SPL_ME(SplFileInfo,       getRealPath,   arginfo_splfileinfo_void, ZEND_ACC_PUBLIC)
 #endif
        SPL_ME(SplFileInfo,       getFileInfo,   arginfo_info_optinalFileClass, ZEND_ACC_PUBLIC)
@@ -2288,7 +2288,7 @@ SPL_METHOD(SplFileObject, __construct)
                tmp_path = estrndup(intern->u.file.stream->orig_path, tmp_path_len);
 
                p1 = strrchr(tmp_path, '/');
-#if defined(PHP_WIN32) || defined(NETWARE)
+#if defined(PHP_WIN32)
                p2 = strrchr(tmp_path, '\\');
 #else
                p2 = 0;
index ba616dff2325d1fc776c1532e5101ef3d2aefaa3..dde29fbb69926faed23cad364fd2585f149166de 100644 (file)
@@ -62,10 +62,6 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
 #include <sys/stat.h>
 #endif
 
-#ifdef NETWARE
-#include <netinet/in.h>
-#endif
-
 #ifndef PHP_WIN32
 # include <netdb.h>
 #else
@@ -965,7 +961,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_gethostname, 0)
 ZEND_END_ARG_INFO()
 #endif
 
-#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
 ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_check_record, 0, 0, 1)
        ZEND_ARG_INFO(0, host)
        ZEND_ARG_INFO(0, type)
@@ -987,7 +983,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_dns_get_mx, 0, 0, 2)
 ZEND_END_ARG_INFO()
 # endif
 
-#endif /* defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE))) */
+#endif /* defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__)) */
 /* }}} */
 
 /* {{{ exec.c */
@@ -1206,7 +1202,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_fgetcsv, 0, 0, 1)
        ZEND_ARG_INFO(0, escape)
 ZEND_END_ARG_INFO()
 
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
 ZEND_BEGIN_ARG_INFO(arginfo_realpath, 0)
        ZEND_ARG_INFO(0, path)
 ZEND_END_ARG_INFO()
@@ -1232,7 +1228,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_disk_free_space, 0)
        ZEND_ARG_INFO(0, path)
 ZEND_END_ARG_INFO()
 
-#ifndef NETWARE
 ZEND_BEGIN_ARG_INFO(arginfo_chgrp, 0)
        ZEND_ARG_INFO(0, filename)
        ZEND_ARG_INFO(0, group)
@@ -1242,7 +1237,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_chown, 0)
        ZEND_ARG_INFO(0, filename)
        ZEND_ARG_INFO(0, user)
 ZEND_END_ARG_INFO()
-#endif
 
 #if HAVE_LCHOWN
 ZEND_BEGIN_ARG_INFO(arginfo_lchgrp, 0)
@@ -3063,7 +3057,7 @@ const zend_function_entry basic_functions[] = { /* {{{ */
        PHP_FE(gethostname,                                                                                                     arginfo_gethostname)
 #endif
 
-#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
 
        PHP_FE(dns_check_record,                                                                                                arginfo_dns_check_record)
        PHP_FALIAS(checkdnsrr,                  dns_check_record,                                               arginfo_dns_check_record)
@@ -3192,7 +3186,7 @@ const zend_function_entry basic_functions[] = { /* {{{ */
 
        PHP_FALIAS(socket_get_status, stream_get_meta_data,                                             arginfo_stream_get_meta_data)
 
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
        PHP_FE(realpath,                                                                                                                arginfo_realpath)
 #endif
 
@@ -3251,10 +3245,8 @@ const zend_function_entry basic_functions[] = { /* {{{ */
        PHP_FE(is_link,                                                                                                                 arginfo_is_link)
        PHP_NAMED_FE(stat,                              php_if_stat,                                                    arginfo_stat)
        PHP_NAMED_FE(lstat,                             php_if_lstat,                                                   arginfo_lstat)
-#ifndef NETWARE
        PHP_FE(chown,                                                                                                                   arginfo_chown)
        PHP_FE(chgrp,                                                                                                                   arginfo_chgrp)
-#endif
 #if HAVE_LCHOWN
        PHP_FE(lchown,                                                                                                                  arginfo_lchown)
 #endif
@@ -3705,7 +3697,7 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
        php_register_url_stream_wrapper("http", &php_stream_http_wrapper);
        php_register_url_stream_wrapper("ftp", &php_stream_ftp_wrapper);
 
-#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
 # if defined(PHP_WIN32) || HAVE_FULL_DNS_FUNCS
        BASIC_MINIT_SUBMODULE(dns)
 # endif
index 8908fee5b6125b23e50959c8bfba4891e62df883..8ff8674fc23e82eb0d0540b99472e07e91d8aafd 100644 (file)
@@ -40,9 +40,6 @@
 #include "win32/param.h"
 #include "win32/winutil.h"
 #define GET_DL_ERROR() php_win_err()
-#elif defined(NETWARE)
-#include <sys/param.h>
-#define GET_DL_ERROR() dlerror()
 #else
 #include <sys/param.h>
 #define GET_DL_ERROR() DL_ERROR()
index de40649e696ce3a339ac9dc4900d0cd9766923ef..f92015eee90d3e93a801e93d6381d89923825166 100644 (file)
@@ -33,7 +33,7 @@
 # include <winsock2.h>
 # include <windows.h>
 # include <Ws2tcpip.h>
-#else  /* This holds good for NetWare too, both for Winsock and Berkeley sockets */
+#else
 #include <netinet/in.h>
 #if HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
 #endif
 
-/* Borrowed from SYS/SOCKET.H */
-#if defined(NETWARE) && defined(USE_WINSOCK)
-#define AF_INET 2   /* internetwork: UDP, TCP, etc. */
-#endif
-
 #ifndef MAXHOSTNAMELEN
 #define MAXHOSTNAMELEN 255
 #endif
@@ -305,7 +300,7 @@ static zend_string *php_gethostbyname(char *name)
 #endif /* HAVE_FULL_DNS_FUNCS || defined(PHP_WIN32) */
 
 /* Note: These functions are defined in ext/standard/dns_win32.c for Windows! */
-#if !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
 
 #ifndef HFIXEDSZ
 #define HFIXEDSZ        12      /* fixed data in header <arpa/nameser.h> */
@@ -1085,7 +1080,7 @@ PHP_FUNCTION(dns_get_mx)
 }
 /* }}} */
 #endif /* HAVE_FULL_DNS_FUNCS */
-#endif /* !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE))) */
+#endif /* !defined(PHP_WIN32) && (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__)) */
 
 #if HAVE_FULL_DNS_FUNCS || defined(PHP_WIN32)
 PHP_MINIT_FUNCTION(dns) {
index c75d2d3fa0d78639ee6ce480061626215f579a3a..f5f489d43f9a569e98d04bdd43b0c09199b84f88 100644 (file)
 # if HAVE_SYS_SELECT_H
 #  include <sys/select.h>
 # endif
-# if defined(NETWARE) && defined(USE_WINSOCK)
-#  include <novsock2.h>
-# else
-#  include <sys/socket.h>
-#  include <netinet/in.h>
-#  include <netdb.h>
-# endif
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <netdb.h>
 # if HAVE_ARPA_INET_H
 #  include <arpa/inet.h>
 # endif
@@ -2293,7 +2289,7 @@ out:
 }
 /* }}} */
 
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
 /* {{{ proto string realpath(string path)
    Return the resolved path */
 PHP_FUNCTION(realpath)
index a9b96d6b38ec62dc3a720065db777fe191f65531..9d6a9e8c163860823b3d99476ec92a148b0a11ba 100644 (file)
@@ -62,7 +62,7 @@ PHP_FUNCTION(get_meta_tags);
 PHP_FUNCTION(flock);
 PHP_FUNCTION(fd_set);
 PHP_FUNCTION(fd_isset);
-#if (!defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
 PHP_FUNCTION(realpath);
 #endif
 #ifdef HAVE_FNMATCH
index 439e1741ad08c9073ee496e18fb0d22bd1f1b902..370805a27e7eb80a4b916f2a00e6bebe5362e47f 100644 (file)
@@ -261,11 +261,7 @@ static int php_disk_free_space(char *path, double *space) /* {{{ */
                php_error_docref(NULL, E_WARNING, "%s", strerror(errno));
                return FAILURE;
        }
-#ifdef NETWARE
-       bytesfree = (((double)buf.f_bsize) * ((double)buf.f_bfree));
-#else
        bytesfree = (((double)buf.f_bsize) * ((double)buf.f_bavail));
-#endif
 #endif
 
        *space = bytesfree;
@@ -298,7 +294,7 @@ PHP_FUNCTION(disk_free_space)
 }
 /* }}} */
 
-#if !defined(WINDOWS) && !defined(NETWARE)
+#ifndef PHP_WIN32
 PHPAPI int php_get_gid_by_name(const char *name, gid_t *gid)
 {
 #if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX)
@@ -411,7 +407,6 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */
 }
 /* }}} */
 
-#ifndef NETWARE
 /* {{{ proto bool chgrp(string filename, mixed group)
    Change file group */
 PHP_FUNCTION(chgrp)
@@ -433,9 +428,8 @@ PHP_FUNCTION(lchgrp)
 }
 #endif
 /* }}} */
-#endif /* !NETWARE */
 
-#if !defined(WINDOWS) && !defined(NETWARE)
+#ifndef PHP_WIN32
 PHPAPI uid_t php_get_uid_by_name(const char *name, uid_t *uid)
 {
 #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R)
@@ -550,7 +544,6 @@ static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */
 /* }}} */
 
 
-#ifndef NETWARE
 /* {{{ proto bool chown (string filename, mixed user)
    Change file owner */
 PHP_FUNCTION(chown)
@@ -573,7 +566,6 @@ PHP_FUNCTION(lchown)
 }
 #endif
 /* }}} */
-#endif /* !NETWARE */
 
 /* {{{ proto bool chmod(string filename, int mode)
    Change file mode */
@@ -826,8 +818,6 @@ PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int typ
 
        stat_sb = &ssb.sb;
 
-
-#ifndef NETWARE
        if (type >= FS_IS_W && type <= FS_IS_X) {
                if(ssb.sb.st_uid==getuid()) {
                        rmask=S_IRUSR;
@@ -857,12 +847,9 @@ PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int typ
                        }
                }
        }
-#endif
 
-#ifndef NETWARE
        if (IS_ABLE_CHECK(type) && getuid() == 0) {
-               /* root has special perms on plain_wrapper
-                  But we don't know about root under Netware */
+               /* root has special perms on plain_wrapper */
                if (wrapper == &php_plain_files_wrapper) {
                        if (type == FS_IS_X) {
                                xmask = S_IXROOT;
@@ -871,7 +858,6 @@ PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int typ
                        }
                }
        }
-#endif
 
        switch (type) {
        case FS_PERMS:
index c2c795ac8d694fc1b80b1d35df94694c3e7b4ba6..0a9ea4770d7c291e2d72cbdd8e2cac968c9309f6 100644 (file)
 #include "config.w32.h"
 #endif
 
-#ifdef NETWARE
-#include <netinet/in.h>
-#endif
-
 #ifndef HAVE_FLOCK
 PHPAPI int flock(int fd, int operation)
 {
index a5e00a6df97d3a4402f2e593361475182caa6aa2..5e156c5cf4c7c8c836c935ae049164dc042b2cba 100644 (file)
@@ -49,8 +49,6 @@
 
 #ifdef PHP_WIN32
 #include <winsock2.h>
-#elif defined(NETWARE) && defined(USE_WINSOCK)
-#include <novsock2.h>
 #else
 #include <netinet/in.h>
 #include <netdb.h>
@@ -59,7 +57,7 @@
 #endif
 #endif
 
-#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+#if defined(PHP_WIN32) || defined(__riscos__)
 #undef AF_UNIX
 #endif
 
index 9c10c4907ba1b3c3b9ff46c980332910a6a1ef43..c2d6c51a5686ad9e54b29c0035d03b811a8ee45b 100644 (file)
@@ -52,8 +52,6 @@
 
 #ifdef PHP_WIN32
 #include <winsock2.h>
-#elif defined(NETWARE) && defined(USE_WINSOCK)
-#include <novsock2.h>
 #else
 #include <netinet/in.h>
 #include <netdb.h>
@@ -62,7 +60,7 @@
 #endif
 #endif
 
-#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+#if defined(PHP_WIN32) || defined(__riscos__)
 #undef AF_UNIX
 #endif
 
index b62679528c39cecda20402b5e477dc5310adb7fb..38c537c119416139c34adb5f9f85d37992bb5230 100644 (file)
@@ -733,30 +733,6 @@ PHPAPI zend_string *php_get_uname(char mode)
        if (uname((struct utsname *)&buf) == -1) {
                php_uname = PHP_UNAME;
        } else {
-#ifdef NETWARE
-               if (mode == 's') {
-                       php_uname = buf.sysname;
-               } else if (mode == 'r') {
-                       snprintf(tmp_uname, sizeof(tmp_uname), "%d.%d.%d",
-                                        buf.netware_major, buf.netware_minor, buf.netware_revision);
-                       php_uname = tmp_uname;
-               } else if (mode == 'n') {
-                       php_uname = buf.servername;
-               } else if (mode == 'v') {
-                       snprintf(tmp_uname, sizeof(tmp_uname), "libc-%d.%d.%d #%d",
-                                        buf.libmajor, buf.libminor, buf.librevision, buf.libthreshold);
-                       php_uname = tmp_uname;
-               } else if (mode == 'm') {
-                       php_uname = buf.machine;
-               } else { /* assume mode == 'a' */
-                       snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %d.%d.%d libc-%d.%d.%d #%d %s",
-                                        buf.sysname, buf.servername,
-                                        buf.netware_major, buf.netware_minor, buf.netware_revision,
-                                        buf.libmajor, buf.libminor, buf.librevision, buf.libthreshold,
-                                        buf.machine);
-                       php_uname = tmp_uname;
-               }
-#else
                if (mode == 's') {
                        php_uname = buf.sysname;
                } else if (mode == 'r') {
@@ -773,7 +749,6 @@ PHPAPI zend_string *php_get_uname(char mode)
                                         buf.machine);
                        php_uname = tmp_uname;
                }
-#endif /* NETWARE */
        }
 #else
        php_uname = PHP_UNAME;
index 8d70e5a47b14865c37f54e09095a0f2b762083e4..ad0110281e24524a25969225ab5ec25d9d68c8bc 100644 (file)
 #include "win32/sendmail.h"
 #endif
 
-#ifdef NETWARE
-#define EX_OK           0       /* successful termination */
-#define EX_TEMPFAIL     75      /* temp failure; user is invited to retry */
-#endif
-
 #define SKIP_LONG_HEADER_SEP(str, pos)                                                                                                                                 \
        if (str[pos] == '\r' && str[pos + 1] == '\n' && (str[pos + 2] == ' ' || str[pos + 2] == '\t')) {        \
                pos += 2;                                                                                                                                                                               \
@@ -468,7 +463,7 @@ static int php_mail_detect_multiple_crlf(char *hdr) {
  */
 PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd)
 {
-#if (defined PHP_WIN32 || defined NETWARE)
+#ifdef PHP_WIN32 
        int tsm_err;
        char *tsm_errmsg = NULL;
 #endif
@@ -539,7 +534,7 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
        }
 
        if (!sendmail_path) {
-#if (defined PHP_WIN32 || defined NETWARE)
+#ifdef PHP_WIN32
                /* handle old style win smtp sending */
                if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, hdr, subject, to, message, NULL, NULL, NULL) == FAILURE) {
                        if (tsm_errmsg) {
index 15eedaf7bf5c8e9dd262e7e7f2505b44257fe664..2314132f58ddf82a6ed119b14d2b327636dcbb5a 100644 (file)
@@ -277,7 +277,7 @@ static double php_log1p(double x)
 */
 static double php_expm1(double x)
 {
-#if !defined(PHP_WIN32) && !defined(NETWARE)
+#ifndef PHP_WIN32
        return(expm1(x));
 #else
        return(exp(x) - 1);
index 9793dcd701c8704427a906fd1b5d6dd9a765dcd1..9a75038fa85727dda088487da2c55b02fa4fb99d 100644 (file)
@@ -26,9 +26,6 @@
 #ifdef PHP_WIN32
 #include "win32/time.h"
 #include "win32/getrusage.h"
-#elif defined(NETWARE)
-#include <sys/timeval.h>
-#include <sys/time.h>
 #else
 #include <sys/time.h>
 #endif
index 1252f4286f83a1c352abfaad3a4db51e295e333c..1c13f0be96fadd518f41ab77a5000eba995f77c1 100644 (file)
 #ifdef PHP_WIN32
 #define O_RDONLY _O_RDONLY
 #include "win32/param.h"
-#elif defined(NETWARE)
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#else
-#include <sys/socket.h>
-#endif
-#include <sys/param.h>
 #else
 #include <sys/param.h>
 #endif
index dfd43a40dc79a90707ab108e194524b0aeb186a4..6e3728e861494de51eaf52639f5677907c1b6275 100644 (file)
@@ -59,7 +59,7 @@ PHP_FUNCTION(gethostbynamel);
 PHP_FUNCTION(gethostname);
 #endif
 
-#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE)))
+#if defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__))
 PHP_FUNCTION(dns_check_record);
 
 # if defined(PHP_WIN32) || HAVE_FULL_DNS_FUNCS
@@ -68,7 +68,7 @@ PHP_FUNCTION(dns_get_record);
 PHP_MINIT_FUNCTION(dns);
 # endif
 
-#endif /* defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !(defined(__BEOS__) || defined(NETWARE))) */
+#endif /* defined(PHP_WIN32) || (HAVE_DNS_SEARCH_FUNC && !defined(__BEOS__)) */
 
 #ifndef INT16SZ
 #define INT16SZ                2
index 95803c9bbd4ac41afbf6788003f1fb9e6997141a..2f178d9d99dac615c9c85780904db8c787e6c8a4 100644 (file)
 #include "SAPI.h"
 #include "main/php_network.h"
 
-#ifdef NETWARE
-#include <proc.h>
-#include <library.h>
-#endif
-
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
@@ -346,11 +341,8 @@ PHP_FUNCTION(proc_get_status)
                if (WIFSIGNALED(wstatus)) {
                        running = 0;
                        signaled = 1;
-#ifdef NETWARE
-                       termsig = WIFTERMSIG(wstatus);
-#else
+
                        termsig = WTERMSIG(wstatus);
-#endif
                }
                if (WIFSTOPPED(wstatus)) {
                        stopped = 1;
@@ -437,13 +429,6 @@ PHP_FUNCTION(proc_open)
        char cur_cwd[MAXPATHLEN];
        wchar_t *cmdw = NULL, *cwdw = NULL, *envpw = NULL;
        size_t tmp_len;
-#endif
-#ifdef NETWARE
-       char** child_argv = NULL;
-       char* command_dup = NULL;
-       char* orig_cwd = NULL;
-       int command_num_args = 0;
-       wiring_t channel;
 #endif
        php_process_id_t child;
        struct php_process_handle *proc;
@@ -797,51 +782,6 @@ PHP_FUNCTION(proc_open)
        childHandle = pi.hProcess;
        child       = pi.dwProcessId;
        CloseHandle(pi.hThread);
-
-#elif defined(NETWARE)
-       if (cwd) {
-               orig_cwd = getcwd(NULL, PATH_MAX);
-               chdir2(cwd);
-       }
-       channel.infd = descriptors[0].childend;
-       channel.outfd = descriptors[1].childend;
-       channel.errfd = -1;
-       /* Duplicate the command as processing downwards will modify it*/
-       command_dup = strdup(command);
-       if (!command_dup) {
-               goto exit_fail;
-       }
-       /* get a number of args */
-       construct_argc_argv(command_dup, NULL, &command_num_args, NULL);
-       child_argv = (char**) malloc((command_num_args + 1) * sizeof(char*));
-       if(!child_argv) {
-               free(command_dup);
-               if (cwd && orig_cwd) {
-                       chdir2(orig_cwd);
-                       free(orig_cwd);
-               }
-       }
-       /* fill the child arg vector */
-       construct_argc_argv(command_dup, NULL, &command_num_args, child_argv);
-       child_argv[command_num_args] = NULL;
-       child = procve(child_argv[0], PROC_DETACHED|PROC_INHERIT_CWD, NULL, &channel, NULL, NULL, 0, NULL, (const char**)child_argv);
-       free(child_argv);
-       free(command_dup);
-       if (cwd && orig_cwd) {
-               chdir2(orig_cwd);
-               free(orig_cwd);
-       }
-       if (child < 0) {
-               /* failed to fork() */
-               /* clean up all the descriptors */
-               for (i = 0; i < ndesc; i++) {
-                       close(descriptors[i].childend);
-                       if (descriptors[i].parentend)
-                               close(descriptors[i].parentend);
-               }
-               php_error_docref(NULL, E_WARNING, "procve failed - %s", strerror(errno));
-               goto exit_fail;
-       }
 #elif HAVE_FORK
        /* the unix way */
        child = fork();
index 4389e1070266fe88dec58d5cd5ff381dae465907..ec4b021ca2d5f7ab3473289283f6e57d431ad1f9 100644 (file)
@@ -1537,7 +1537,7 @@ PHPAPI zend_string *php_basename(const char *s, size_t len, char *suffix, size_t
                        case 0:
                                goto quit_loop;
                        case 1:
-#if defined(PHP_WIN32) || defined(NETWARE)
+#if defined(PHP_WIN32)
                                if (*c == '/' || *c == '\\') {
 #else
                                if (*c == '/') {
@@ -1546,7 +1546,7 @@ PHPAPI zend_string *php_basename(const char *s, size_t len, char *suffix, size_t
                                                state = 0;
                                                cend = c;
                                        }
-#if defined(PHP_WIN32) || defined(NETWARE)
+#if defined(PHP_WIN32)
                                /* Catch relative paths in c:file.txt style. They're not to confuse
                                   with the NTFS streams. This part ensures also, that no drive
                                   letter traversing happens. */
index b554c380398c08fc9cc1a0df6244cd897d200f53..93dad84746bcd48eb5c23ed3bb45a34cbaff4fca 100644 (file)
@@ -55,8 +55,6 @@
 
 #ifdef PHP_WIN32
 #include <winsock2.h>
-#elif defined(NETWARE) && defined(USE_WINSOCK)
-#include <novsock2.h>
 #else
 #include <netinet/in.h>
 #include <netdb.h>
@@ -65,7 +63,7 @@
 #endif
 #endif
 
-#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+#if defined(PHP_WIN32) || defined(__riscos__)
 #undef AF_UNIX
 #endif
 
@@ -184,7 +182,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                }
 #endif
 
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
                path_file = strrchr(path_tmp, DEFAULT_SLASH);
                if (!path_file) {
                        path_file = strrchr(path_tmp, '/');
@@ -197,7 +195,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                        return -1;
                } else {
                        path_len = path_file - path_tmp + 1;
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
                        if (path_len > 1 && path_tmp[path_len - 2] == ':') {
                                if (path_len != 3) {
                                        return -1;
@@ -219,7 +217,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                int basedir_len = (int)strlen(basedir);
                /* Handler for basedirs that end with a / */
                resolved_basedir_len = (int)strlen(resolved_basedir);
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
                if (basedir[basedir_len - 1] == PHP_DIR_SEPARATOR || basedir[basedir_len - 1] == '/') {
 #else
                if (basedir[basedir_len - 1] == PHP_DIR_SEPARATOR) {
@@ -242,7 +240,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                }
 
                /* Check the path */
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
                if (strncasecmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
 #else
                if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
@@ -257,7 +255,7 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
                } else {
                        /* /openbasedir/ and /openbasedir are the same directory */
                        if (resolved_basedir_len == (resolved_name_len + 1) && resolved_basedir[resolved_basedir_len - 1] == PHP_DIR_SEPARATOR) {
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
                                if (strncasecmp(resolved_basedir, resolved_name, resolved_name_len) == 0) {
 #else
                                if (strncmp(resolved_basedir, resolved_name, resolved_name_len) == 0) {
index 49a68bd887a693935d0b3986af4e8aa3819695b1..d74618324606ac2afda3f2d88c7558636977dc09 100644 (file)
 #include "win32/php_win32_globals.h"
 #include "win32/winutil.h"
 #include <process.h>
-#elif defined(NETWARE)
-#include <sys/timeval.h>
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#endif
 #endif
 #if HAVE_SYS_TIME_H
 #include <sys/time.h>
@@ -505,8 +500,8 @@ PHP_INI_MH(OnChangeBrowscap);
  * PHP_INCLUDE_PATH
  */
 
- /* Windows and Netware use the internal mail */
-#if defined(PHP_WIN32) || defined(NETWARE)
+ /* Windows use the internal mail */
+#if defined(PHP_WIN32)
 # define DEFAULT_SENDMAIL_PATH NULL
 #elif defined(PHP_PROG_SENDMAIL)
 # define DEFAULT_SENDMAIL_PATH PHP_PROG_SENDMAIL " -t -i "
@@ -2055,7 +2050,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
        char *php_os;
        zend_module_entry *module;
 
-#if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
+#ifdef PHP_WIN32
        WORD wVersionRequested = MAKEWORD(2, 0);
        WSADATA wsaData;
 #endif
@@ -2130,7 +2125,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
        tzset();
 #endif
 
-#if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
+#ifdef PHP_WIN32
        /* start up winsock services */
        if (WSAStartup(wVersionRequested, &wsaData) != 0) {
                php_printf("\nwinsock.dll unusable. %d\n", WSAGetLastError());
@@ -2398,7 +2393,7 @@ void php_module_shutdown(void)
 
        zend_shutdown();
 
-#if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
+#ifdef PHP_WIN32
        /*close winsock */
        WSACleanup();
 #endif
index aedff7e2072aacd106019aaf5421c77d36a862fd..f2143b160064b6e39782fda66bc94be433989d19 100644 (file)
@@ -32,9 +32,6 @@
 # include "win32/inet.h"
 # define O_RDONLY _O_RDONLY
 # include "win32/param.h"
-#elif defined(NETWARE)
-#include <sys/timeval.h>
-#include <sys/param.h>
 #else
 #include <sys/param.h>
 #endif
 #include <sys/poll.h>
 #endif
 
-#if defined(NETWARE)
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#else
-#include <arpa/inet.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <sys/select.h>
-#include <sys/socket.h>
-#endif
-#elif !defined(PHP_WIN32)
+
+#ifndef PHP_WIN32
 #include <netinet/in.h>
 #include <netdb.h>
 #if HAVE_ARPA_INET_H
@@ -79,7 +67,7 @@ int inet_aton(const char *, struct in_addr *);
 
 #include "php_network.h"
 
-#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+#if defined(PHP_WIN32) || defined(__riscos__)
 #undef AF_UNIX
 #endif
 
index 32ab59386fbaf2b6142672b5c0ad060e38f256a1..4ed2b9d8818214c1eb00d28aa1af52a4954a74b7 100644 (file)
 #      define PHP_EOL "\n"
 #endif
 
-#ifdef NETWARE
-/* For php_get_uname() function */
-#define PHP_UNAME  "NetWare"
-#define PHP_OS      PHP_UNAME
-#endif
-
 #if HAVE_ASSERT_H
 #if PHP_DEBUG
 #undef NDEBUG
index d84ba18ed90ad55127038cf80438a4ea028f6a6e..4ee29224e7c1a7628f10c98334f35d7070abf65d 100644 (file)
 
 #include "php.h"
 
-#ifdef NETWARE
-/*
-As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg
-*/
-#undef optarg
-#undef optind
-#endif
-
 /* Define structure for one recognized option (both single char and long name).
  * If short_open is '-' this is the last option. */
 typedef struct _opt_struct {
index 7b0f88762d767569266d6bc3480d3a77aed9d2cb..7cc4e5fa6b17297ca482f6b77d181e0a4c0b079c 100644 (file)
 #define O_RDONLY _O_RDONLY
 #include "win32/param.h"
 #include "win32/winutil.h"
-#elif defined(NETWARE)
-#ifdef USE_WINSOCK
-#include <novsock2.h>
-#else
-#include <sys/socket.h>
-#endif
-#include <sys/param.h>
 #else
 #include <sys/param.h>
 #include <sys/socket.h>
index 50f6de82bf0b2b73fe9173d46115f3c940316385..90f9e63e81d67f6fe5cbd25a7485e4d200437c1b 100644 (file)
@@ -38,9 +38,7 @@
 #endif
 
 #include <stdlib.h>
-#ifndef NETWARE
 #include <search.h>
-#endif
 
 #endif /* HAVE_SCANDIR */
 
index d542e336e3d48b001f261285cf05e0378d4f42a9..bae22dd6ab90bf9e8b3ca02c2f9ae6dbdc6730fb 100644 (file)
@@ -116,7 +116,7 @@ static void php_glob_stream_path_split(glob_s_t *pglob, const char *path, int ge
        if ((pos = strrchr(path, '/')) != NULL) {
                path = pos+1;
        }
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
        if ((pos = strrchr(path, '\\')) != NULL) {
                path = pos+1;
        }
@@ -240,7 +240,7 @@ static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, const cha
        if ((tmp = strrchr(pos, '/')) != NULL) {
                pos = tmp+1;
        }
-#if defined(PHP_WIN32) || defined(NETWARE)
+#ifdef PHP_WIN32
        if ((tmp = strrchr(pos, '\\')) != NULL) {
                pos = tmp+1;
        }
index a1af61e3f0b4cc5f97ba94ade212288150b92a4c..39ae8eb6035fe2b267090716feea63f5c707c849 100644 (file)
@@ -214,17 +214,9 @@ static int php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb) /
 
        ssb->sb.st_size = ms->fsize;
        ssb->sb.st_mode |= S_IFREG; /* regular file */
-
-#ifdef NETWARE
-       ssb->sb.st_mtime.tv_sec = timestamp;
-       ssb->sb.st_atime.tv_sec = timestamp;
-       ssb->sb.st_ctime.tv_sec = timestamp;
-#else
        ssb->sb.st_mtime = timestamp;
        ssb->sb.st_atime = timestamp;
        ssb->sb.st_ctime = timestamp;
-#endif
-
        ssb->sb.st_nlink = 1;
        ssb->sb.st_rdev = -1;
        /* this is only for APC, so use /dev/null device - no chance of conflict there! */
index 69dd25acc56d3a65573e8c43bb06c70802a4ea57..7b7d9c0dd93bfc4c2c7cf885434f5da26a7df079 100644 (file)
@@ -51,7 +51,7 @@
 #define php_stream_fopen_from_file_int(file, mode)     _php_stream_fopen_from_file_int((file), (mode) STREAMS_CC)
 #define php_stream_fopen_from_file_int_rel(file, mode)  _php_stream_fopen_from_file_int((file), (mode) STREAMS_REL_CC)
 
-#if !defined(WINDOWS) && !defined(NETWARE)
+#ifndef PHP_WIN32
 extern int php_get_uid_by_name(const char *name, uid_t *uid);
 extern int php_get_gid_by_name(const char *name, gid_t *gid);
 #endif
@@ -1164,7 +1164,7 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, const char *url_f
                        zend_stat_t sb;
                        if (php_copy_file(url_from, url_to) == SUCCESS) {
                                if (VCWD_STAT(url_from, &sb) == 0) {
-#  if !defined(TSRM_WIN32) && !defined(NETWARE)
+#  ifndef TSRM_WIN32
                                        if (VCWD_CHMOD(url_to, sb.st_mode)) {
                                                if (errno == EPERM) {
                                                        php_error_docref2(NULL, url_from, url_to, E_WARNING, "%s", strerror(errno));
@@ -1325,7 +1325,7 @@ static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, i
 static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *value, php_stream_context *context)
 {
        struct utimbuf *newtime;
-#if !defined(WINDOWS) && !defined(NETWARE)
+#ifndef PHP_WIN32
        uid_t uid;
        gid_t gid;
 #endif
@@ -1364,7 +1364,7 @@ static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url
 
                        ret = VCWD_UTIME(url, newtime);
                        break;
-#if !defined(WINDOWS) && !defined(NETWARE)
+#ifndef PHP_WIN32
                case PHP_STREAM_META_OWNER_NAME:
                case PHP_STREAM_META_OWNER:
                        if(option == PHP_STREAM_META_OWNER_NAME) {
index 936f9990ab357e11b510d2b7a2b7f9bfe8499858..5049026e8083bc76eb91c0c45e077516c7e3fe09 100644 (file)
@@ -1661,7 +1661,7 @@ int php_init_stream_wrappers(int module_number)
        return (php_stream_xport_register("tcp", php_stream_generic_socket_factory) == SUCCESS
                        &&
                        php_stream_xport_register("udp", php_stream_generic_socket_factory) == SUCCESS
-#if defined(AF_UNIX) && !(defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE))
+#if defined(AF_UNIX) && !(defined(PHP_WIN32) || defined(__riscos__))
                        &&
                        php_stream_xport_register("unix", php_stream_generic_socket_factory) == SUCCESS
                        &&
index 6afa3b095cc123c6786267f9018eebc03e7ccb89..8fe4086213d7bdce0ada70ae64fc5dd45554fcb2 100644 (file)
@@ -859,15 +859,9 @@ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb)
        STAT_PROP_ENTRY(rdev);
 #endif
        STAT_PROP_ENTRY(size);
-#ifdef NETWARE
-       STAT_PROP_ENTRY_EX(atime, atime.tv_sec);
-       STAT_PROP_ENTRY_EX(mtime, mtime.tv_sec);
-       STAT_PROP_ENTRY_EX(ctime, ctime.tv_sec);
-#else
        STAT_PROP_ENTRY(atime);
        STAT_PROP_ENTRY(mtime);
        STAT_PROP_ENTRY(ctime);
-#endif
 #ifdef HAVE_ST_BLKSIZE
        STAT_PROP_ENTRY(blksize);
 #endif
index fa08a1175243b2926d7af6d940cda8c156cf5bac..95383ec8e3c08ee4cc0edcb217604e767add0e60 100644 (file)
@@ -23,7 +23,7 @@
 #include "streams/php_streams_int.h"
 #include "php_network.h"
 
-#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
+#if defined(PHP_WIN32) || defined(__riscos__)
 # undef AF_UNIX
 #endif
 
index 69c01bbe021eb523432a1911b53c7ea6bcea8af0..94ef7d83f01bf2ef17cfc4f4afceeb8e4cb1dcb7 100644 (file)
@@ -46,11 +46,7 @@ typedef struct php_struct {
        request_rec *r;
        apr_bucket_brigade *brigade;
        /* stat structure of the current file */
-#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
-       struct stat_libc finfo;
-#else
        zend_stat_t finfo;
-#endif
        /* Whether or not we've processed PHP in the output filters yet. */
        int request_processed;
        /* final content type */
index 9ba09da66ebff79ba5c1515b06570c9202f296ac..673fde98a93a54d431f0ee7efe1e11aa63ec8622 100644 (file)
@@ -42,7 +42,7 @@
 #include "util_script.h"
 #include "http_core.h"
 #include "ap_mpm.h"
-#if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE)
+#if !defined(WIN32) && !defined(WINNT)
 #include "unixd.h"
 #endif
 
@@ -371,7 +371,7 @@ PHP_MINFO_FUNCTION(apache)
        int n, max_requests;
        char *p;
        server_rec *serv = ((php_struct *) SG(server_context))->r->server;
-#if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE)
+#if !defined(WIN32) && !defined(WINNT)
 #if MODULE_MAGIC_NUMBER_MAJOR >= 20081201
        AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
 #else
@@ -410,7 +410,7 @@ PHP_MINFO_FUNCTION(apache)
        snprintf(tmp, sizeof(tmp), "%s:%u", serv->server_hostname, serv->port);
        php_info_print_table_row(2, "Hostname:Port", tmp);
 
-#if !defined(WIN32) && !defined(WINNT) && !defined(NETWARE)
+#if !defined(WIN32) && !defined(WINNT)
 #if MODULE_MAGIC_NUMBER_MAJOR >= 20081201
        snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id);
 #else
index f218f715c603e1ccd32c23873bf1111ae6da8774..8fe7dab3b528e403cde4555dbf57e2d61f803160 100644 (file)
 #include <fcntl.h>
 
 #include "zend_smart_str.h"
-#ifndef NETWARE
 #include "ext/standard/php_standard.h"
-#else
-#include "ext/standard/basic_functions.h"
-#endif
 
 #include "apr_strings.h"
 #include "ap_config.h"
@@ -53,9 +49,9 @@
 
 #include "php_apache.h"
 
-/* UnixWare and Netware define shutdown to _shutdown, which causes problems later
+/* UnixWare define shutdown to _shutdown, which causes problems later
  * on when using a structure member named shutdown. Since this source
- * file does not use the system call shutdown, it is safe to #undef it.K
+ * file does not use the system call shutdown, it is safe to #undef it.
  */
 #undef shutdown
 
@@ -223,16 +219,9 @@ php_apache_sapi_get_stat(void)
 #endif
        ctx->finfo.st_dev = ctx->r->finfo.device;
        ctx->finfo.st_ino = ctx->r->finfo.inode;
-#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
-       ctx->finfo.st_atime.tv_sec = apr_time_sec(ctx->r->finfo.atime);
-       ctx->finfo.st_mtime.tv_sec = apr_time_sec(ctx->r->finfo.mtime);
-       ctx->finfo.st_ctime.tv_sec = apr_time_sec(ctx->r->finfo.ctime);
-#else
        ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime);
        ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime);
        ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime);
-#endif
-
        ctx->finfo.st_size = ctx->r->finfo.size;
        ctx->finfo.st_nlink = ctx->r->finfo.nlink;
 
index 04db2fecee7ab6bf681e15865df35bc7a7294adc..21681512a73bf113e3b80b1aba5421ede07d74c2 100644 (file)
@@ -44,9 +44,6 @@ if test "$PHP_CLI" != "no"; then
   *darwin*)
     BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
     ;;
-  *netware*)
-    BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -Lnetware -lphp7lib -o \$(SAPI_CLI_PATH)"
-    ;;
   *)
     BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
     ;;
index 36d947b57f95e9634c8c2593e52bfaa96a0bb61c..8645661c5eab2bb83b5061292b8600b232325b44 100644 (file)
@@ -58,9 +58,6 @@ extern int phpdbg_startup_run;
 #include "win32/param.h"
 #include "win32/winutil.h"
 #define GET_DL_ERROR()  php_win_err()
-#elif defined(NETWARE)
-#include <sys/param.h>
-#define GET_DL_ERROR()  dlerror()
 #else
 #include <sys/param.h>
 #define GET_DL_ERROR()  DL_ERROR()
index 9195f21503dde9693ffb991850b564527dcaf8de..5f27454e336471126bf98d614c17f6629e3c9d76 100644 (file)
 #include "php.h"                               /*php specific */
 #include <stdio.h>
 #include <stdlib.h>
-#ifndef NETWARE
 #include <winsock2.h>
 #include "time.h"
 # include <Ws2tcpip.h>
-#else  /* NETWARE */
-#include <netware/sendmail_nw.h>
-#endif /* NETWARE */
 #include <string.h>
 #include <math.h>
-#ifndef NETWARE
 #include <malloc.h>
 #include <memory.h>
 #include <winbase.h>
-#endif /* NETWARE */
 #include "sendmail.h"
 #include "php_ini.h"
 #include "inet.h"
 
 
 char seps[] = " ,\t\n";
-#ifndef NETWARE
 char *php_mailer = "PHP 7 WIN32";
-#else
-char *php_mailer = "PHP 7 NetWare";
-#endif /* NETWARE */
 
 /* Error messages */
 static char *ErrorMessages[] =
index 855792df733b0f84e965ddf99465bc2ac185263a..bb502cb7ddcbe35d64eebd5daeea578e8d9fc484 100644 (file)
@@ -1,8 +1,6 @@
 #if !defined(sendmail_h)               /* Sentry, use file only if it's not already included. */
 #define sendmail_h
-#ifndef NETWARE
 #include <windows.h>
-#endif
 
 #define HOST_NAME_LEN  256
 #define MAX_APPNAME_LENGTH 100