summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2008-02-02 15:48:04 +0000
committerMarcus Boerger <helly@php.net>2008-02-02 15:48:04 +0000
commitda5b979f8888a5910850304051d78f0a17000f13 (patch)
tree15e49a97f66346781f11512138ce54f8fa3176ae /Zend/zend_API.c
parent1cc463b88a48c2e83c0ad2a2c683da3f50a1b085 (diff)
downloadphp-git-da5b979f8888a5910850304051d78f0a17000f13.tar.gz
- MFH Add comment that explains why we need E_ERROR in those cases
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 7cc2189181..fe921a0ddc 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2406,6 +2406,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze
severity = E_STRICT;
verb = "should not";
} else {
+ /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
severity = E_ERROR;
verb = "cannot";
}