moved the PHP_OS and PHP_UNAME definitions near the place other oses define them currently it is ggeting redined to build machine values when ./configure script is generated using autoconf version 2.13 but works fine with autoconf 2.51.
Defining the default EXTENSION_DIR for NetWare
--Kamesh
NetWare can make use autoconf based build.
main/php_sprintf.c
NetWare can make use autoconf based build.
ext/bcmath/libbcmath/src/config.h
NetWare can make use autoconf based build.
ext/mcve/mcve.c
NetWare can make use autoconf based build.
-- Kamesh
Removing redundant inclusion of headers for NetWare
ext/standard/lcg.c
NetWare LibC SDK sys/time.h implicitly includes sys/timval.h so nothing special needed for NetWare here.
--Kamesh
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.
main/php_open_temporary_file.c,v
Removed the unused variable in NetWare block.
main/php_streams.h
Removing the redundant CLIB_STAT_PATCH
main/safe_mode.c
NetWare has no uid.
-- Kamesh
Removing the redundant CLIB_STAT_PATCH
TSRM/tsrm_virtual_cwd.h
Removing the redundant CLIB_STAT_PATCH
TSRM/TSRM.c
Netware pthreads support is good enough. So removing all these fixes of old times.
-- Kamesh
ext/standard/filestat.c Removing redundant CLIB_STAT_PATCH and fixing some NetWare specific stat structure.
ext/standard/link.c Removing redundant CLIB_STAT_PATCH.
ext/standard/pageinfo.c Removing redundant CLIB_STAT_PATCH and fixing some NetWare specific stat structure.
ext/standard/syslog.c Except LOG_SYSLOG NetWare LibC has other macros defined.
-- Kamesh
So using getcwdpath which gives with volume information.
getcwdpath gives with directory seperator as \ which is against our DEFAULT_SLASH of /.
So finding and replacing \ with /
2)NetWare file path normalization code in virtual_file_ex.
-- Kamesh