diff options
author | Felipe Pena <felipe@php.net> | 2010-07-29 01:59:40 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-07-29 01:59:40 +0000 |
commit | 6944a24328240d7f3f1ddca4ade58c39135b301b (patch) | |
tree | 2ceb130e63711e940852dbe34bee6f8c29f72cb2 /ext/reflection/php_reflection.c | |
parent | e4be370479372e2d3dffa30c5680c7ea5d393a62 (diff) | |
download | php-git-6944a24328240d7f3f1ddca4ade58c39135b301b.tar.gz |
- Makes "parent" and "self" checking case-insensitive
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index e922bde093..77070e53d2 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2324,7 +2324,7 @@ ZEND_METHOD(reflection_parameter, getClass) * TODO: Think about moving these checks to the compiler or some sort of * lint-mode. */ - if (0 == strncmp(param->arg_info->class_name, "self", sizeof("self")- 1)) { + if (0 == zend_binary_strcasecmp(param->arg_info->class_name, param->arg_info->class_name_len, "self", sizeof("self")- 1)) { ce = param->fptr->common.scope; if (!ce) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, @@ -2332,7 +2332,7 @@ ZEND_METHOD(reflection_parameter, getClass) return; } pce= &ce; - } else if (0 == strncmp(param->arg_info->class_name, "parent", sizeof("parent")- 1)) { + } else if (0 == zend_binary_strcasecmp(param->arg_info->class_name, param->arg_info->class_name_len, "parent", sizeof("parent")- 1)) { ce = param->fptr->common.scope; if (!ce) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, |