Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

This commit was manufactured by cvs2svn to create tag

'PRE_FILE_COMPILE_API_CHANGE'.
  • Loading branch information...
commit dc4f9cda692048f0f60a7f83db88bffa950454a0 1 parent a8a1bbe
SVN Migration authored

Showing 3 changed files with 0 additions and 277 deletions. Show diff stats Hide diff stats

  1. +0 103 ext/imap/imap.h
  2. +0 61 ext/pcre/config0.m4
  3. +0 113 strtok_r.c
103 ext/imap/imap.h
... ... @@ -1,103 +0,0 @@
1   -#ifndef _INCLUDED_IMAP_H
2   -#define _INCLUDED_IMAP_H
3   -
4   -#if COMPILE_DL
5   -#undef HAVE_IMAP
6   -#define HAVE_IMAP 1
7   -#endif
8   -
9   -#if HAVE_IMAP
10   -
11   -#ifndef PHP_WIN32
12   -#include "build-defs.h"
13   -#endif
14   -
15   -/* Functions accessable to PHP */
16   -extern zend_module_entry imap_module_entry;
17   -#define imap_module_ptr &imap_module_entry
18   -
19   -extern PHP_MINIT_FUNCTION(imap);
20   -extern PHP_RINIT_FUNCTION(imap);
21   -extern PHP_RSHUTDOWN_FUNCTION(imap);
22   -PHP_MINFO_FUNCTION(imap);
23   -PHP_FUNCTION(imap_open);
24   -PHP_FUNCTION(imap_popen);
25   -PHP_FUNCTION(imap_reopen);
26   -PHP_FUNCTION(imap_num_msg);
27   -PHP_FUNCTION(imap_num_recent);
28   -PHP_FUNCTION(imap_headers);
29   -PHP_FUNCTION(imap_headerinfo);
30   -PHP_FUNCTION(imap_rfc822_parse_headers);
31   -PHP_FUNCTION(imap_body);
32   -PHP_FUNCTION(imap_fetchstructure);
33   -PHP_FUNCTION(imap_fetchbody);
34   -PHP_FUNCTION(imap_expunge);
35   -PHP_FUNCTION(imap_delete);
36   -PHP_FUNCTION(imap_undelete);
37   -PHP_FUNCTION(imap_check);
38   -PHP_FUNCTION(imap_close);
39   -PHP_FUNCTION(imap_mail_copy);
40   -PHP_FUNCTION(imap_mail_move);
41   -PHP_FUNCTION(imap_createmailbox);
42   -PHP_FUNCTION(imap_renamemailbox);
43   -PHP_FUNCTION(imap_deletemailbox);
44   -PHP_FUNCTION(imap_listmailbox);
45   -PHP_FUNCTION(imap_scanmailbox);
46   -PHP_FUNCTION(imap_subscribe);
47   -PHP_FUNCTION(imap_unsubscribe);
48   -PHP_FUNCTION(imap_append);
49   -PHP_FUNCTION(imap_ping);
50   -PHP_FUNCTION(imap_base64);
51   -PHP_FUNCTION(imap_qprint);
52   -PHP_FUNCTION(imap_8bit);
53   -PHP_FUNCTION(imap_binary);
54   -PHP_FUNCTION(imap_mailboxmsginfo);
55   -PHP_FUNCTION(imap_rfc822_write_address);
56   -PHP_FUNCTION(imap_rfc822_parse_adrlist);
57   -PHP_FUNCTION(imap_setflag_full);
58   -PHP_FUNCTION(imap_clearflag_full);
59   -PHP_FUNCTION(imap_sort);
60   -PHP_FUNCTION(imap_fetchheader);
61   -PHP_FUNCTION(imap_fetchtext);
62   -PHP_FUNCTION(imap_uid);
63   -PHP_FUNCTION(imap_msgno);
64   -PHP_FUNCTION(imap_list);
65   -PHP_FUNCTION(imap_list_full);
66   -PHP_FUNCTION(imap_listscan);
67   -PHP_FUNCTION(imap_lsub);
68   -PHP_FUNCTION(imap_lsub_full);
69   -PHP_FUNCTION(imap_create);
70   -PHP_FUNCTION(imap_rename);
71   -PHP_FUNCTION(imap_status);
72   -PHP_FUNCTION(imap_bodystruct);
73   -PHP_FUNCTION(imap_fetch_overview);
74   -PHP_FUNCTION(imap_mail_compose);
75   -PHP_FUNCTION(imap_alerts);
76   -PHP_FUNCTION(imap_errors);
77   -PHP_FUNCTION(imap_last_error);
78   -PHP_FUNCTION(imap_mail);
79   -PHP_FUNCTION(imap_search);
80   -PHP_FUNCTION(imap_utf8);
81   -PHP_FUNCTION(imap_utf7_decode);
82   -PHP_FUNCTION(imap_utf7_encode);
83   -PHP_FUNCTION(imap_mime_header_decode);
84   -#else
85   -#define imap_module_ptr NULL
86   -#endif /* HAVE_IMAP */
87   -
88   -#endif
89   -
90   -
91   -
92   -
93   -
94   -
95   -#define phpext_imap_ptr imap_module_ptr
96   -
97   -
98   -
99   -
100   -
101   -
102   -
103   -
61 ext/pcre/config0.m4
... ... @@ -1,61 +0,0 @@
1   -dnl $Id$
2   -dnl config.m4 for extension pcre
3   -
4   -dnl By default we'll compile and link against the bundled PCRE library
5   -dnl if DIR is supplied, we'll use that for linking
6   -
7   -PHP_ARG_WITH(pcre-regex,whether to include PCRE support,
8   -[ --without-pcre-regex Do not include Perl Compatible Regular Expressions
9   - support. Use --with-pcre-regex=DIR to specify DIR
10   - where PCRE's include and library files are located,
11   - if not using bundled library.],yes)
12   -
13   -if test "$PHP_PCRE_REGEX" != "no"; then
14   - PHP_EXTENSION(pcre, $ext_shared)
15   - if test "$PHP_PCRE_REGEX" = "yes"; then
16   - PCRE_LIBADD=pcrelib/libpcre.la
17   - PCRE_SHARED_LIBADD=pcrelib/libpcre.la
18   - PCRE_SUBDIRS=pcrelib
19   - PHP_SUBST(PCRE_LIBADD)
20   - PHP_SUBST(PCRE_SUBDIRS)
21   - AC_DEFINE(HAVE_BUNDLED_PCRE, 1, [ ])
22   - PHP_FAST_OUTPUT($ext_builddir/pcrelib/Makefile)
23   - LIB_BUILD($ext_builddir/pcrelib,$ext_shared,yes)
24   - else
25   - test -f $PHP_PCRE_REGEX/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX
26   - test -f $PHP_PCRE_REGEX/include/pcre.h && PCRE_INCDIR=$PHP_PCRE_REGEX/include
27   -
28   - if test -z "$PCRE_INCDIR"; then
29   - AC_MSG_RESULT(Could not find pcre.h in $PHP_PCRE_REGEX)
30   - fi
31   -
32   - changequote({,})
33   - pcre_major=`grep PCRE_MAJOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
34   - pcre_minor=`grep PCRE_MINOR $PCRE_INCDIR/pcre.h | sed -e 's/[^0-9]//g'`
35   - changequote([,])
36   - pcre_minor_length=`echo "$pcre_minor" | wc -c | sed -e 's/[^0-9]//g'`
37   - if test "$pcre_minor_length" -eq 2 ; then
38   - pcre_minor="$pcre_minor"0
39   - fi
40   - pcre_version=$pcre_major$pcre_minor
41   - if test "$pcre_version" -lt 208; then
42   - AC_MSG_ERROR(The PCRE extension requires PCRE library version >= 2.08)
43   - fi
44   -
45   - test -f $PHP_PCRE_REGEX/libpcre.a && PCRE_LIBDIR="$PHP_PCRE_REGEX"
46   - test -f $PHP_PCRE_REGEX/lib/libpcre.a && PCRE_LIBDIR="$PHP_PCRE_REGEX/lib"
47   -
48   - if test -z "$PCRE_LIBDIR" ; then
49   - AC_MSG_ERROR(Could not find libpcre.a in $PHP_PCRE_REGEX)
50   - fi
51   -
52   - AC_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
53   -
54   - AC_ADD_INCLUDE($PCRE_INCDIR)
55   - AC_DEFINE(HAVE_PCRE, 1, [ ])
56   - fi
57   -fi
58   -PHP_SUBST(PCRE_SHARED_LIBADD)
59   -
60   -
61   -AC_CHECK_FUNC(memmove, [], [AC_DEFINE(USE_BCOPY, 1, [ ])])
113 strtok_r.c
... ... @@ -1,113 +0,0 @@
1   -#include "php.h"
2   -
3   -#ifndef HAVE_STRTOK_R
4   -
5   -/*
6   - * Copyright (c) 1998 Softweyr LLC. All rights reserved.
7   - *
8   - * strtok_r, from Berkeley strtok
9   - * Oct 13, 1998 by Wes Peters <wes@softweyr.com>
10   - *
11   - * Copyright (c) 1988, 1993
12   - * The Regents of the University of California. All rights reserved.
13   - *
14   - * Redistribution and use in source and binary forms, with or without
15   - * modification, are permitted provided that the following conditions
16   - * are met:
17   - *
18   - * 1. Redistributions of source code must retain the above copyright
19   - * notices, this list of conditions and the following disclaimer.
20   - *
21   - * 2. Redistributions in binary form must reproduce the above copyright
22   - * notices, this list of conditions and the following disclaimer in the
23   - * documentation and/or other materials provided with the distribution.
24   - *
25   - * 3. All advertising materials mentioning features or use of this software
26   - * must display the following acknowledgement:
27   - *
28   - * This product includes software developed by Softweyr LLC, the
29   - * University of California, Berkeley, and its contributors.
30   - *
31   - * 4. Neither the name of the University nor the names of its contributors
32   - * may be used to endorse or promote products derived from this software
33   - * without specific prior written permission.
34   - *
35   - * THIS SOFTWARE IS PROVIDED BY SOFTWEYR LLC, THE REGENTS AND CONTRIBUTORS
36   - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37   - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
38   - * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTWEYR LLC, THE
39   - * REGENTS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40   - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
41   - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
42   - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43   - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44   - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
45   - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46   - */
47   -
48   -#include <stddef.h>
49   -#include <string.h>
50   -
51   -char *
52   -strtok_r(char *s, const char *delim, char **last)
53   -{
54   - char *spanp;
55   - int c, sc;
56   - char *tok;
57   -
58   - if (s == NULL && (s = *last) == NULL)
59   - {
60   - return NULL;
61   - }
62   -
63   - /*
64   - * Skip (span) leading delimiters (s += strspn(s, delim), sort of).
65   - */
66   -cont:
67   - c = *s++;
68   - for (spanp = (char *)delim; (sc = *spanp++) != 0; )
69   - {
70   - if (c == sc)
71   - {
72   - goto cont;
73   - }
74   - }
75   -
76   - if (c == 0) /* no non-delimiter characters */
77   - {
78   - *last = NULL;
79   - return NULL;
80   - }
81   - tok = s - 1;
82   -
83   - /*
84   - * Scan token (scan for delimiters: s += strcspn(s, delim), sort of).
85   - * Note that delim must have one NUL; we stop if we see that, too.
86   - */
87   - for (;;)
88   - {
89   - c = *s++;
90   - spanp = (char *)delim;
91   - do
92   - {
93   - if ((sc = *spanp++) == c)
94   - {
95   - if (c == 0)
96   - {
97   - s = NULL;
98   - }
99   - else
100   - {
101   - char *w = s - 1;
102   - *w = '\0';
103   - }
104   - *last = s;
105   - return tok;
106   - }
107   - }
108   - while (sc != 0);
109   - }
110   - /* NOTREACHED */
111   -}
112   -
113   -#endif

0 comments on commit dc4f9cd

Please sign in to comment.
Something went wrong with that request. Please try again.