cvs: php4 /ext/session/tests 008-php4.2.3.phpt
| From: | Ilia Alshanetsky | Date: | Fri, 25 Oct 2002 17:52:32 +0000 |
| Subject: | cvs: php4 /ext/session/tests 008-php4.2.3.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15437@lists.php.net to get a copy of this message | ||
iliaa Fri Oct 25 13:52:32 2002 EDT
Modified files:
/php4/ext/session/tests 008-php4.2.3.phpt
Log:
Fixed a bug in the test that would cause it to always fail.
Index: php4/ext/session/tests/008-php4.2.3.phpt
diff -u php4/ext/session/tests/008-php4.2.3.phpt:1.1 php4/ext/session/tests/008-php4.2.3.phpt:1.2
--- php4/ext/session/tests/008-php4.2.3.phpt:1.1 Thu Oct 24 14:18:44 2002
+++ php4/ext/session/tests/008-php4.2.3.phpt Fri Oct 25 13:52:32 2002
@@ -9,7 +9,8 @@
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 @@
unset($c);
$c = 3.14;
session_write_close();
+echo $php_errormsg."\n";
unset($HTTP_SESSION_VARS);
unset($c);
@@ -49,8 +51,8 @@
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)