Skip to content

Commit 0aa3acc

Browse files
villfanikic
authored andcommitted
Fix borked SKIPIFs
1 parent 1f0ffec commit 0aa3acc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+74
-57
lines changed

ext/curl/tests/bug54995.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bug #54995 (Missing CURLINFO_RESPONSE_CODE support)
44
<?php
55
include 'skipif.inc';
66

7-
if ($curl_version['version_number'] > 0x070a08) {
7+
if (curl_version()['version_number'] > 0x070a08) {
88
exit("skip: tests works a versions of curl >= 7.10.8");
99
}
1010
?>

ext/date/tests/big_year.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Handling of large year values
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?>
4+
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
55
--FILE--
66
<?php
77
date_default_timezone_set("America/Toronto");

ext/date/tests/bug26317.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Bug #26317 (military timezone offset signedness)
33
--INI--
44
date.timezone=GMT0
55
--SKIPIF--
6+
<?php
67
if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
78
die("skip unable to change TZ environment variable\n");
89
}
10+
?>
911
--FILE--
1012
<?php
1113
echo date("Y-m-d H:i:s\n", strtotime("2003-11-19 16:20:42 Z"));

ext/date/tests/bug26320.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Bug #26320 (strtotime handling of XML Schema/ISO 8601 format)
33
--INI--
44
date.timezone=GMT0
55
--SKIPIF--
6+
<?php
67
if (!@putenv("TZ=GMT0") || getenv("TZ") != 'GMT0') {
78
die("skip unable to change TZ environment variable\n");
89
}
10+
?>
911
--FILE--
1012
<?php
1113
echo date("Y-m-d H:i:s\n", strtotime("2003-11-19T12:30:42"));

ext/date/tests/bug41523-64bit.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30) (64 bit)
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?>
4+
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
55
--FILE--
66
<?php
77
date_default_timezone_set("UTC");

ext/date/tests/bug41523.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30) (32 bit)
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE == 8 ? "skip 32-bit only" : "OK"; ?>
4+
<?php if (PHP_INT_SIZE == 8) die("skip 32-bit only"); ?>
55
--FILE--
66
<?php
77
date_default_timezone_set("UTC");

ext/date/tests/bug75851.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Test for bug #75851: Year component overflow with date formats "c", "o", "r" and "y"
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?>
4+
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
55
--INI--
66
date.timezone = UTC
77
--FILE--

ext/date/tests/mktime-3-64bit.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
mktime() [3] (64-bit)
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK" ?>
4+
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
55
--INI--
66
error_reporting=2047
77
--FILE--

ext/date/tests/mktime-3.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
mktime() [3] (32-bit)
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE == 8 ? "skip 32-bit only" : "OK" ?>
4+
<?php if (PHP_INT_SIZE == 8) die("skip 32-bit only"); ?>
55
--INI--
66
error_reporting=2047
77
--FILE--

ext/date/tests/strtotime-mysql-64bit.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
strtotime() and mysql timestamps (64 bit)
33
--SKIPIF--
4-
<?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?>
4+
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
55
--FILE--
66
<?php
77
date_default_timezone_set('UTC');

0 commit comments

Comments
 (0)