]> granicus.if.org Git - php/commitdiff
- fix ReflectionClass::getInterfaces()
authorMichael Wallner <mike@php.net>
Mon, 6 Feb 2006 20:11:56 +0000 (20:11 +0000)
committerMichael Wallner <mike@php.net>
Mon, 6 Feb 2006 20:11:56 +0000 (20:11 +0000)
ext/reflection/php_reflection.c

index c8379393c16896d8345e1e53a6243e0f5eba03a6..4e2ab3215cd2907273b9640e8aaa2edbf21693bc 100644 (file)
@@ -3334,7 +3334,7 @@ ZEND_METHOD(reflection_class, getInterfaces)
                        zval *interface;
                        ALLOC_ZVAL(interface);
                        zend_reflection_class_factory(ce->interfaces[i], interface TSRMLS_CC);
-                       add_assoc_zval_ex(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length, interface);
+                       add_assoc_zval_ex(return_value, ce->interfaces[i]->name, ce->interfaces[i]->name_length + 1, interface);
                }
        }
 }