Browse Source

MFH: fix ReflectionClass::getInterfaces()

PHP-5.1
Michael Wallner 20 years ago
parent
commit
beea63529c
  1. 2
      ext/reflection/php_reflection.c

2
ext/reflection/php_reflection.c

@ -3320,7 +3320,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);
}
}
}

Loading…
Cancel
Save