version 1.1.1.1, 2012/02/21 23:47:54
|
version 1.1.1.2, 2012/05/29 12:34:37
|
Line 27
|
Line 27
|
extern zend_module_entry ereg_module_entry; |
extern zend_module_entry ereg_module_entry; |
#define phpext_ereg_ptr &ereg_module_entry |
#define phpext_ereg_ptr &ereg_module_entry |
|
|
PHPAPI char *php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended); | #ifdef PHP_WIN32 |
| # define PHP_EREG_API __declspec(dllexport) |
| #elif defined(__GNUC__) && __GNUC__ >= 4 |
| # define PHP_EREG_API __attribute__ ((visibility("default"))) |
| #else |
| # define PHP_EREG_API |
| #endif |
|
|
|
PHP_EREG_API char *php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended TSRMLS_DC); |
|
|
PHP_FUNCTION(ereg); |
PHP_FUNCTION(ereg); |
PHP_FUNCTION(eregi); |
PHP_FUNCTION(eregi); |
PHP_FUNCTION(eregi_replace); |
PHP_FUNCTION(eregi_replace); |
PHP_FUNCTION(ereg_replace); |
PHP_FUNCTION(ereg_replace); |
PHP_FUNCTION(split); |
PHP_FUNCTION(split); |
PHP_FUNCTION(spliti); |
PHP_FUNCTION(spliti); |
PHPAPI PHP_FUNCTION(sql_regcase); | PHP_EREG_API PHP_FUNCTION(sql_regcase); |
|
|
ZEND_BEGIN_MODULE_GLOBALS(ereg) |
ZEND_BEGIN_MODULE_GLOBALS(ereg) |
HashTable ht_rc; |
HashTable ht_rc; |
Line 43 ZEND_BEGIN_MODULE_GLOBALS(ereg)
|
Line 51 ZEND_BEGIN_MODULE_GLOBALS(ereg)
|
ZEND_END_MODULE_GLOBALS(ereg) |
ZEND_END_MODULE_GLOBALS(ereg) |
|
|
/* Module functions */ |
/* Module functions */ |
PHP_MINIT_FUNCTION(ereg); |
|
PHP_MSHUTDOWN_FUNCTION(ereg); |
|
PHP_MINFO_FUNCTION(ereg); |
PHP_MINFO_FUNCTION(ereg); |
|
|
#ifdef ZTS |
#ifdef ZTS |
Line 52 PHP_MINFO_FUNCTION(ereg);
|
Line 58 PHP_MINFO_FUNCTION(ereg);
|
#else |
#else |
#define EREG(v) (ereg_globals.v) |
#define EREG(v) (ereg_globals.v) |
#endif |
#endif |
|
|
|
ZEND_EXTERN_MODULE_GLOBALS(ereg) |
|
|
#endif /* REG_H */ |
#endif /* REG_H */ |