Permalink
Browse files

Deprecate session_register(), session_unregister() and

session_is_registered() (removed in HEAD)
  • Loading branch information...
1 parent d5f6620 commit 76a17847c17349956851fda99de301de3324273d @bjori bjori committed Dec 9, 2008
View
2 NEWS
@@ -4,6 +4,8 @@ PHP NEWS
- Changed opendir(), dir() and scandir() to use default context when no context
argument is passed. (Sara)
- Changed open_basedir to allow tightening in runtime contexts. (Sara)
+- Deprecated session_register(), session_unregister() and
+ session_is_registered(). (Hannes)
- Fixed bug #46811 (ini_set() doesn't return false on failure). (Hannes)
View
@@ -2099,9 +2099,9 @@ static const zend_function_entry session_functions[] = {
PHP_FE(session_id, arginfo_session_id)
PHP_FE(session_regenerate_id, arginfo_session_regenerate_id)
PHP_FE(session_decode, arginfo_session_decode)
- PHP_FE(session_register, arginfo_session_register)
- PHP_FE(session_unregister, arginfo_session_unregister)
- PHP_FE(session_is_registered, arginfo_session_is_registered)
+ PHP_DEP_FE(session_register, arginfo_session_register)
+ PHP_DEP_FE(session_unregister, arginfo_session_unregister)
+ PHP_DEP_FE(session_is_registered, arginfo_session_is_registered)
PHP_FE(session_encode, arginfo_session_void)
PHP_FE(session_start, arginfo_session_void)
PHP_FE(session_destroy, arginfo_session_void)
@@ -30,5 +30,9 @@ session_register("arr");
print session_encode()."\n";
session_destroy();
---EXPECT--
+--EXPECTF--
+Deprecated: Function session_register() is deprecated in %s on line %d
+
+Deprecated: Function session_register() is deprecated in %s on line %d
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
+
@@ -84,7 +84,7 @@ var_dump($baz); var_dump($arr); var_dump($c);
session_destroy();
?>
---EXPECT--
+--EXPECTF--
OPEN: PHPSESSID
READ: abtest
object(foo)#2 (2) {
@@ -106,6 +106,8 @@ WRITE: abtest, baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";i:2;}arr|a:1:{i:3;O
CLOSE
OPEN: PHPSESSID
READ: abtest
+
+Deprecated: Function session_register() is deprecated in %s on line %d
object(foo)#4 (2) {
["bar"]=>
string(2) "ok"
@@ -57,6 +57,14 @@ object(b)#%d (1) {
string(5) "hallo"
}
}
+
+Deprecated: Function session_register() is deprecated in %s on line %d
+
+Deprecated: Function session_register() is deprecated in %s on line %d
+
+Deprecated: Function session_unregister() is deprecated in %s on line %d
+
+Deprecated: Function session_unregister() is deprecated in %s on line %d
values after session:
object(a)#%d (1) {
["test"]=>
@@ -49,7 +49,8 @@ var_dump($HTTP_SESSION_VARS);
session_destroy();
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function session_register() is deprecated in %s on line %d
float(3.14)
array(1) {
["c"]=>
@@ -31,5 +31,6 @@ session_destroy();
print "I live\n";
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function session_register() is deprecated in %s on line %d
I live
@@ -47,6 +47,7 @@ var_dump($_SESSION);
session_destroy();
?>
--EXPECTF--
+Deprecated: Function session_register() is deprecated in %s on line %d
array(2) {
["o1"]=>
&object(TFoo)#%d (1) {
@@ -100,160 +100,206 @@ ob_end_flush();
-- Iteration 1 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 2 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 3 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 4 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 5 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 6 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 7 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 8 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 9 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 10 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 11 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 12 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 13 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 14 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 15 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 16 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 17 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 18 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 19 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 20 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 21 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 22 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
-- Iteration 23 --
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
@@ -262,10 +308,11 @@ bool(true)
-- Iteration 24 --
bool(true)
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
+
Warning: session_is_registered() expects parameter 1 to be string, resource given in %s on line %d
NULL
array(0) {
}
bool(true)
Done
-
@@ -97,6 +97,8 @@ bool(true)
array(0) {
}
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
+
Warning: session_is_registered() expects parameter 1 to be string, array given in %s on line %d
NULL
array(0) {
@@ -105,4 +107,3 @@ bool(true)
array(0) {
}
Done
-
@@ -36,25 +36,40 @@ ob_end_flush();
?>
--EXPECTF--
*** Testing session_is_registered() : variation ***
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(true)
array(1) {
["foo"]=>
string(12) "Hello World!"
}
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(true)
+
+Deprecated: Function session_unregister() is deprecated in %s on line %d
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
bool(true)
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
array(0) {
}
+
+Deprecated: Function session_is_registered() is deprecated in %s on line %d
bool(false)
Done
-
Oops, something went wrong.

0 comments on commit 76a1784

Please sign in to comment.