Skip to content

Commit 0c404c0

Browse files
committed
fix tests
1 parent 34fbf71 commit 0c404c0

5 files changed

+10
-10
lines changed

ext/session/tests/session_cache_expire_basic.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ var_dump(session_cache_expire());
2222
echo "Done";
2323
ob_end_flush();
2424
?>
25-
--EXPECT--
25+
--EXPECTF--
2626
*** Testing session_cache_expire() : basic functionality ***
2727
int(180)
2828
int(180)
29-
int(1234567890)
29+
int(%d)
3030
bool(true)
3131
int(180)
3232
bool(true)

ext/session/tests/session_cache_expire_oflow.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ob_start();
1212
echo "*** Testing session_cache_expire() : overflow test ***\n";
1313

1414
session_cache_limiter("public");
15-
var_dump(session_cache_expire(PHP_INT_MAX));
15+
var_dump(session_cache_expire((int)(PHP_INT_MAX/2)));
1616
session_start();
1717
var_dump(session_cache_expire() * 60);
1818

ext/session/tests/session_cache_expire_variation1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ var_dump(session_cache_expire());
2424
echo "Done";
2525
ob_end_flush();
2626
?>
27-
--EXPECT--
27+
--EXPECTF--
2828
*** Testing session_cache_expire() : variation ***
2929
int(360)
3030
int(360)
31-
int(1234567890)
31+
int(%d)
3232
bool(true)
3333
int(180)
3434
bool(true)

ext/session/tests/session_cache_expire_variation2.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ var_dump(session_cache_expire());
2323
echo "Done";
2424
ob_end_flush();
2525
?>
26-
--EXPECT--
26+
--EXPECTF--
2727
*** Testing session_cache_expire() : variation ***
2828
int(360)
2929
int(360)
30-
int(1234567890)
30+
int(%d)
3131
bool(true)
3232
int(180)
3333
bool(true)

ext/session/tests/session_cache_expire_variation3.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ var_dump(ini_get("session.cache_expire"));
2626
echo "Done";
2727
ob_end_flush();
2828
?>
29-
--EXPECT--
29+
--EXPECTF--
3030
*** Testing session_cache_expire() : variation ***
3131
string(3) "180"
3232
int(180)
3333
string(3) "180"
3434
int(180)
3535
string(10) "1234567890"
3636
bool(true)
37-
int(1234567890)
37+
int(%d)
3838
string(10) "1234567890"
3939
bool(true)
40-
int(1234567890)
40+
int(%d)
4141
string(10) "1234567890"
4242
Done

0 commit comments

Comments
 (0)