Comments (1)
Possible fix:
diff --git a/ext/aop.c b/ext/aop.c
index 0bbb40003..df38204d4 100644
--- a/ext/aop.c
+++ b/ext/aop.c
@@ -149,6 +149,10 @@ static int pointcut_match_zend_class_entry(phalcon_aop_pointcut *pc, zend_class_
{
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);
if (NULL == match_data) {
@@ -222,7 +226,7 @@ static int pointcut_match_zend_class_entry(phalcon_aop_pointcut *pc, zend_class_
#endif
ce = ce->parent;
}
-
+
#if PHP_VERSION_ID >= 70300
php_pcre_free_match_data(match_data);
#endif
@@ -285,7 +289,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;
}
from cphalcon7.
Related Issues (20)
- 作者你的文档网站访问不了 HOT 1
- master版本安装失败 HOT 1
- Model::find() 报错 Can't obtain the model 'Neko\\Models\\User' source from the _models list, when preparing: SELECT [Neko\\Models\\User].* FROM [Neko\\Models\\User] WHERE name = 2 HOT 1
- macos编译安装报错 HOT 4
- 请问在windows下怎么编译 HOT 3
- phalcon会话的问题。 HOT 2
- phalcon7图像处理相关bug HOT 1
- 图像处理类的问题 HOT 2
- make: warning: Clock skew detected. Your build may be incomplete. HOT 10
- 能否通过Pecl 安装phalcon扩展 HOT 2
- Segmentation fault on addAround HOT 1
- Phalcon\Aop::addAfterReturning does not work with interfaces HOT 2
- Phalcon\Aop::addAround does not work with traits HOT 1
- 你好 ,我编译的时候报错 HOT 6
- 能不能增加个windows的 HOT 1
- mac环境make报错 HOT 1
- 从model::findFirst取出数据toArray后通过redis->hMSet存储导致php崩溃 HOT 3
- 为什么不扩展到官方库 HOT 1
- undefined symbol: zend_string_release_ex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cphalcon7.