Skip to content

Commit 6cc0188

Browse files
committed
Merge branch 'PHP-7.0'
* PHP-7.0: fix tests
2 parents f1dc4a4 + d964ccb commit 6cc0188

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

ext/session/tests/bug32330.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ $_SESSION['E'] = 'F';
6969
?>
7070
--EXPECTF--
7171
open: path = /tmp, name = sid
72-
gc: maxlifetime = %d
7372
read: id = %s
73+
gc: maxlifetime = %d
7474
write: id = %s, data = A|s:1:"B";
7575
close
7676
open: path = /tmp, name = sid
77-
gc: maxlifetime = %d
7877
read: id = %s
78+
gc: maxlifetime = %d
7979
destroy: id = %s
8080
close
8181
open: path = /tmp, name = sid
82-
gc: maxlifetime = %d
8382
read: id = %s
83+
gc: maxlifetime = %d
8484
write: id = %s, data = E|s:1:"F";
8585
close

ext/session/tests/session_set_save_handler_variation4.phpt

+11-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ ob_end_flush();
5252
*** Testing session_set_save_handler() : variation ***
5353

5454
Open [%s,PHPSESSID]
55+
Read [%s,%s]
5556
GC [0]
5657
1 deleted
57-
Read [%s,%s]
5858
array(3) {
5959
["Blah"]=>
6060
string(12) "Hello World!"
@@ -67,12 +67,20 @@ Write [%s,%s,Blah|s:12:"Hello World!";Foo|b:0;Guff|i:1234567890;]
6767
Close [%s,PHPSESSID]
6868
NULL
6969
Open [%s,PHPSESSID]
70+
Read [%s,%s]
7071
GC [0]
7172
1 deleted
72-
Read [%s,%s]
73-
array(0) {
73+
array(3) {
74+
["Blah"]=>
75+
string(12) "Hello World!"
76+
["Foo"]=>
77+
bool(false)
78+
["Guff"]=>
79+
int(1234567890)
7480
}
7581
Destroy [%s,%s]
82+
83+
Warning: unlink(%s): No such file or directory in %s on line %s
7684
Close [%s,PHPSESSID]
7785
bool(true)
7886

ext/session/tests/session_set_save_handler_variation5.phpt

+5-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ string(0) ""
6262
bool(true)
6363
Open [%s,PHPSESSID]
6464
CreateID [PHPT-%d]
65+
Read [%s,PHPT-%d]
6566
GC [0]
6667
1 deleted
67-
Read [%s,PHPT-%d]
6868
bool(true)
6969
string(%d) "PHPT-%d"
7070
Write [%s,PHPT-%d,]
@@ -76,9 +76,9 @@ string(%d) "PHPT-%d"
7676
bool(true)
7777
Open [%s,PHPSESSID]
7878
ValidateID [%s,PHPT-%d]
79+
Read [%s,PHPT-%d]
7980
GC [0]
8081
1 deleted
81-
Read [%s,PHPT-%d]
8282
bool(true)
8383
Write [%s,PHPT-%d,]
8484
Close [%s,PHPSESSID]
@@ -88,10 +88,12 @@ string(%d) "PHPT-%d"
8888
string(%d) "PHPT-%d"
8989
Open [%s,PHPSESSID]
9090
ValidateID [%s,PHPT-%d]
91+
Read [%s,PHPT-%d]
9192
GC [0]
9293
1 deleted
93-
Read [%s,PHPT-%d]
9494
bool(true)
9595
Destroy [%s,PHPT-%d]
96+
97+
Warning: unlink(%s): No such file or directory in %s on line %d
9698
Close [%s,PHPSESSID]
9799
bool(true)

0 commit comments

Comments
 (0)