]> granicus.if.org Git - php/commitdiff
- Fix Bug #30344
authorMarcus Boerger <helly@php.net>
Wed, 6 Oct 2004 21:23:18 +0000 (21:23 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 6 Oct 2004 21:23:18 +0000 (21:23 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index 7f504f0e116c6364a4840e03fc67c08dcb364321..b40b8f200ef80acd6ce7ec1ae0bbe0f52f7e186b 100644 (file)
@@ -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);
        }
 }
 /* }}} */
index 7f504f0e116c6364a4840e03fc67c08dcb364321..b40b8f200ef80acd6ce7ec1ae0bbe0f52f7e186b 100644 (file)
@@ -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);
        }
 }
 /* }}} */