1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 13:12:16 +02:00
This commit is contained in:
Hannes Magnusson
2006-11-03 14:08:11 +00:00
parent def4975380
commit 7fb679aae2

View File

@@ -1021,7 +1021,7 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z
intern->u.regex.mode = mode;
intern->u.regex.regex = estrndup(regex, regex_len);
intern->u.regex.pce = pcre_get_compiled_regex_cache(regex, regex_len TSRMLS_CC);
if(intern->u.regex.pce == NULL) {
if (intern->u.regex.pce == NULL) {
/* pcre_get_compiled_regex_cache has already sent error */
php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC);
return NULL;