Skip to content

Commit 66ef6d5

Browse files
committed
Make the minimal changes required for this extension to build.
1 parent fcff3e5 commit 66ef6d5

File tree

4 files changed

+217
-6
lines changed

4 files changed

+217
-6
lines changed

LICENSE

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
--------------------------------------------------------------------
2+
The PHP License, version 3.01
3+
Copyright (c) 1999 - 2015 The PHP Group. All rights reserved.
4+
--------------------------------------------------------------------
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, is permitted provided that the following conditions
8+
are met:
9+
10+
1. Redistributions of source code must retain the above copyright
11+
notice, this list of conditions and the following disclaimer.
12+
13+
2. Redistributions in binary form must reproduce the above copyright
14+
notice, this list of conditions and the following disclaimer in
15+
the documentation and/or other materials provided with the
16+
distribution.
17+
18+
3. The name "PHP" must not be used to endorse or promote products
19+
derived from this software without prior written permission. For
20+
written permission, please contact [email protected].
21+
22+
4. Products derived from this software may not be called "PHP", nor
23+
may "PHP" appear in their name, without prior written permission
24+
from [email protected]. You may indicate that your software works in
25+
conjunction with PHP by saying "Foo for PHP" instead of calling
26+
it "PHP Foo" or "phpfoo"
27+
28+
5. The PHP Group may publish revised and/or new versions of the
29+
license from time to time. Each version will be given a
30+
distinguishing version number.
31+
Once covered code has been published under a particular version
32+
of the license, you may always continue to use it under the terms
33+
of that version. You may also choose to use such covered code
34+
under the terms of any subsequent version of the license
35+
published by the PHP Group. No one other than the PHP Group has
36+
the right to modify the terms applicable to covered code created
37+
under this License.
38+
39+
6. Redistributions of any form whatsoever must retain the following
40+
acknowledgment:
41+
"This product includes PHP software, freely available from
42+
<http://www.php.net/software/>".
43+
44+
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
45+
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
47+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
48+
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
49+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
50+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
51+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
52+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
53+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
54+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
55+
OF THE POSSIBILITY OF SUCH DAMAGE.
56+
57+
--------------------------------------------------------------------
58+
59+
This software consists of voluntary contributions made by many
60+
individuals on behalf of the PHP Group.
61+
62+
The PHP Group can be contacted via Email at [email protected].
63+
64+
For more information on the PHP Group and the PHP project,
65+
please see <http://www.php.net>.
66+
67+
PHP includes the Zend Engine, freely available at
68+
<http://www.zend.com>.

config0.m4 renamed to config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dnl Check for regex library type
66
dnl
77
PHP_ARG_WITH(regex,,
88
[ --with-regex=TYPE Regex library type: system, php. [TYPE=php]
9-
WARNING: Do NOT use unless you know what you are doing!], php, no)
9+
WARNING: Do NOT use unless you know what you are doing!], php)
1010

1111
case $PHP_REGEX in
1212
system)
@@ -35,7 +35,7 @@ if test "$REGEX_TYPE" = "php"; then
3535
fi
3636
PHP_EREG_CFLAGS="$PHP_EREG_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
3737

38-
PHP_NEW_EXTENSION(ereg, ereg.c $ereg_regex_sources, no,,$PHP_EREG_CFLAGS)
38+
PHP_NEW_EXTENSION(ereg, ereg.c $ereg_regex_sources, $ext_shared,, $PHP_EREG_CFLAGS)
3939
PHP_INSTALL_HEADERS([ext/ereg], [php_ereg.h php_regex.h $ereg_regex_headers])
4040

4141
if test "$REGEX_TYPE" = "php"; then

ereg.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ zend_module_entry ereg_module_entry = {
9696
};
9797
/* }}} */
9898

99-
/* {{{ COMPILE_DL_EREG */
100-
#ifdef COMPILE_DL_EREG
10199
ZEND_GET_MODULE(ereg)
102-
#endif
103-
/* }}} */
104100

105101
/* {{{ ereg_lru_cmp */
106102
static int ereg_lru_cmp(const void *a, const void *b)

package.xml

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
<?xml version="1.0" encoding="ISO-8859-1" ?>
2+
<!DOCTYPE package SYSTEM "../pear/package.dtd">
3+
<package>
4+
<name>ereg</name>
5+
<summary>Posix regex functions</summary>
6+
<maintainers>
7+
<maintainer>
8+
<user>aharvey</user>
9+
<name>Adam Harvey</name>
10+
<email>[email protected]</email>
11+
<role>lead</role>
12+
</maintainer>
13+
</maintainers>
14+
<description>
15+
These functions provide the deprecated POSIX regex API.
16+
</description>
17+
<license>PHP</license>
18+
<release>
19+
<state>stable</state>
20+
<version>1.0.0</version>
21+
<date>2015-03-04</date>
22+
<notes>
23+
This is the original ereg extension, which has been unbundled from a pre-alpha
24+
version of PHP 7.0.
25+
</notes>
26+
<configureoptions>
27+
<configureoption name="with-regex" default="php" prompt="regex library type (php or system; use php unless you KNOW what you are doing!)?"/>
28+
</configureoptions>
29+
<filelist>
30+
<file role="src" name="config.m4"/>
31+
<file role="src" name="config.w32"/>
32+
<file role="doc" name="CREDITS"/>
33+
<file role="doc" name="README.md"/>
34+
<file role="src" name="ereg.c"/>
35+
<file role="src" name="php_ereg.h"/>
36+
<file role="src" name="php_regex.h"/>
37+
<file role="src" name="regex.patch"/>
38+
<file role="src" name="regex/cclass.h"/>
39+
<file role="src" name="regex/cname.h"/>
40+
<file role="doc" name="regex/COPYRIGHT"/>
41+
<file role="src" name="regex/debug.c"/>
42+
<file role="src" name="regex/debug.ih"/>
43+
<file role="src" name="regex/engine.c"/>
44+
<file role="src" name="regex/engine.ih"/>
45+
<file role="src" name="regex/main.c"/>
46+
<file role="src" name="regex/main.ih"/>
47+
<file role="src" name="regex/mkh"/>
48+
<file role="doc" name="regex/README"/>
49+
<file role="src" name="regex/regcomp.c"/>
50+
<file role="src" name="regex/regcomp.ih"/>
51+
<file role="src" name="regex/regerror.c"/>
52+
<file role="src" name="regex/regerror.ih"/>
53+
<file role="src" name="regex/regex2.h"/>
54+
<file role="doc" name="regex/regex.3"/>
55+
<file role="doc" name="regex/regex.7"/>
56+
<file role="src" name="regex/regexec.c"/>
57+
<file role="src" name="regex/regex.h"/>
58+
<file role="src" name="regex/regex.mak"/>
59+
<file role="src" name="regex/regfree.c"/>
60+
<file role="src" name="regex/split.c"/>
61+
<file role="doc" name="regex/tests"/>
62+
<file role="src" name="regex/utils.h"/>
63+
<file role="doc" name="regex/WHATSNEW"/>
64+
<file role="test" name="tests/001.phpt"/>
65+
<file role="test" name="tests/002.phpt"/>
66+
<file role="test" name="tests/003.phpt"/>
67+
<file role="test" name="tests/004.phpt"/>
68+
<file role="test" name="tests/005.phpt"/>
69+
<file role="test" name="tests/006.phpt"/>
70+
<file role="test" name="tests/007.phpt"/>
71+
<file role="test" name="tests/008.phpt"/>
72+
<file role="test" name="tests/009.phpt"/>
73+
<file role="test" name="tests/010.phpt"/>
74+
<file role="test" name="tests/011.phpt"/>
75+
<file role="test" name="tests/012.phpt"/>
76+
<file role="test" name="tests/013.phpt"/>
77+
<file role="test" name="tests/014.phpt"/>
78+
<file role="test" name="tests/015.phpt"/>
79+
<file role="test" name="tests/016.phpt"/>
80+
<file role="test" name="tests/ereg_basic_001.phpt"/>
81+
<file role="test" name="tests/ereg_basic_002.phpt"/>
82+
<file role="test" name="tests/ereg_basic_003.phpt"/>
83+
<file role="test" name="tests/ereg_basic_004.phpt"/>
84+
<file role="test" name="tests/ereg_error_001.phpt"/>
85+
<file role="test" name="tests/ereg_error_002.phpt"/>
86+
<file role="test" name="tests/ereg_replace_basic_001.phpt"/>
87+
<file role="test" name="tests/ereg_replace_basic_002.phpt"/>
88+
<file role="test" name="tests/ereg_replace_error_001.phpt"/>
89+
<file role="test" name="tests/ereg_replace_error_002.phpt"/>
90+
<file role="test" name="tests/ereg_replace_variation_001.phpt"/>
91+
<file role="test" name="tests/ereg_replace_variation_002.phpt"/>
92+
<file role="test" name="tests/ereg_replace_variation_003.phpt"/>
93+
<file role="test" name="tests/ereg_variation_001.phpt"/>
94+
<file role="test" name="tests/ereg_variation_002.phpt"/>
95+
<file role="test" name="tests/ereg_variation_003.phpt"/>
96+
<file role="test" name="tests/ereg_variation_004.phpt"/>
97+
<file role="test" name="tests/eregi_basic.phpt"/>
98+
<file role="test" name="tests/eregi_basic_001.phpt"/>
99+
<file role="test" name="tests/eregi_basic_002.phpt"/>
100+
<file role="test" name="tests/eregi_basic_003.phpt"/>
101+
<file role="test" name="tests/eregi_basic_004.phpt"/>
102+
<file role="test" name="tests/eregi_error_001.phpt"/>
103+
<file role="test" name="tests/eregi_error_002.phpt"/>
104+
<file role="test" name="tests/eregi_replace_basic.phpt"/>
105+
<file role="test" name="tests/eregi_replace_basic_001.phpt"/>
106+
<file role="test" name="tests/eregi_replace_basic_002.phpt"/>
107+
<file role="test" name="tests/eregi_replace_error_001.phpt"/>
108+
<file role="test" name="tests/eregi_replace_error_002.phpt"/>
109+
<file role="test" name="tests/eregi_replace_variation_001.phpt"/>
110+
<file role="test" name="tests/eregi_replace_variation_002.phpt"/>
111+
<file role="test" name="tests/eregi_replace_variation_003.phpt"/>
112+
<file role="test" name="tests/eregi_variation_001.phpt"/>
113+
<file role="test" name="tests/eregi_variation_002.phpt"/>
114+
<file role="test" name="tests/eregi_variation_003.phpt"/>
115+
<file role="test" name="tests/eregi_variation_004.phpt"/>
116+
<file role="test" name="tests/regular_expressions.inc"/>
117+
<file role="test" name="tests/split_basic_001.phpt"/>
118+
<file role="test" name="tests/split_basic_002.phpt"/>
119+
<file role="test" name="tests/split_basic_003.phpt"/>
120+
<file role="test" name="tests/split_error_001.phpt"/>
121+
<file role="test" name="tests/split_error_002.phpt"/>
122+
<file role="test" name="tests/split_variation_001.phpt"/>
123+
<file role="test" name="tests/split_variation_002.phpt"/>
124+
<file role="test" name="tests/split_variation_003.phpt"/>
125+
<file role="test" name="tests/split_variation_004.phpt"/>
126+
<file role="test" name="tests/spliti_basic_001.phpt"/>
127+
<file role="test" name="tests/spliti_basic_002.phpt"/>
128+
<file role="test" name="tests/spliti_basic_003.phpt"/>
129+
<file role="test" name="tests/spliti_basic_004.phpt"/>
130+
<file role="test" name="tests/spliti_error_001.phpt"/>
131+
<file role="test" name="tests/spliti_error_002.phpt"/>
132+
<file role="test" name="tests/spliti_variation_001.phpt"/>
133+
<file role="test" name="tests/spliti_variation_002.phpt"/>
134+
<file role="test" name="tests/spliti_variation_003.phpt"/>
135+
<file role="test" name="tests/spliti_variation_004.phpt"/>
136+
<file role="test" name="tests/sql_regcase_basic_001.phpt"/>
137+
<file role="test" name="tests/sql_regcase_error_001.phpt"/>
138+
<file role="test" name="tests/sql_regcase_variation_001.phpt"/>
139+
</filelist>
140+
<deps>
141+
<dep type="php" rel="ge" version="7.0.0" />
142+
</deps>
143+
</release>
144+
</package>
145+
<!--
146+
vim:et:ts=1:sw=1
147+
-->

0 commit comments

Comments
 (0)