]> granicus.if.org Git - php/commitdiff
These tests currently depend on register_globals=1
authorSascha Schumann <sas@php.net>
Thu, 7 Mar 2002 20:51:27 +0000 (20:51 +0000)
committerSascha Schumann <sas@php.net>
Thu, 7 Mar 2002 20:51:27 +0000 (20:51 +0000)
ext/session/tests/001.phpt
ext/session/tests/003.phpt
ext/session/tests/004.phpt
ext/session/tests/005.phpt
ext/session/tests/006.phpt

index d105cc7fe860913564872354a36c8dd1c113fb67..500a930c1ed1fcd74c4cec2ef264d69a4810ec31 100644 (file)
@@ -3,6 +3,8 @@ Session Object Serialization
 --FILE--
 <?php
 
+ini_set("register_globals", 1);
+
 class foo {
        var $bar = "ok";
 
index ad25e5692db04ec993394c1f535b6970ae75f03e..0bb60f68f4761111cb4d36f4a4f8bbeb3e4c25d5 100644 (file)
@@ -3,6 +3,8 @@ Session Object Deserialization
 --FILE--
 <?php
 
+ini_set("register_globals", 1);
+
 class foo {
        var $bar = "ok";
        function method() { $this->yes++; }
index 54ac427761fc664fca215a225f2b947f694e8ce1..7d0b351f59130bdb91f591aeecee916a4fd8df6a 100644 (file)
@@ -3,6 +3,7 @@ session_set_save_handler test
 --FILE--
 <?php
 error_reporting(~E_NOTICE);
+ini_set("register_globals", 1);
 
 class handler {
        var $data = 'baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:1;}}';
index 14bb6c25ea44c82ef1f740e9a6e76cc303ccfbd1..7e9701892f617abc8b9d401cd4ba0ee1ae7ecf45 100644 (file)
@@ -3,6 +3,8 @@ Custom save handler, multiple session_start()s, complex data structure test.
 --FILE--
 <?php
 
+ini_set("register_globals", 1);
+
 error_reporting(E_ALL & ~E_NOTICE);
 
 class handler {
index f7d4c9891def544b14ca2e18b458de01219102c3..910aafaa776294b14c34e40dd0e4db3acd69a515 100644 (file)
@@ -3,6 +3,9 @@ References between variables in sessions
 --FILE--
 <?php
 error_reporting(E_ALL & ~E_NOTICE);
+
+ini_set("register_globals", 1);
+
 ob_start();
 session_id("abtest");
 session_start();