tony2001 Tue Jul 24 22:34:17 2007 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
add PCRE_VERSION constant to ext/pcre
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.216&r2=1.217&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.216 php-src/ext/pcre/php_pcre.c:1.217
--- php-src/ext/pcre/php_pcre.c:1.216 Tue Jul 10 09:57:23 2007
+++ php-src/ext/pcre/php_pcre.c Tue Jul 24 22:34:17 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.216 2007/07/10 09:57:23 dmitry Exp $ */
+/* $Id: php_pcre.c,v 1.217 2007/07/24 22:34:17 tony2001 Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -66,7 +66,7 @@
int cp_offset;
} offset_map_t;
-ZEND_DECLARE_MODULE_GLOBALS(pcre);
+ZEND_DECLARE_MODULE_GLOBALS(pcre)
static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */
@@ -161,6 +161,7 @@
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_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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php