diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-08-19 10:22:38 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-08-19 10:22:38 +0200 |
| commit | f452a2b3e4e4279b27594a8ddb66525442d59227 (patch) | |
| tree | d05cb62c5515ada33076d3cc3e49b664733a478c /ext/session/tests | |
| parent | 038ba12e8724d537040e88ec794354b0c063f0a6 (diff) | |
| download | php-upstream/5.3.7.tar.gz | |
Imported Upstream version 5.3.7upstream/5.3.7
Diffstat (limited to 'ext/session/tests')
| -rw-r--r-- | ext/session/tests/008-php4.2.3.phpt | 7 | ||||
| -rw-r--r-- | ext/session/tests/bug32330.phpt | 8 | ||||
| -rw-r--r-- | ext/session/tests/session_encode_basic.phpt | 2 | ||||
| -rw-r--r-- | ext/session/tests/session_encode_error2.phpt | 2 | ||||
| -rw-r--r-- | ext/session/tests/skipif.inc | 2 |
5 files changed, 13 insertions, 8 deletions
diff --git a/ext/session/tests/008-php4.2.3.phpt b/ext/session/tests/008-php4.2.3.phpt index 1b26900c8..9464ecded 100644 --- a/ext/session/tests/008-php4.2.3.phpt +++ b/ext/session/tests/008-php4.2.3.phpt @@ -15,7 +15,6 @@ track_errors=1 log_errors=0 html_errors=0 display_errors=1 -error_reporting=2039; session.serialize_handler=php session.save_handler=files precision=14 @@ -59,12 +58,18 @@ session_destroy(); ?> --EXPECTF-- Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 + +Deprecated: Function session_register() is deprecated in %s on line %d + +Notice: Undefined variable: c in %s on line %d NULL session_write_close(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively array(1) { ["c"]=> float(3.14) } + +Notice: Undefined variable: c in %s on line %d NULL array(1) { ["c"]=> diff --git a/ext/session/tests/bug32330.phpt b/ext/session/tests/bug32330.phpt index c0d3370e0..98d442ae5 100644 --- a/ext/session/tests/bug32330.phpt +++ b/ext/session/tests/bug32330.phpt @@ -6,7 +6,7 @@ Bug #32330 (session_destroy, "Failed to initialize storage module", custom sessi session.use_trans_sid=0 session.use_cookies=1 session.name=sid -session.save_path=/ +session.save_path=/tmp session.gc_probability=1 session.gc_divisor=1 --FILE-- @@ -68,17 +68,17 @@ $_SESSION['E'] = 'F'; ?> --EXPECTF-- -open: path = /, name = sid +open: path = /tmp, name = sid read: id = %s gc: maxlifetime = %d write: id = %s, data = A|s:1:"B"; close -open: path = /, name = sid +open: path = /tmp, name = sid read: id = %s gc: maxlifetime = %d destroy: id = %s close -open: path = /, name = sid +open: path = /tmp, name = sid read: id = %s gc: maxlifetime = %d write: id = %s, data = E|s:1:"F"; diff --git a/ext/session/tests/session_encode_basic.phpt b/ext/session/tests/session_encode_basic.phpt index f74bddd9c..b087f7441 100644 --- a/ext/session/tests/session_encode_basic.phpt +++ b/ext/session/tests/session_encode_basic.phpt @@ -120,7 +120,7 @@ string(13) "data|d:-10.5;" string(20) "data|d:123456789000;" -- Iteration 8 -- -string(86) "data|d:1.2345678899999999145113427164344339914681114578343112953007221221923828125E-9;" +string(29) "data|d:1.2345678899999999E-9;" -- Iteration 9 -- string(11) "data|d:0.5;" diff --git a/ext/session/tests/session_encode_error2.phpt b/ext/session/tests/session_encode_error2.phpt index 24758500c..2c31ceb51 100644 --- a/ext/session/tests/session_encode_error2.phpt +++ b/ext/session/tests/session_encode_error2.phpt @@ -220,7 +220,7 @@ bool(true) -- Iteration 20 -- bool(true) -string(33) "Hello World!|s:12:"Hello World!";" +bool(false) bool(true) -- Iteration 21 -- diff --git a/ext/session/tests/skipif.inc b/ext/session/tests/skipif.inc index 6e3eae086..e63f963c5 100644 --- a/ext/session/tests/skipif.inc +++ b/ext/session/tests/skipif.inc @@ -18,7 +18,7 @@ if ($save_path) { $save_path = substr($save_path, ++$p); } if (!@is_writable($save_path)) { - die("skip\n"); + die("skip session.save_path $save_path is not writable\n"); } } } |
