mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-28 11:25:44 +00:00
Fixed NULL pointer dereference
This commit is contained in:
1 parent
0fe209e317
commit
e1d1be148e
1 file changed
+3
-1
@@ -1103,7 +1103,9 @@ ZEND_FUNCTION(method_exists)
|
||||
if (Z_TYPE_P(klass) == IS_OBJECT) {
|
||||
ce = Z_OBJCE_P(klass);
|
||||
} else if (Z_TYPE_P(klass) == IS_STRING) {
|
||||
ce = zend_lookup_class(Z_STR_P(klass) TSRMLS_CC);
|
||||
if ((ce = zend_lookup_class(Z_STR_P(klass) TSRMLS_CC)) == NULL) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user