Skip to content

Commit

Permalink
[DOC] MFH: add PCRE_VERSION constant to ext/pcre
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Jul 24, 2007
1 parent 99a162b commit 3afa134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -34,6 +34,7 @@ PHP NEWS
- Added CURLOPT_PRIVATE & CURLINFO_PRIVATE constants. - Added CURLOPT_PRIVATE & CURLINFO_PRIVATE constants.
(Andrey A. Belashkov, Tony) (Andrey A. Belashkov, Tony)
- Added missing MSG_EOR and MSG_EOF constants to sockets extension. (Jani) - Added missing MSG_EOR and MSG_EOF constants to sockets extension. (Jani)
- Added PCRE_VERSION constant. (Tony)


- Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not handle - Implemented FR #41884 (ReflectionClass::getDefaultProperties() does not handle
static attributes). (Tony) static attributes). (Tony)
Expand Down
3 changes: 2 additions & 1 deletion ext/pcre/php_pcre.c
Expand Up @@ -56,7 +56,7 @@ enum {
}; };




ZEND_DECLARE_MODULE_GLOBALS(pcre); ZEND_DECLARE_MODULE_GLOBALS(pcre)




static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */ static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */
Expand Down Expand Up @@ -149,6 +149,7 @@ static PHP_MINIT_FUNCTION(pcre)
REGISTER_LONG_CONSTANT("PREG_BACKTRACK_LIMIT_ERROR", PHP_PCRE_BACKTRACK_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_BACKTRACK_LIMIT_ERROR", PHP_PCRE_BACKTRACK_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PREG_RECURSION_LIMIT_ERROR", PHP_PCRE_RECURSION_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_RECURSION_LIMIT_ERROR", PHP_PCRE_RECURSION_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PREG_BAD_UTF8_ERROR", PHP_PCRE_BAD_UTF8_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_BAD_UTF8_ERROR", PHP_PCRE_BAD_UTF8_ERROR, CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("PCRE_VERSION", (char *)pcre_version(), CONST_CS | CONST_PERSISTENT);


return SUCCESS; return SUCCESS;
} }
Expand Down

0 comments on commit 3afa134

Please sign in to comment.