diff options
author | Marcus Boerger <helly@php.net> | 2004-10-06 21:23:18 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-10-06 21:23:18 +0000 |
commit | ca6558a4068ab020eee60e3e34f204b1c11e7dbe (patch) | |
tree | cb45c94e1e4d0bdfc840be093d957ec806e8ac94 /ext/reflection/php_reflection.c | |
parent | 1d7a8a9e6958389d935ddc106cfcda52286b2267 (diff) | |
download | php-git-ca6558a4068ab020eee60e3e34f204b1c11e7dbe.tar.gz |
- Fix Bug #30344
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7f504f0e11..b40b8f200e 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1131,27 +1131,27 @@ ZEND_METHOD(reflection, getModifierNames) array_init(return_value); if (modifiers & (ZEND_ACC_ABSTRACT | ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) { - add_next_index_stringl(return_value, "abstract", sizeof("abstract"), 1); + add_next_index_stringl(return_value, "abstract", sizeof("abstract")-1, 1); } if (modifiers & (ZEND_ACC_FINAL | ZEND_ACC_FINAL_CLASS)) { - add_next_index_stringl(return_value, "final", sizeof("final"), 1); + add_next_index_stringl(return_value, "final", sizeof("final")-1, 1); } /* These are mutually exclusive */ switch (modifiers & ZEND_ACC_PPP_MASK) { case ZEND_ACC_PUBLIC: - add_next_index_stringl(return_value, "public", sizeof("public"), 1); + add_next_index_stringl(return_value, "public", sizeof("public")-1, 1); break; case ZEND_ACC_PRIVATE: - add_next_index_stringl(return_value, "private", sizeof("private"), 1); + add_next_index_stringl(return_value, "private", sizeof("private")-1, 1); break; case ZEND_ACC_PROTECTED: - add_next_index_stringl(return_value, "protected", sizeof("protected"), 1); + add_next_index_stringl(return_value, "protected", sizeof("protected")-1, 1); break; } if (modifiers & ZEND_ACC_STATIC) { - add_next_index_stringl(return_value, "static", sizeof("static"), 1); + add_next_index_stringl(return_value, "static", sizeof("static")-1, 1); } } /* }}} */ |