Skip to content

Commit a064635

Browse files
author
Anantha Kesari H Y
committed
NetWare related file.
1 parent 8bfd3ab commit a064635

File tree

2 files changed

+148
-34
lines changed

2 files changed

+148
-34
lines changed

main/config.nw.h

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
/* config.nw.h. Configure file for NetWare platform */
22

33

4-
/****
5-
6-
Need to carefully look into each constant and either define or undef it w.r.t. NetWare.
7-
8-
****/
9-
10-
11-
/* Define if PHP to setup it's own SIGCHLD handler (not needed on NetWare) */
4+
/* Define if PHP to setup it's own SIGCHLD handler (not needed on Win32) */
125
#define PHP_SIGCHILD 0
136

147
/* dns functions found in resolv.lib */
@@ -25,26 +18,43 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
2518
/* set to enable mysql */
2619
#define HAVE_MYSQL 1
2720

21+
/* defines for PostgreSQL extension */
22+
#define HAVE_PGSQL 1
23+
#define PHP_PGSQL_PRIVATE 1
24+
#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1
25+
#define HAVE_PQCLIENTENCODING 1
26+
#define HAVE_PQCMDTUPLES 1
27+
#define HAVE_PQOIDVALUE 1
28+
2829
/* set to enable FTP support */
2930
#define HAVE_FTP 1
3031

3132
/* set to enable bundled PCRE library */
3233
#define HAVE_BUNDLED_PCRE 1
3334

3435
/* set to enable bundled expat library */
35-
/* #define HAVE_LIBEXPAT 1 */ /* For now */
36-
#define HAVE_WDDX 0
36+
/*#define HAVE_LIBEXPAT 1*/ /* Commented for now */
37+
#define HAVE_WDDX 0 /* Instead of 1 */
3738

3839
/* set to enable the crypt command */
39-
/* #define HAVE_CRYPT 1 */
40-
/* #define HAVE_CRYPT_H 1 */
40+
/*
41+
#define HAVE_CRYPT 1
42+
#define PHP_STD_DES_CRYPT 1
43+
#define PHP_EXT_DES_CRYPT 0
44+
#define PHP_MD5_CRYPT 0
45+
#define PHP_BLOWFISH_CRYPT 0
46+
#define HAVE_CRYPT_H 1
47+
*/
4148

4249
/* set to enable force cgi redirect */
43-
#define FORCE_CGI_REDIRECT 0
50+
#define FORCE_CGI_REDIRECT 1
4451

4552
/* should be added to runtime config*/
4653
#define PHP_URL_FOPEN 1
4754

55+
/* set to enable overload extension */
56+
#define HAVE_OVERLOAD 0
57+
4858
#define STDIN_FILENO 0
4959
#define STDOUT_FILENO 1
5060
#define STDERR_FILENO 2
@@ -79,7 +89,7 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
7989

8090
/* ----------------------------------------------------------------
8191
The following may or may not be (or need to be) ported to the
82-
windows environment.
92+
NetWare environment.
8393
---------------------------------------------------------------*/
8494

8595
/* Define if you have the link function. */
@@ -92,7 +102,7 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
92102
#undef HAVE_USLEEP
93103

94104
#define HAVE_GETCWD 1
95-
/* #define HAVE_POSIX_READDIR_R 1 */ /* We will use readdir() from LibC */
105+
/*#define HAVE_POSIX_READDIR_R 1*/ /* We will use readdir() from LibC */
96106

97107
#define NEED_ISBLANK 1
98108

@@ -111,8 +121,13 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
111121
#define HAVE_UODBC 1
112122
#define HAVE_LIBDL 1
113123
#define HAVE_SENDMAIL 1
124+
125+
/* Define if you have the gettimeofday function. */
114126
#define HAVE_GETTIMEOFDAY 1
127+
128+
/* Define if you have the putenv function. */
115129
#define HAVE_PUTENV 1
130+
116131
#define HAVE_LIMITS_H 1
117132

118133
#define HAVE_TZSET 1
@@ -123,7 +138,7 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
123138

124139
/* Define if you have alloca, as a function or macro. */
125140
/* Though we have alloca(), this seems to be causing some problem with the stack pointer -- hence not using it */
126-
/* #define HAVE_ALLOCA 1 */
141+
/*#define HAVE_ALLOCA 1*/
127142

128143
/* Define if you have <sys/time.h> */
129144
#undef HAVE_SYS_TIME_H
@@ -132,10 +147,10 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
132147
#define HAVE_SIGNAL_H 1
133148

134149
/* Define if your struct stat has st_blksize. */
135-
#define HAVE_ST_BLKSIZE
150+
#undef HAVE_ST_BLKSIZE
136151

137152
/* Define if your struct stat has st_blocks. */
138-
#define HAVE_ST_BLOCKS
153+
#undef HAVE_ST_BLOCKS
139154

140155
/* Define if your struct stat has st_rdev. */
141156
#define HAVE_ST_RDEV 1
@@ -158,28 +173,22 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
158173
#define HAVE_LDAP 1
159174

160175
/* Define if you have the gcvt function. */
161-
/* #define HAVE_GCVT 1 */
176+
/*#define HAVE_GCVT 1*/
162177

163178
/* Define if you have the getlogin function. */
164-
/* #define HAVE_GETLOGIN 1 */
165-
166-
/* Define if you have the gettimeofday function. */
167-
#define HAVE_GETTIMEOFDAY 1
179+
/*#define HAVE_GETLOGIN 1*/
168180

169181
/* Define if you have the memcpy function. */
170182
#define HAVE_MEMCPY 1
171183

172184
/* Define if you have the memmove function. */
173185
#define HAVE_MEMMOVE 1
174186

175-
/* Define if you have the putenv function. */
176-
/* #define HAVE_PUTENV 1 */ /* Why are such things defined in more than one place ? */
177-
178187
/* Define if you have the regcomp function. */
179-
/* #define HAVE_REGCOMP 1 */
188+
#define HAVE_REGCOMP 1
180189

181190
/* Define if you have the setlocale function. */
182-
/* #define HAVE_SETLOCALE 1 */ /* LibC doesn't seem to be supporting fully -- hence commenting for now */
191+
/*#define HAVE_SETLOCALE 1*/ /* Doesn't seem to be supporting fully -- hence commenting for now */
183192

184193
#define HAVE_LOCALECONV 1
185194

@@ -212,7 +221,7 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
212221
#define HAVE_UTIME 1
213222

214223
/* Define if you have the <dirent.h> header file. */
215-
#define HAVE_DIRENT_H
224+
#define HAVE_DIRENT_H 1 /* Defined and then added '1' for '#if' to work */
216225

217226
/* Define if you have the <fcntl.h> header file. */
218227
#define HAVE_FCNTL_H 1
@@ -230,16 +239,20 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
230239
#undef HAVE_SYS_FILE_H
231240

232241
/* Define if you have the <sys/socket.h> header file. */
242+
#ifdef USE_WINSOCK
243+
#undef HAVE_SYS_SOCKET_H
244+
#else
233245
#define HAVE_SYS_SOCKET_H 1 /* Added '1' for '#if' to work */
246+
#endif
234247

235248
/* Define if you have the <sys/wait.h> header file. */
236249
#undef HAVE_SYS_WAIT_H
237250

238251
/* Define if you have the <syslog.h> header file. */
239-
/* #define HAVE_SYSLOG_H 1 */
252+
/*#define HAVE_SYSLOG_H 1*/ /* Commented for now */
240253

241254
/* Define if you have the <unistd.h> header file. */
242-
#define HAVE_UNISTD_H 1 /* Added '1' for '#if' to work */
255+
#define HAVE_UNISTD_H 1 /* Defined and then added '1' for '#if' to work */
243256

244257
/* Define if you have the dl library (-ldl). */
245258
#define HAVE_LIBDL 1
@@ -261,14 +274,12 @@ Need to carefully look into each constant and either define or undef it w.r.t. N
261274
#define SIZEOF_INT 4
262275

263276
/* Define directory constants for php and pear */
264-
265-
/* Venkat (20/12/01) */
266277
#define APACHE_MODULE_DIR "sys:/apache/modules"
267278
#define PHP_BINDIR "sys:/php"
268279
#define PHP_LIBDIR PHP_BINDIR
269280
#define PHP_DATADIR PHP_BINDIR
270281
#define PHP_SYSCONFDIR PHP_BINDIR
271282
#define PHP_LOCALSTATEDIR PHP_BINDIR
272-
#define PHP_CONFIG_FILE_PATH "sys:/php"
283+
#define PHP_CONFIG_FILE_PATH "sys:/php" /* No need to keep in SYSTEM folder */
273284
#define PEAR_INSTALLDIR "sys:/php/pear"
274285

main/internal_functions_nw.c

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/*
2+
+----------------------------------------------------------------------+
3+
| PHP Version 4 |
4+
+----------------------------------------------------------------------+
5+
| Copyright (c) 1997-2002 The PHP Group |
6+
+----------------------------------------------------------------------+
7+
| This source file is subject to version 2.02 of the PHP license, |
8+
| that is bundled with this package in the file LICENSE, and is |
9+
| available at through the world-wide-web at |
10+
| http://www.php.net/license/2_02.txt. |
11+
| If you did not receive a copy of the PHP license and are unable to |
12+
| obtain it through the world-wide-web, please send a note to |
13+
| license@php.net so we can mail you a copy immediately. |
14+
+----------------------------------------------------------------------+
15+
| Authors: Andi Gutmans <andi@zend.com> |
16+
| Zeev Suraski <zeev@zend.com> |
17+
| Modified for NetWare: Novell, Inc. |
18+
+----------------------------------------------------------------------+
19+
*/
20+
21+
22+
/* {{{ includes
23+
*/
24+
#include "php.h"
25+
#include "php_main.h"
26+
#include "zend_modules.h"
27+
#include "internal_functions_registry.h"
28+
#include "zend_compile.h"
29+
#include <stdarg.h>
30+
#include <stdlib.h>
31+
#include <stdio.h>
32+
33+
#include "ext/bcmath/php_bcmath.h"
34+
#include "ext/db/php_db.h"
35+
#include "ext/gd/php_gd.h"
36+
#include "ext/standard/dl.h"
37+
#include "ext/standard/file.h"
38+
#include "ext/standard/fsock.h"
39+
#include "ext/standard/head.h"
40+
#include "ext/standard/pack.h"
41+
#include "ext/standard/php_browscap.h"
42+
/*#include "ext/standard/php_crypt.h"*/
43+
#include "ext/standard/php_dir.h"
44+
#include "ext/standard/php_filestat.h"
45+
#include "ext/standard/php_mail.h"
46+
/*#include "ext/standard/php_ext_syslog.h"*/
47+
#include "ext/standard/php_standard.h"
48+
#include "ext/standard/php_lcg.h"
49+
#include "ext/standard/php_array.h"
50+
#include "ext/standard/php_assert.h"
51+
#include "ext/calendar/php_calendar.h"
52+
/*#include "ext/com/php_COM.h"
53+
#include "ext/com/php_VARIANT.h"*/
54+
#include "ext/ftp/php_ftp.h"
55+
#include "ext/standard/reg.h"
56+
#include "ext/pcre/php_pcre.h"
57+
/*#include "ext/odbc/php_odbc.h"*/ /* Commented out for now */
58+
#include "ext/session/php_session.h"
59+
/*#include "ext/xml/php_xml.h"
60+
#include "ext/wddx/php_wddx.h"
61+
#include "ext/mysql/php_mysql.h"*/ /* Commented out for now */
62+
#include "ext/mbstring/mbstring.h"
63+
/* }}} */
64+
65+
/* {{{ php_builtin_extensions[]
66+
*/
67+
zend_module_entry *php_builtin_extensions[] = {
68+
phpext_standard_ptr,
69+
#if WITH_BCMATH
70+
phpext_bcmath_ptr,
71+
#endif
72+
phpext_calendar_ptr,
73+
/* COM_module_ptr,*/
74+
phpext_ftp_ptr,
75+
#if defined(MBSTR_ENC_TRANS)
76+
phpext_mbstring_ptr,
77+
#endif
78+
/* phpext_mysql_ptr,*/ /* Commented out for now */
79+
/* phpext_odbc_ptr, */ /* Commented out for now */
80+
phpext_pcre_ptr,
81+
phpext_session_ptr,
82+
/* phpext_xml_ptr,
83+
phpext_wddx_ptr*/ /* Commented out for now */
84+
};
85+
/* }}} */
86+
87+
#define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
88+
89+
90+
int php_startup_internal_extensions(void)
91+
{
92+
return php_startup_extensions(php_builtin_extensions, EXTCOUNT);
93+
}
94+
95+
96+
/*
97+
* Local variables:
98+
* tab-width: 4
99+
* c-basic-offset: 4
100+
* End:
101+
* vim600: sw=4 ts=4 fdm=marker
102+
* vim<600: sw=4 ts=4
103+
*/

0 commit comments

Comments
 (0)