Skip to content

Commit 3e267ca

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fix #76131 some arginfo params are different from the documentation
2 parents a492fe2 + 63934ea commit 3e267ca

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

NEWS

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ PHP NEWS
66
. Fixed bug #75722 (Convert valgrind detection to configure option).
77
(Michael Heimpold)
88

9-
- Mbstring:
9+
- Date:
10+
. Fixed bug #76131 (mismatch arginfo for date_create). (carusogabriel)
11+
12+
- mbstring:
1013
. Fixed bug #75944 (Wrong cp1251 detection). (dmk001)
1114
. Fixed bug #76113 (mbstring does not build with Oniguruma 6.8.1).
1215
(chrullrich, cmb)
@@ -18,6 +21,10 @@ PHP NEWS
1821
- Opcache:
1922
. Fixed bug #76094 (Access violation when using opcache). (Laruence)
2023

24+
- SPL:
25+
. Fixed bug #76131 (mismatch arginfo for splarray constructor).
26+
(carusogabriel)
27+
2128
- Standard:
2229
. Fixed bug #74139 (mail.add_x_header default inconsistent with docs). (cmb)
2330

ext/date/php_date.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ ZEND_END_ARG_INFO()
162162

163163
ZEND_BEGIN_ARG_INFO_EX(arginfo_date_create, 0, 0, 0)
164164
ZEND_ARG_INFO(0, time)
165-
ZEND_ARG_INFO(0, object)
165+
ZEND_ARG_INFO(0, timezone)
166166
ZEND_END_ARG_INFO()
167167

168168
ZEND_BEGIN_ARG_INFO_EX(arginfo_date_create_from_format, 0, 0, 2)
@@ -2042,9 +2042,9 @@ static int date_interval_has_property(zval *object, zval *member, int type, void
20422042
}
20432043
return retval;
20442044
}
2045-
2045+
20462046
prop = date_interval_read_property(object, member, BP_VAR_IS, cache_slot, &rv);
2047-
2047+
20482048
if (prop != &EG(uninitialized_zval)) {
20492049
if (type == 2) {
20502050
retval = 1;
@@ -2062,7 +2062,7 @@ static int date_interval_has_property(zval *object, zval *member, int type, void
20622062
}
20632063

20642064
return retval;
2065-
2065+
20662066
}
20672067
/* }}} */
20682068

@@ -2435,7 +2435,7 @@ static HashTable *date_object_get_debug_info_timezone(zval *object, int *is_temp
24352435

24362436
*is_temp = 1;
24372437
ht = zend_array_dup(props);
2438-
2438+
24392439
ZVAL_LONG(&zv, tzobj->type);
24402440
zend_hash_str_update(ht, "timezone_type", sizeof("timezone_type")-1, &zv);
24412441

ext/spl/spl_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,8 +1883,8 @@ SPL_METHOD(Array, unserialize)
18831883

18841884
/* {{{ arginfo and function table */
18851885
ZEND_BEGIN_ARG_INFO_EX(arginfo_array___construct, 0, 0, 0)
1886-
ZEND_ARG_INFO(0, array)
1887-
ZEND_ARG_INFO(0, ar_flags)
1886+
ZEND_ARG_INFO(0, input)
1887+
ZEND_ARG_INFO(0, flags)
18881888
ZEND_ARG_INFO(0, iterator_class)
18891889
ZEND_END_ARG_INFO()
18901890

0 commit comments

Comments
 (0)