1999-04-17 00:37:12 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2007-12-31 07:17:19 +00:00
|
|
|
| Copyright (c) 1997-2008 The PHP Group |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2000-07-24 01:40:02 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2000-07-24 01:40:02 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2002-02-28 08:29:35 +00:00
|
|
|
| Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-04-17 00:37:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2007-10-05 15:00:09 +00:00
|
|
|
#ifndef EREG_H
|
|
|
|
#define EREG_H
|
1999-04-17 00:37:12 +00:00
|
|
|
|
2007-10-05 15:00:09 +00:00
|
|
|
#include "php_regex.h"
|
|
|
|
|
|
|
|
extern zend_module_entry 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);
|
1999-05-12 15:40:15 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(ereg);
|
|
|
|
PHP_FUNCTION(eregi);
|
1999-07-24 22:16:54 +00:00
|
|
|
PHP_FUNCTION(eregi_replace);
|
|
|
|
PHP_FUNCTION(ereg_replace);
|
1999-05-12 15:40:15 +00:00
|
|
|
PHP_FUNCTION(split);
|
2000-06-23 11:48:02 +00:00
|
|
|
PHP_FUNCTION(spliti);
|
1999-05-13 15:54:49 +00:00
|
|
|
PHPAPI PHP_FUNCTION(sql_regcase);
|
1999-05-12 15:40:15 +00:00
|
|
|
|
2007-10-05 15:00:09 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(ereg)
|
1999-05-12 15:40:15 +00:00
|
|
|
HashTable ht_rc;
|
2007-10-05 15:00:09 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(ereg)
|
2000-03-06 20:37:11 +00:00
|
|
|
|
2007-10-05 15:00:09 +00:00
|
|
|
/* Module functions */
|
|
|
|
PHP_MINIT_FUNCTION(ereg);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(ereg);
|
|
|
|
PHP_MINFO_FUNCTION(ereg);
|
1999-05-12 15:40:15 +00:00
|
|
|
|
|
|
|
#ifdef ZTS
|
2007-10-05 15:00:09 +00:00
|
|
|
#define EREG(v) TSRMG(ereg_globals_id, zend_ereg_globals *, v)
|
1999-05-12 15:40:15 +00:00
|
|
|
#else
|
2007-10-05 15:00:09 +00:00
|
|
|
#define EREG(v) (ereg_globals.v)
|
1999-05-12 15:40:15 +00:00
|
|
|
#endif
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* REG_H */
|