summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-29 14:03:37 +0000
committerMarcus Boerger <helly@php.net>2002-10-29 14:03:37 +0000
commit62667ee6a6e99764aa22b5e5b563d4da08cce4ba (patch)
tree0d79203c21dccfe3046467444c466bc0725bd866 /ext/session
parenta493135a4102ae872e91c94df3820d6316980ac5 (diff)
downloadphp-git-62667ee6a6e99764aa22b5e5b563d4da08cce4ba.tar.gz
-Only accept one single message which is expected.
-Move error related settings to --INI-- section #Now see we can do it correct
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/tests/008-php4.2.3.phpt7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/session/tests/008-php4.2.3.phpt b/ext/session/tests/008-php4.2.3.phpt
index fa8ed593a3..3b9d861830 100644
--- a/ext/session/tests/008-php4.2.3.phpt
+++ b/ext/session/tests/008-php4.2.3.phpt
@@ -13,10 +13,10 @@ session.bug_compat_warn=1
track_errors=1
log_errors=0
html_errors=0
+display_errors=1
+error_reporting=2039;
--FILE--
<?php
-error_reporting(E_ALL & ~E_NOTICE);
-
session_id("abtest");
### Phase 1 cleanup
@@ -29,7 +29,8 @@ session_register("c");
var_dump($c);
unset($c);
$c = 3.14;
-session_write_close();
+@session_write_close(); // this generates an E_WARNING which will be printed
+// by $php_errormsg so we can use "@" here. ANY further message IS an error.
echo $php_errormsg."\n";
unset($HTTP_SESSION_VARS);
unset($c);