File tree Expand file tree Collapse file tree 2 files changed +94
-0
lines changed Expand file tree Collapse file tree 2 files changed +94
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ rewriter correctly handles attribute names which contain dashes
3
+ --SKIPIF--
4
+ <?php include ('skipif.inc ' ); ?>
5
+ --INI--
6
+ session.use_cookies=0
7
+ session.cache_limiter=
8
+ session.use_trans_sid=1
9
+ --FILE--
10
+ <?php
11
+
12
+ error_reporting (E_ALL );
13
+
14
+ session_id ("abtest " );
15
+ session_start ();
16
+ ?>
17
+ <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php>
18
+ <?php
19
+ session_destroy ();
20
+ ?>
21
+ --EXPECT--
22
+ <form accept-charset="ISO-8859-15, ISO-8859-1" action=url.php><input type="hidden" name="PHPSESSID" value="abtest" />
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ serializing references test case using globals
3
+ --SKIPIF--
4
+ <?php include ('skipif.inc ' ); ?>
5
+ --INI--
6
+ session.use_cookies=0
7
+ session.cache_limiter=
8
+ session.use_trans_sid=1
9
+ register_globals=1
10
+ --FILE--
11
+ <?php
12
+
13
+ error_reporting (E_ALL );
14
+
15
+ class TFoo {
16
+ var $ c ;
17
+ function TFoo ($ c ) {
18
+ $ this ->c = $ c ;
19
+ }
20
+ function inc () {
21
+ $ this ->c ++;
22
+ }
23
+ }
24
+
25
+ session_id ("abtest " );
26
+ session_register ('o1 ' , 'o2 ' );
27
+ session_start ();
28
+
29
+ $ o1 =& new TFoo (42 );
30
+ $ o2 =& $ o1 ;
31
+
32
+ session_write_close ();
33
+
34
+ unset($ o1 );
35
+ unset($ o2 );
36
+
37
+ session_start ();
38
+
39
+ var_dump ($ _SESSION );
40
+
41
+ $ o1 ->inc ();
42
+ $ o2 ->inc ();
43
+
44
+ var_dump ($ _SESSION );
45
+
46
+ session_destroy ();
47
+ ?>
48
+ --EXPECT--
49
+ array(2) {
50
+ ["o1"]=>
51
+ &object(tfoo)(1) {
52
+ ["c"]=>
53
+ int(42)
54
+ }
55
+ ["o2"]=>
56
+ &object(tfoo)(1) {
57
+ ["c"]=>
58
+ int(42)
59
+ }
60
+ }
61
+ array(2) {
62
+ ["o1"]=>
63
+ &object(tfoo)(1) {
64
+ ["c"]=>
65
+ int(44)
66
+ }
67
+ ["o2"]=>
68
+ &object(tfoo)(1) {
69
+ ["c"]=>
70
+ int(44)
71
+ }
72
+ }
You can’t perform that action at this time.
0 commit comments