From: Marcus Boerger Date: Thu, 24 Oct 2002 18:18:44 +0000 (+0000) Subject: one version for php<4.2.3 and one for php>=4.2.3 X-Git-Tag: php-4.3.0pre2~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86465058a4ea34b524f4f5b992810a131dd0dc06;p=php one version for php<4.2.3 and one for php>=4.2.3 --- diff --git a/ext/session/tests/008-php4.2.3.phpt b/ext/session/tests/008-php4.2.3.phpt new file mode 100644 index 0000000000..2f542ec96d --- /dev/null +++ b/ext/session/tests/008-php4.2.3.phpt @@ -0,0 +1,62 @@ +--TEST-- +bug compatibility: global is used albeit register_globals=0 +--SKIPIF-- += 4.2.3"); +?> +--INI-- +session.use_cookies=0 +session.cache_limiter= +register_globals=0 +session.bug_compat_42=1 +session.bug_compat_warn=0 +--FILE-- + +--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 +array(1) { + ["c"]=> + float(3.14) +} +NULL +array(1) { + ["c"]=> + float(3.14) +} diff --git a/ext/session/tests/008.phpt b/ext/session/tests/008.phpt index 2828a95e00..044a6f2536 100644 --- a/ext/session/tests/008.phpt +++ b/ext/session/tests/008.phpt @@ -1,7 +1,9 @@ --TEST-- bug compatibility: global is used albeit register_globals=0 --SKIPIF-- - +=")) die("skip this is for PHP < 4.2.3"); +?> --INI-- session.use_cookies=0 session.cache_limiter=