Skip to content

Commit

Permalink
Fix #496
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay authored and dreamsxin committed Apr 22, 2020
1 parent 40c0c21 commit f52a402
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/aop.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ static int strcmp_with_joker_case(char *str_with_jok, char *str, int case_sensit
static int pointcut_match_zend_class_entry(phalcon_aop_pointcut *pc, zend_class_entry *ce) /*{{{*/
{
int i, matches;
if (pc == NULL || pc->re_class == NULL) {
return 0;
}

#if PHP_VERSION_ID >= 70300
pcre2_match_data *match_data = php_pcre_create_match_data(0, pc->re_class);
Expand Down Expand Up @@ -285,7 +288,7 @@ static int pointcut_match_zend_function(phalcon_aop_pointcut *pc, zend_execute_d
if (pc->method_jok) {
int matches;
#if PHP_VERSION_ID >= 70300
pcre2_match_data *match_data = php_pcre_create_match_data(0, pc->re_class);
pcre2_match_data *match_data = php_pcre_create_match_data(0, pc->re_method);
if (NULL == match_data) {
return 0;
}
Expand Down

0 comments on commit f52a402

Please sign in to comment.