summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-10-25 17:52:32 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-10-25 17:52:32 +0000
commitc88e0fd5de3d197c92b7f2849d3331c266035965 (patch)
tree3c60b1a32a410aa215817be620c30045e02a5166 /ext/session
parent9e1b9a89f9ba52d2e80d947ed855bd81e0b1d5c8 (diff)
downloadphp-git-c88e0fd5de3d197c92b7f2849d3331c266035965.tar.gz
Fixed a bug in the test that would cause it to always fail.
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/tests/008-php4.2.3.phpt6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/session/tests/008-php4.2.3.phpt b/ext/session/tests/008-php4.2.3.phpt
index 2f542ec96d..e7b17bbc46 100644
--- a/ext/session/tests/008-php4.2.3.phpt
+++ b/ext/session/tests/008-php4.2.3.phpt
@@ -9,7 +9,8 @@ session.use_cookies=0
session.cache_limiter=
register_globals=0
session.bug_compat_42=1
-session.bug_compat_warn=0
+session.bug_compat_warn=1
+track_errors=1
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
@@ -27,6 +28,7 @@ var_dump($c);
unset($c);
$c = 3.14;
session_write_close();
+echo $php_errormsg."\n";
unset($HTTP_SESSION_VARS);
unset($c);
@@ -49,8 +51,8 @@ var_dump($HTTP_SESSION_VARS);
session_destroy();
?>
--EXPECTF--
-%s(%d) : Warning - 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.
NULL
+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)