diff options
Diffstat (limited to 'ext/session/tests/019.phpt')
-rw-r--r-- | ext/session/tests/019.phpt | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/ext/session/tests/019.phpt b/ext/session/tests/019.phpt deleted file mode 100644 index c8b969e44f..0000000000 --- a/ext/session/tests/019.phpt +++ /dev/null @@ -1,72 +0,0 @@ ---TEST-- -serializing references test case using globals ---SKIPIF-- -<?php include('skipif.inc'); ?> ---INI-- -session.use_cookies=0 -session.cache_limiter= -register_globals=1 -session.serialize_handler=php ---FILE-- -<?php - -error_reporting(E_ALL); - -class TFoo { - var $c; - function TFoo($c) { - $this->c = $c; - } - function inc() { - $this->c++; - } -} - -session_id("abtest"); -session_register('o1', 'o2' ); -session_start(); - -$o1 =& new TFoo(42); -$o2 =& $o1; - -session_write_close(); - -unset($o1); -unset($o2); - -session_start(); - -var_dump($_SESSION); - -$o1->inc(); -$o2->inc(); - -var_dump($_SESSION); - -session_destroy(); -?> ---EXPECT-- -array(2) { - ["o1"]=> - &object(tfoo)(1) { - ["c"]=> - int(42) - } - ["o2"]=> - &object(tfoo)(1) { - ["c"]=> - int(42) - } -} -array(2) { - ["o1"]=> - &object(tfoo)(1) { - ["c"]=> - int(44) - } - ["o2"]=> - &object(tfoo)(1) { - ["c"]=> - int(44) - } -} |