Skip to content

Commit 8882b28

Browse files
author
Sascha Schumann
committed
editing
1 parent 3ee8172 commit 8882b28

File tree

14 files changed

+24
-21
lines changed

14 files changed

+24
-21
lines changed

ext/session/tests/001.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Session Object Serialization
2+
session object serialization
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -8,6 +8,7 @@ session.cache_limiter=
88
register_globals=1
99
--FILE--
1010
<?php
11+
error_reporting(E_ALL);
1112

1213
class foo {
1314
var $bar = "ok";

ext/session/tests/002.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
--TEST--
2-
session_unset() without any session
2+
session_unset() without a initialized session
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--FILE--
66
<?php
7+
error_reporting(E_ALL);
78
session_unset();
89
print "ok\n";
910
--GET--

ext/session/tests/003.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Session Object Deserialization
2+
session object deserialization
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -8,6 +8,7 @@ session.cache_limiter=
88
register_globals=1
99
--FILE--
1010
<?php
11+
error_reporting(E_ALL);
1112

1213
class foo {
1314
var $bar = "ok";

ext/session/tests/004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ session.cache_limiter=
88
register_globals=1
99
--FILE--
1010
<?php
11-
error_reporting(~E_NOTICE);
11+
error_reporting(E_ALL);
1212

1313
class handler {
1414
var $data = 'baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}';

ext/session/tests/005.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Custom save handler, multiple session_start()s, complex data structure test.
2+
custom save handler, multiple session_start()s, complex data structure test.
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -9,7 +9,7 @@ register_globals=1
99
--FILE--
1010
<?php
1111

12-
error_reporting(E_ALL & ~E_NOTICE);
12+
error_reporting(E_ALL);
1313

1414
class handler {
1515
var $data = 'baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}';

ext/session/tests/006.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
References between variables in sessions
2+
correct instantiation of references between variables in sessions
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -8,7 +8,7 @@ session.cache_limiter=
88
register_globals=1
99
--FILE--
1010
<?php
11-
error_reporting(E_ALL & ~E_NOTICE);
11+
error_reporting(E_ALL);
1212

1313
session_id("abtest");
1414
session_start();

ext/session/tests/007.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Verify PHP 4.2 compatibility: unset($c) with enabled register_globals
2+
bug compatibility: unset($c) with enabled register_globals
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -9,7 +9,7 @@ register_globals=1
99
session.bug_compat_42=1
1010
--FILE--
1111
<?php
12-
error_reporting(E_ALL & ~E_NOTICE);
12+
error_reporting(E_ALL);
1313

1414
session_id("abtest");
1515

ext/session/tests/008.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Verify PHP 4.2 compatibility: global is used albeit register_globals=0
2+
bug compatibility: global is used albeit register_globals=0
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--

ext/session/tests/009.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
unset($_SESSION["name"]); works with register_globals=off
2+
unset($_SESSION["name"]); should work with register_globals=off
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -10,7 +10,7 @@ session.bug_compat_42=1
1010
session.bug_compat_warn=0
1111
--FILE--
1212
<?php
13-
error_reporting(E_ALL & ~E_NOTICE);
13+
error_reporting(E_ALL);
1414

1515
session_id("abtest");
1616

ext/session/tests/010.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
$session_array = explode(";", session_encode()); should not segfault.
2+
$session_array = explode(";", session_encode()); should not segfault
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -10,7 +10,7 @@ session.bug_compat_42=1
1010
session.bug_compat_warn=0
1111
--FILE--
1212
<?php
13-
error_reporting(E_ALL & ~E_NOTICE);
13+
error_reporting(E_ALL);
1414

1515
$session_array = explode(";", @session_encode());
1616
print "I live\n";

ext/session/tests/011.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
session_decode(); should not segfault.
2+
session_decode(); should not segfault
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -10,7 +10,7 @@ session.bug_compat_42=1
1010
session.bug_compat_warn=0
1111
--FILE--
1212
<?php
13-
error_reporting(E_ALL & ~E_NOTICE);
13+
error_reporting(E_ALL);
1414

1515
@session_decode("garbage data and no session started");
1616
@session_decode("userid|s:5:\"mazen\";chatRoom|s:1:\"1\";");

ext/session/tests/012.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Registering _SESSION should not segfault.
2+
registering $_SESSION should not segfault
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--
@@ -10,7 +10,7 @@ session.bug_compat_42=1
1010
session.bug_compat_warn=0
1111
--FILE--
1212
<?php
13-
error_reporting(E_ALL & ~E_NOTICE);
13+
error_reporting(E_ALL);
1414

1515
### Absurd example, value of $_SESSION does not matter
1616

ext/session/tests/013.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
There should not be any warning with regard to redefining SID
2+
redefining SID should not cause warnings
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--

ext/session/tests/014.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
A script should not be able to modify session.use_trans_sid
2+
a script should not be able to modify session.use_trans_sid
33
--SKIPIF--
44
<?php include('skipif.inc'); ?>
55
--INI--

0 commit comments

Comments
 (0)