mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01:00
NetWare related additions/modifications
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "SAPI.h"
|
||||
#include <time.h>
|
||||
#include "php_main.h"
|
||||
#if !defined(PHP_WIN32)
|
||||
#if !defined(PHP_WIN32) && !defined(NETWARE)
|
||||
#include "build-defs.h"
|
||||
#endif
|
||||
#include "zend_globals.h" /* needs ELS */
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#include "win32/time.h"
|
||||
#elif defined(NETWARE)
|
||||
#ifdef NEW_LIBC
|
||||
#include <sys/timeval.h>
|
||||
#else
|
||||
#include "netware/time_nw.h"
|
||||
#endif
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#if HAVE_PWD_H
|
||||
#ifdef PHP_WIN32
|
||||
#include "win32/pwd.h"
|
||||
#elif defined(NETWARE)
|
||||
#include "netware/pwd.h"
|
||||
#else
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
@@ -79,7 +81,11 @@ PHP_FUNCTION(readlink)
|
||||
PHP_FUNCTION(linkinfo)
|
||||
{
|
||||
zval **filename;
|
||||
#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
|
||||
struct stat_libc sb;
|
||||
#else
|
||||
struct stat sb;
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <stdio.h>
|
||||
#include "php.h"
|
||||
#include "ext/standard/info.h"
|
||||
#if !defined(PHP_WIN32)
|
||||
#if !defined(PHP_WIN32) && !defined(NETWARE)
|
||||
#include "build-defs.h"
|
||||
#if HAVE_SYSEXITS_H
|
||||
#include <sysexits.h>
|
||||
@@ -42,6 +42,11 @@
|
||||
#include "win32/sendmail.h"
|
||||
#endif
|
||||
|
||||
#ifdef NETWARE
|
||||
#include "netware/pipe.h" /* For popen(), pclose() */
|
||||
#include "netware/sysexits.h" /* For exit status codes like EX_OK */
|
||||
#endif
|
||||
|
||||
/* {{{ proto int ezmlm_hash(string addr)
|
||||
Calculate EZMLM list hash value. */
|
||||
PHP_FUNCTION(ezmlm_hash)
|
||||
@@ -137,7 +142,8 @@ PHP_FUNCTION(mail)
|
||||
*/
|
||||
PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd TSRMLS_DC)
|
||||
{
|
||||
#ifdef PHP_WIN32
|
||||
/*#ifdef PHP_WIN32*/
|
||||
#if (defined PHP_WIN32 || defined NETWARE)
|
||||
int tsm_err;
|
||||
char *tsm_errmsg = NULL;
|
||||
#endif
|
||||
@@ -147,7 +153,8 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||
char *sendmail_cmd = NULL;
|
||||
|
||||
if (!sendmail_path) {
|
||||
#ifdef PHP_WIN32
|
||||
/*#ifdef PHP_WIN32*/
|
||||
#if (defined PHP_WIN32 || defined NETWARE)
|
||||
/* handle old style win smtp sending */
|
||||
if (TSendMail(INI_STR("SMTP"), &tsm_err, &tsm_errmsg, headers, subject, to, message, NULL, NULL, NULL) == FAILURE) {
|
||||
if (tsm_errmsg) {
|
||||
|
||||
Reference in New Issue
Block a user