Skip to content

Commit

Permalink
Revert BC break caused by fixing bug #74035
Browse files Browse the repository at this point in the history
This reverts commit 9ffc6ca.
  • Loading branch information
Majkl578 authored and sgolemon committed Nov 6, 2017
1 parent 5060fc2 commit f70ca77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
6 changes: 3 additions & 3 deletions ext/reflection/php_reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -4715,7 +4715,7 @@ ZEND_METHOD(reflection_class, isInstance)
}
/* }}} */

/* {{{ proto public stdclass ReflectionClass::newInstance([mixed* args], ...)
/* {{{ proto public stdclass ReflectionClass::newInstance(mixed* args, ...)
Returns an instance of this class */
ZEND_METHOD(reflection_class, newInstance)
{
Expand Down Expand Up @@ -6419,8 +6419,8 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_isInstance, 0)
ZEND_ARG_INFO(0, object)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_reflection_class_newInstance, 0, 0, 0)
ZEND_ARG_VARIADIC_INFO(0, args)
ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstance, 0)
ZEND_ARG_INFO(0, args)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstanceWithoutConstructor, 0)
Expand Down
2 changes: 1 addition & 1 deletion ext/reflection/tests/ReflectionClass_toString_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
Method [ <internal:Reflection> public method newInstance ] {

- Parameters [1] {
Parameter #0 [ <optional> ...$args ]
Parameter #0 [ <required> $args ]
}
}

Expand Down
11 changes: 0 additions & 11 deletions ext/reflection/tests/bug74035.phpt

This file was deleted.

0 comments on commit f70ca77

Please sign in to comment.