MFH: return NULL in case of error

This commit is contained in:
Antony Dovgal 2006-05-29 20:26:32 +00:00
parent aa40595644
commit 8ca3826a28

View File

@ -1115,6 +1115,10 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len,
}
} else {
pcre_handle_exec_error(count TSRMLS_CC);
if (result) {
efree(result);
result = NULL;
}
break;
}