Skip to content

Commit abad64c

Browse files
committed
Merge remote-tracking branch 'origin/PHP-5.6' into str_size_and_int64_56_backport
* origin/PHP-5.6: Updated NEWS for #67043 Fixed bug 67043 cleanup Fixes bug #66071: isc_interprete is unsafe and deprecated , it is replaced with fb_iterpret updated libs versions fixed the test for ICI >= 52.1 Fix Linux specific fail in error traces Linux apparently does not like memcpy in overlapping regions... add missing skip to the output, so we actually skip this test fix the test according to how new date code does it fix to work on different ICU versions multibytes tests still fail, put them in XFAIL Conflicts: ext/standard/string.c
2 parents d308724 + 2cdf38b commit abad64c

16 files changed

+461
-33
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ PHP NEWS
1111
. Fixed bug #66182 (exit in stream filter produces segfault). (Mike)
1212
. Fixed bug #66736 (fpassthru broken). (Mike)
1313
. Fixed bug #66822 (Cannot use T_POW in const expression) (Tjerk)
14+
. Fixed bug #67043 (substr_compare broke by previous change) (Tjerk)
1415

1516
- SPL:
1617
. Added feature #65545 (SplFileObject::fread()) (Tjerk)

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ ZEND_METHOD(error_exception, getSeverity)
365365

366366
#define TRACE_ARG_APPEND(vallen) \
367367
*str = (char*)erealloc(*str, *len + 1 + vallen); \
368-
memcpy((*str) + *len - l_added + 1 + vallen, (*str) + *len - l_added + 1, l_added);
368+
memmove((*str) + *len - l_added + 1 + vallen, (*str) + *len - l_added + 1, l_added);
369369

370370
/* }}} */
371371

ext/intl/tests/dateformat_format.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -359,40 +359,40 @@ Formatted DateTime is : 20091231 03:02 PM
359359
------------
360360
Date is: DateTime::__set_state(array(
361361
'date' => '2000-12-30 19:04:05',
362-
'timezone_type' => 3,
363-
'timezone' => 'America/Los_Angeles',
362+
'timezone_type' => 2,
363+
'timezone' => 'PDT',
364364
))
365365
------------
366366
Formatted DateTime is : Saturday, December 30, 2000 5:04:05 PM GMT-10:00
367367
------------
368368
Date is: DateTime::__set_state(array(
369369
'date' => '2000-12-30 19:04:05',
370-
'timezone_type' => 3,
371-
'timezone' => 'America/Los_Angeles',
370+
'timezone_type' => 2,
371+
'timezone' => 'PDT',
372372
))
373373
------------
374374
Formatted DateTime is : December 30, 2000 5:04:05 PM GMT-10:00
375375
------------
376376
Date is: DateTime::__set_state(array(
377377
'date' => '2000-12-30 19:04:05',
378-
'timezone_type' => 3,
379-
'timezone' => 'America/Los_Angeles',
378+
'timezone_type' => 2,
379+
'timezone' => 'PDT',
380380
))
381381
------------
382382
Formatted DateTime is : Dec 30, 2000 5:04:05 PM
383383
------------
384384
Date is: DateTime::__set_state(array(
385385
'date' => '2000-12-30 19:04:05',
386-
'timezone_type' => 3,
387-
'timezone' => 'America/Los_Angeles',
386+
'timezone_type' => 2,
387+
'timezone' => 'PDT',
388388
))
389389
------------
390390
Formatted DateTime is : 12/30/00 5:04 PM
391391
------------
392392
Date is: DateTime::__set_state(array(
393393
'date' => '2000-12-30 19:04:05',
394-
'timezone_type' => 3,
395-
'timezone' => 'America/Los_Angeles',
394+
'timezone_type' => 2,
395+
'timezone' => 'PDT',
396396
))
397397
------------
398398
Formatted DateTime is : 20001230 05:04 PM

ext/intl/tests/dateformat_format_variant2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
datefmt_format_code()
33
--SKIPIF--
44
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5-
<?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0) die('skip for ICU >= 51.2'); ?>
5+
<?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0 || version_compare(INTL_ICU_VERSION, '52.1') >= 0) die('skip for ICU >= 51.2 && ICU < 52.1'); ?>
66
--FILE--
77
<?php
88

0 commit comments

Comments
 (0)