1 diff -ur php-4.4.9.org/ext/pcre/php_pcre.c php-4.4.9/ext/pcre/php_pcre.c
2 --- php-4.4.9.org/ext/pcre/php_pcre.c 2007-12-31 08:22:50.000000000 +0100
3 +++ php-4.4.9/ext/pcre/php_pcre.c 2012-07-02 14:17:54.974558709 +0200
9 unsigned const char *tables = NULL;
11 char *locale = setlocale(LC_CTYPE, NULL);
13 regex_len = strlen(regex);
14 if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) {
16 - * We use a quick pcre_info() check to see whether cache is corrupted, and if it
17 + * We use a quick pcre_fullinfo() check to see whether cache is corrupted, and if it
18 * is, we flush it and compile the pattern from scratch.
20 - if (pcre_info(pce->re, NULL, NULL) == PCRE_ERROR_BADMAGIC) {
21 + if (pcre_fullinfo(pce->re, NULL, PCRE_INFO_CAPTURECOUNT, &count) == PCRE_ERROR_BADMAGIC) {
22 zend_hash_clean(&PCRE_G(pcre_cache));