Skip to content

Commit 1b411c0

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 51ed4a8 + c446452 commit 1b411c0

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

Zend/zend_portability.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,8 @@ char *alloca();
444444
#define MAX(a, b) (((a)>(b))?(a):(b))
445445
#define MIN(a, b) (((a)<(b))?(a):(b))
446446

447-
/* x86 instructions BT, SHL, SHR don't require masking */
448-
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) || defined(ZEND_WIN32)
449-
# define ZEND_BIT_TEST(bits, bit) (((bits)[(bit) / (sizeof((bits)[0])*8)] >> (bit)) & 1)
450-
#else
451-
# define ZEND_BIT_TEST(bits, bit) (((bits)[(bit) / (sizeof((bits)[0])*8)] >> ((bit) & (sizeof((bits)[0])*8-1))) & 1)
452-
#endif
447+
#define ZEND_BIT_TEST(bits, bit) \
448+
(((bits)[(bit) / (sizeof((bits)[0])*8)] >> ((bit) & (sizeof((bits)[0])*8-1))) & 1)
453449

454450
/* We always define a function, even if there's a macro or expression we could
455451
* alias, so that using it in contexts where we can't make function calls

ext/date/php_date.c

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4735,20 +4735,19 @@ PHP_METHOD(DatePeriod, getDateInterval)
47354735
*/
47364736
PHP_METHOD(DatePeriod, getRecurrences)
47374737
{
4738-
php_period_obj *dpobj;
4739-
php_date_obj *dateobj;
4738+
php_period_obj *dpobj;
47404739

4741-
if (zend_parse_parameters_none() == FAILURE) {
4742-
return;
4743-
}
4740+
if (zend_parse_parameters_none() == FAILURE) {
4741+
return;
4742+
}
47444743

4745-
dpobj = Z_PHPPERIOD_P(ZEND_THIS);
4744+
dpobj = Z_PHPPERIOD_P(ZEND_THIS);
47464745

4747-
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4748-
return;
4749-
}
4746+
if (0 == dpobj->recurrences - dpobj->include_start_date) {
4747+
return;
4748+
}
47504749

4751-
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
4750+
RETURN_LONG(dpobj->recurrences - dpobj->include_start_date);
47524751
}
47534752
/* }}} */
47544753

0 commit comments

Comments
 (0)