2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2013 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.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 | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
16 +----------------------------------------------------------------------+
25 #include "php_regex.h"
27 extern zend_module_entry ereg_module_entry
;
28 #define phpext_ereg_ptr &ereg_module_entry
31 # define PHP_EREG_API __declspec(dllexport)
32 #elif defined(__GNUC__) && __GNUC__ >= 4
33 # define PHP_EREG_API __attribute__ ((visibility("default")))
38 PHP_EREG_API
char *php_ereg_replace(const char *pattern
, const char *replace
, const char *string
, int icase
, int extended TSRMLS_DC
);
42 PHP_FUNCTION(eregi_replace
);
43 PHP_FUNCTION(ereg_replace
);
46 PHP_EREG_API
PHP_FUNCTION(sql_regcase
);
48 ZEND_BEGIN_MODULE_GLOBALS(ereg
)
50 unsigned int lru_counter
;
51 ZEND_END_MODULE_GLOBALS(ereg
)
53 /* Module functions */
54 PHP_MINFO_FUNCTION(ereg
);
57 #define EREG(v) TSRMG(ereg_globals_id, zend_ereg_globals *, v)
59 #define EREG(v) (ereg_globals.v)
62 ZEND_EXTERN_MODULE_GLOBALS(ereg
)