Skip to content

Commit 134d0b3

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
2 parents d28df11 + eb1373e commit 134d0b3

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

NEWS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ PHP NEWS
3737
. Fixed bug #74022 (PHP Fast CGI crashes when reading from a pfx file).
3838
(Anatol)
3939

40-
- Reflection:
41-
. Fixed bug #74035 (getNumberOfRequiredParameters wrong for
42-
ReflectionClass::newInstance). (Andrew Nester)
43-
4440
- Standard:
4541
. Fixed bug #74005 (mail.add_x_header causes RFC-breaking lone line feed).
4642
(Anatol)

ext/reflection/php_reflection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4813,7 +4813,7 @@ ZEND_METHOD(reflection_class, isInstance)
48134813
}
48144814
/* }}} */
48154815

4816-
/* {{{ proto public stdclass ReflectionClass::newInstance([mixed* args], ...)
4816+
/* {{{ proto public stdclass ReflectionClass::newInstance(mixed* args, ...)
48174817
Returns an instance of this class */
48184818
ZEND_METHOD(reflection_class, newInstance)
48194819
{
@@ -6514,8 +6514,8 @@ ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_isInstance, 0)
65146514
ZEND_ARG_INFO(0, object)
65156515
ZEND_END_ARG_INFO()
65166516

6517-
ZEND_BEGIN_ARG_INFO_EX(arginfo_reflection_class_newInstance, 0, 0, 0)
6518-
ZEND_ARG_VARIADIC_INFO(0, args)
6517+
ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstance, 0)
6518+
ZEND_ARG_INFO(0, args)
65196519
ZEND_END_ARG_INFO()
65206520

65216521
ZEND_BEGIN_ARG_INFO(arginfo_reflection_class_newInstanceWithoutConstructor, 0)

ext/reflection/tests/ReflectionClass_toString_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
265265
Method [ <internal:Reflection> public method newInstance ] {
266266

267267
- Parameters [1] {
268-
Parameter #0 [ <optional> ...$args ]
268+
Parameter #0 [ <required> $args ]
269269
}
270270
}
271271

ext/reflection/tests/bug74035.phpt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)