summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/tests/bug78624.phpt6
-rw-r--r--ext/session/tests/session_abort_basic.phpt6
-rw-r--r--ext/session/tests/session_basic1.phpt6
-rw-r--r--ext/session/tests/session_basic2.phpt6
-rw-r--r--ext/session/tests/session_basic3.phpt6
-rw-r--r--ext/session/tests/session_basic4.phpt6
-rw-r--r--ext/session/tests/session_basic5.phpt6
-rw-r--r--ext/session/tests/session_cache_expire_basic.phpt6
-rw-r--r--ext/session/tests/session_cache_expire_variation1.phpt6
-rw-r--r--ext/session/tests/session_cache_expire_variation2.phpt6
-rw-r--r--ext/session/tests/session_cache_expire_variation3.phpt6
-rw-r--r--ext/session/tests/session_cache_limiter_basic.phpt6
-rw-r--r--ext/session/tests/session_cache_limiter_variation1.phpt8
-rw-r--r--ext/session/tests/session_cache_limiter_variation2.phpt8
-rw-r--r--ext/session/tests/session_cache_limiter_variation3.phpt8
-rw-r--r--ext/session/tests/session_commit_basic.phpt6
-rw-r--r--ext/session/tests/session_commit_variation1.phpt6
-rw-r--r--ext/session/tests/session_commit_variation2.phpt6
-rw-r--r--ext/session/tests/session_commit_variation3.phpt6
-rw-r--r--ext/session/tests/session_commit_variation4.phpt6
-rw-r--r--ext/session/tests/session_commit_variation5.phpt6
-rw-r--r--ext/session/tests/session_create_id_basic.phpt6
-rw-r--r--ext/session/tests/session_decode_basic.phpt6
-rw-r--r--ext/session/tests/session_decode_basic_serialize.phpt6
-rw-r--r--ext/session/tests/session_decode_error2.phpt6
-rw-r--r--ext/session/tests/session_decode_variation1.phpt6
-rw-r--r--ext/session/tests/session_decode_variation2.phpt6
-rw-r--r--ext/session/tests/session_decode_variation3.phpt6
-rw-r--r--ext/session/tests/session_decode_variation4.phpt6
-rw-r--r--ext/session/tests/session_destroy_variation1.phpt6
-rw-r--r--ext/session/tests/session_destroy_variation2.phpt6
-rw-r--r--ext/session/tests/session_destroy_variation3.phpt6
-rw-r--r--ext/session/tests/session_encode_basic.phpt6
-rw-r--r--ext/session/tests/session_encode_error2.phpt6
-rw-r--r--ext/session/tests/session_encode_variation1.phpt6
-rw-r--r--ext/session/tests/session_encode_variation2.phpt6
-rw-r--r--ext/session/tests/session_encode_variation3.phpt6
-rw-r--r--ext/session/tests/session_encode_variation4.phpt6
-rw-r--r--ext/session/tests/session_encode_variation5.phpt6
-rw-r--r--ext/session/tests/session_encode_variation6.phpt6
-rw-r--r--ext/session/tests/session_encode_variation7.phpt6
-rw-r--r--ext/session/tests/session_encode_variation8.phpt6
-rw-r--r--ext/session/tests/session_gc_basic.phpt6
-rw-r--r--ext/session/tests/session_get_cookie_params_basic.phpt6
-rw-r--r--ext/session/tests/session_get_cookie_params_variation1.phpt6
-rw-r--r--ext/session/tests/session_id_basic.phpt6
-rw-r--r--ext/session/tests/session_id_basic2.phpt6
-rw-r--r--ext/session/tests/session_id_error2.phpt6
-rw-r--r--ext/session/tests/session_id_error3.phpt6
-rw-r--r--ext/session/tests/session_module_name_basic.phpt6
-rw-r--r--ext/session/tests/session_module_name_variation1.phpt6
-rw-r--r--ext/session/tests/session_module_name_variation2.phpt6
-rw-r--r--ext/session/tests/session_module_name_variation3.phpt14
-rw-r--r--ext/session/tests/session_module_name_variation4.phpt6
-rw-r--r--ext/session/tests/session_name_basic.phpt6
-rw-r--r--ext/session/tests/session_name_variation1.phpt6
-rw-r--r--ext/session/tests/session_name_variation2.phpt6
-rw-r--r--ext/session/tests/session_regenerate_id_basic.phpt6
-rw-r--r--ext/session/tests/session_regenerate_id_cookie.phpt6
-rw-r--r--ext/session/tests/session_regenerate_id_variation1.phpt6
-rw-r--r--ext/session/tests/session_reset_basic.phpt6
-rw-r--r--ext/session/tests/session_save_path_basic.phpt6
-rw-r--r--ext/session/tests/session_save_path_variation1.phpt8
-rw-r--r--ext/session/tests/session_save_path_variation2.phpt6
-rw-r--r--ext/session/tests/session_save_path_variation3.phpt6
-rw-r--r--ext/session/tests/session_save_path_variation4.phpt14
-rw-r--r--ext/session/tests/session_save_path_variation5.phpt6
-rw-r--r--ext/session/tests/session_set_cookie_params_basic.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation1.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation2.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation3.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation4.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation5.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation6.phpt8
-rw-r--r--ext/session/tests/session_set_cookie_params_variation7.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_basic.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_001.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_002.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_003.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_004.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_005.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_006.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_007.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_008.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_009.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_010.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_011.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_012.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_013.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_014.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_015.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_016.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_017.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_class_018.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_closures.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_error.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_error2.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_error3.phpt14
-rw-r--r--ext/session/tests/session_set_save_handler_error4.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_iface_001.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_iface_002.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_iface_003.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_variation1.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_variation2.phpt8
-rw-r--r--ext/session/tests/session_set_save_handler_variation3.phpt10
-rw-r--r--ext/session/tests/session_set_save_handler_variation4.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_variation5.phpt6
-rw-r--r--ext/session/tests/session_set_save_handler_variation6.phpt6
-rw-r--r--ext/session/tests/session_start_variation1.phpt14
-rw-r--r--ext/session/tests/session_start_variation2.phpt6
-rw-r--r--ext/session/tests/session_start_variation3.phpt8
-rw-r--r--ext/session/tests/session_start_variation4.phpt6
-rw-r--r--ext/session/tests/session_start_variation5.phpt6
-rw-r--r--ext/session/tests/session_start_variation6.phpt6
-rw-r--r--ext/session/tests/session_start_variation7.phpt6
-rw-r--r--ext/session/tests/session_start_variation8.phpt6
-rw-r--r--ext/session/tests/session_start_variation9.phpt8
-rw-r--r--ext/session/tests/session_unset_basic.phpt6
-rw-r--r--ext/session/tests/session_unset_variation1.phpt6
-rw-r--r--ext/session/tests/session_write_close_basic.phpt6
-rw-r--r--ext/session/tests/session_write_close_variation1.phpt6
-rw-r--r--ext/session/tests/session_write_close_variation2.phpt6
-rw-r--r--ext/session/tests/session_write_close_variation3.phpt6
-rw-r--r--ext/session/tests/session_write_close_variation4.phpt6
124 files changed, 32 insertions, 776 deletions
diff --git a/ext/session/tests/bug78624.phpt b/ext/session/tests/bug78624.phpt
index e9274809d0..6db6945eb4 100644
--- a/ext/session/tests/bug78624.phpt
+++ b/ext/session/tests/bug78624.phpt
@@ -11,12 +11,6 @@ session.gc_probability=0
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Test session_set_save_handler() : session_gc() returns the number of deleted records. ***\n";
class MySession implements SessionHandlerInterface {
diff --git a/ext/session/tests/session_abort_basic.phpt b/ext/session/tests/session_abort_basic.phpt
index b5a12ae4c1..95a5044d16 100644
--- a/ext/session/tests/session_abort_basic.phpt
+++ b/ext/session/tests/session_abort_basic.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : void session_abort(void)
- * Description : Should abort session. Session data should not be written.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_abort() : basic functionality ***\n";
session_start();
diff --git a/ext/session/tests/session_basic1.phpt b/ext/session/tests/session_basic1.phpt
index 658c8e7287..ffdcf6c5ec 100644
--- a/ext/session/tests/session_basic1.phpt
+++ b/ext/session/tests/session_basic1.phpt
@@ -15,12 +15,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : session.use_strict_mode=0
- * Description : Test basic functionality.
- * Source code : ext/session/session.c, ext/session/mod_files.c
- */
-
echo "*** Testing basic session functionality : variation1 ***\n";
$session_id = 'testid';
diff --git a/ext/session/tests/session_basic2.phpt b/ext/session/tests/session_basic2.phpt
index 30ac946c1e..cb9585303c 100644
--- a/ext/session/tests/session_basic2.phpt
+++ b/ext/session/tests/session_basic2.phpt
@@ -17,12 +17,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : session.use_strict_mode=1
- * Description : Test basic functionality.
- * Source code : ext/session/session.c, ext/session/mod_files.c
- */
-
echo "*** Testing basic session functionality : variation2 ***\n";
$session_id = 'testid';
diff --git a/ext/session/tests/session_basic3.phpt b/ext/session/tests/session_basic3.phpt
index 29bda63edb..f6ed10e296 100644
--- a/ext/session/tests/session_basic3.phpt
+++ b/ext/session/tests/session_basic3.phpt
@@ -20,12 +20,6 @@ url_rewriter.hosts=
ob_start();
-/*
- * Prototype : session.use_trans_sid=1
- * Description : Test basic functionality.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing basic session functionality : variation3 use_trans_sid ***\n";
/*
diff --git a/ext/session/tests/session_basic4.phpt b/ext/session/tests/session_basic4.phpt
index 32525640e8..2f9b914462 100644
--- a/ext/session/tests/session_basic4.phpt
+++ b/ext/session/tests/session_basic4.phpt
@@ -21,12 +21,6 @@ url_rewriter.tags="a=href,area=href,frame=src,form="
ob_start();
-/*
- * Prototype : session.use_trans_sid=1
- * Description : Test basic functionality.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing basic session functionality : variation4 use_trans_sid ***\n";
echo "*** Test trans sid ***\n";
diff --git a/ext/session/tests/session_basic5.phpt b/ext/session/tests/session_basic5.phpt
index 351c69b41d..50e6cde920 100644
--- a/ext/session/tests/session_basic5.phpt
+++ b/ext/session/tests/session_basic5.phpt
@@ -21,12 +21,6 @@ ob_start();
$_SERVER['HTTP_HOST'] = 'php.net';
ini_set('session.trans_sid_hosts','php.net,example.com');
-/*
- * Prototype : session.use_trans_sid=1
- * Description : Test basic functionality.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing basic session functionality : variation5 use_trans_sid ***\n";
echo "*** Test trans sid ***\n";
diff --git a/ext/session/tests/session_cache_expire_basic.phpt b/ext/session/tests/session_cache_expire_basic.phpt
index 871e32a317..d2ffe64e92 100644
--- a/ext/session/tests/session_cache_expire_basic.phpt
+++ b/ext/session/tests/session_cache_expire_basic.phpt
@@ -7,12 +7,6 @@ Test session_cache_expire() function : basic functionality
ob_start();
-/*
- * Prototype : int session_cache_expire([int $new_cache_expire])
- * Description : Return current cache expire
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_expire() : basic functionality ***\n";
var_dump(session_cache_expire());
diff --git a/ext/session/tests/session_cache_expire_variation1.phpt b/ext/session/tests/session_cache_expire_variation1.phpt
index 1c6e5922b4..dd0bd40b83 100644
--- a/ext/session/tests/session_cache_expire_variation1.phpt
+++ b/ext/session/tests/session_cache_expire_variation1.phpt
@@ -9,12 +9,6 @@ session.cache_expire=360
ob_start();
-/*
- * Prototype : int session_cache_expire([int $new_cache_expire])
- * Description : Return current cache expire
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_expire() : variation ***\n";
var_dump(session_cache_expire());
diff --git a/ext/session/tests/session_cache_expire_variation2.phpt b/ext/session/tests/session_cache_expire_variation2.phpt
index b712266e80..83f76f150a 100644
--- a/ext/session/tests/session_cache_expire_variation2.phpt
+++ b/ext/session/tests/session_cache_expire_variation2.phpt
@@ -7,12 +7,6 @@ Test session_cache_expire() function : variation
ob_start();
-/*
- * Prototype : int session_cache_expire([int $new_cache_expire])
- * Description : Return current cache expire
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_expire() : variation ***\n";
ini_set("session.cache_expire", 360);
diff --git a/ext/session/tests/session_cache_expire_variation3.phpt b/ext/session/tests/session_cache_expire_variation3.phpt
index 492816f276..ab5a05a292 100644
--- a/ext/session/tests/session_cache_expire_variation3.phpt
+++ b/ext/session/tests/session_cache_expire_variation3.phpt
@@ -7,12 +7,6 @@ Test session_cache_expire() function : variation
ob_start();
-/*
- * Prototype : int session_cache_expire([int $new_cache_expire])
- * Description : Return current cache expire
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_expire() : variation ***\n";
var_dump(ini_get("session.cache_expire"));
diff --git a/ext/session/tests/session_cache_limiter_basic.phpt b/ext/session/tests/session_cache_limiter_basic.phpt
index 39b5fcd5f1..57493ee0aa 100644
--- a/ext/session/tests/session_cache_limiter_basic.phpt
+++ b/ext/session/tests/session_cache_limiter_basic.phpt
@@ -7,12 +7,6 @@ Test session_cache_limiter() function : basic functionality
ob_start();
-/*
- * Prototype : string session_cache_limiter([string $cache_limiter])
- * Description : Get and/or set the current cache limiter
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_limiter() : basic functionality ***\n";
var_dump(session_cache_limiter());
diff --git a/ext/session/tests/session_cache_limiter_variation1.phpt b/ext/session/tests/session_cache_limiter_variation1.phpt
index ce9b011d26..1ef15d7ff5 100644
--- a/ext/session/tests/session_cache_limiter_variation1.phpt
+++ b/ext/session/tests/session_cache_limiter_variation1.phpt
@@ -9,12 +9,6 @@ session.cache_limiter=nocache
ob_start();
-/*
- * Prototype : string session_cache_limiter([string $cache_limiter])
- * Description : Get and/or set the current cache limiter
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_limiter() : variation ***\n";
var_dump(session_cache_limiter());
@@ -34,7 +28,7 @@ string(7) "nocache"
bool(true)
string(7) "nocache"
-Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line 16
+Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line %d
bool(false)
string(7) "nocache"
bool(true)
diff --git a/ext/session/tests/session_cache_limiter_variation2.phpt b/ext/session/tests/session_cache_limiter_variation2.phpt
index 58dc5da6c4..695f63ebca 100644
--- a/ext/session/tests/session_cache_limiter_variation2.phpt
+++ b/ext/session/tests/session_cache_limiter_variation2.phpt
@@ -7,12 +7,6 @@ Test session_cache_limiter() function : variation
ob_start();
-/*
- * Prototype : string session_cache_limiter([string $cache_limiter])
- * Description : Get and/or set the current cache limiter
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_limiter() : variation ***\n";
ini_set("session.cache_limiter", "nocache");
@@ -33,7 +27,7 @@ string(7) "nocache"
bool(true)
string(7) "nocache"
-Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line 17
+Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line %d
bool(false)
string(7) "nocache"
bool(true)
diff --git a/ext/session/tests/session_cache_limiter_variation3.phpt b/ext/session/tests/session_cache_limiter_variation3.phpt
index a55648a851..f37af43936 100644
--- a/ext/session/tests/session_cache_limiter_variation3.phpt
+++ b/ext/session/tests/session_cache_limiter_variation3.phpt
@@ -7,12 +7,6 @@ Test session_cache_limiter() function : variation
ob_start();
-/*
- * Prototype : string session_cache_limiter([string $cache_limiter])
- * Description : Get and/or set the current cache limiter
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_cache_limiter() : variation ***\n";
var_dump(ini_get("session.cache_limiter"));
@@ -32,7 +26,7 @@ string(7) "nocache"
bool(true)
string(7) "nocache"
-Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line 16
+Warning: session_cache_limiter(): Cannot change cache limiter when session is active in %s on line %d
bool(false)
string(7) "nocache"
bool(true)
diff --git a/ext/session/tests/session_commit_basic.phpt b/ext/session/tests/session_commit_basic.phpt
index 473be005f9..c0e9011c87 100644
--- a/ext/session/tests/session_commit_basic.phpt
+++ b/ext/session/tests/session_commit_basic.phpt
@@ -7,12 +7,6 @@ Test session_commit() function : basic functionality
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : basic functionality ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_commit_variation1.phpt b/ext/session/tests/session_commit_variation1.phpt
index cce0756d62..0773ca663d 100644
--- a/ext/session/tests/session_commit_variation1.phpt
+++ b/ext/session/tests/session_commit_variation1.phpt
@@ -7,12 +7,6 @@ Test session_commit() function : variation
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_commit_variation2.phpt b/ext/session/tests/session_commit_variation2.phpt
index 9de2fc12f7..d05a8b6e28 100644
--- a/ext/session/tests/session_commit_variation2.phpt
+++ b/ext/session/tests/session_commit_variation2.phpt
@@ -7,12 +7,6 @@ Test session_commit() function : variation
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_commit_variation3.phpt b/ext/session/tests/session_commit_variation3.phpt
index 38f7f885d3..58d7a56c8b 100644
--- a/ext/session/tests/session_commit_variation3.phpt
+++ b/ext/session/tests/session_commit_variation3.phpt
@@ -9,12 +9,6 @@ session.auto_start=1
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : variation ***\n";
var_dump($_SESSION);
diff --git a/ext/session/tests/session_commit_variation4.phpt b/ext/session/tests/session_commit_variation4.phpt
index 6c91e6578a..2633f543af 100644
--- a/ext/session/tests/session_commit_variation4.phpt
+++ b/ext/session/tests/session_commit_variation4.phpt
@@ -9,12 +9,6 @@ session.use_strict_mode=0
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : variation ***\n";
var_dump(ini_get('session.use_strict_mode'));
diff --git a/ext/session/tests/session_commit_variation5.phpt b/ext/session/tests/session_commit_variation5.phpt
index cc7f6f333e..778bc72b91 100644
--- a/ext/session/tests/session_commit_variation5.phpt
+++ b/ext/session/tests/session_commit_variation5.phpt
@@ -9,12 +9,6 @@ session.use_strict_mode=0
ob_start();
-/*
- * Prototype : bool session_commit(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_commit() : variation ***\n";
$id = md5(uniqid());
diff --git a/ext/session/tests/session_create_id_basic.phpt b/ext/session/tests/session_create_id_basic.phpt
index 4f5cc3e41e..6b6f21372f 100644
--- a/ext/session/tests/session_create_id_basic.phpt
+++ b/ext/session/tests/session_create_id_basic.phpt
@@ -10,12 +10,6 @@ session.sid_length=32
ob_start();
-/*
- * Prototype : string session_create_id([string $prefix])
- * Description : Create new session ID with prefix optionally.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_create_id() : basic functionality ***\n";
// No session
diff --git a/ext/session/tests/session_decode_basic.phpt b/ext/session/tests/session_decode_basic.phpt
index 2c61583117..60354e0024 100644
--- a/ext/session/tests/session_decode_basic.phpt
+++ b/ext/session/tests/session_decode_basic.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : basic functionality
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : basic functionality ***\n";
// Get an unset variable
diff --git a/ext/session/tests/session_decode_basic_serialize.phpt b/ext/session/tests/session_decode_basic_serialize.phpt
index 43c30b9d58..12f0f20570 100644
--- a/ext/session/tests/session_decode_basic_serialize.phpt
+++ b/ext/session/tests/session_decode_basic_serialize.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : basic functionality
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : basic functionality ***\n";
// Get an unset variable
diff --git a/ext/session/tests/session_decode_error2.phpt b/ext/session/tests/session_decode_error2.phpt
index 5795e0701f..7379e8078b 100644
--- a/ext/session/tests/session_decode_error2.phpt
+++ b/ext/session/tests/session_decode_error2.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : error functionality
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : error functionality ***\n";
$data = "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}guff|R:1;blah|R:1;";
diff --git a/ext/session/tests/session_decode_variation1.phpt b/ext/session/tests/session_decode_variation1.phpt
index 70c8ada5bc..0996e2f2c9 100644
--- a/ext/session/tests/session_decode_variation1.phpt
+++ b/ext/session/tests/session_decode_variation1.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : variation
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_decode_variation2.phpt b/ext/session/tests/session_decode_variation2.phpt
index 6b3a7325fc..185716e15a 100644
--- a/ext/session/tests/session_decode_variation2.phpt
+++ b/ext/session/tests/session_decode_variation2.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : basic functionality
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_decode_variation3.phpt b/ext/session/tests/session_decode_variation3.phpt
index 1c89fac0bb..9494edd339 100644
--- a/ext/session/tests/session_decode_variation3.phpt
+++ b/ext/session/tests/session_decode_variation3.phpt
@@ -9,12 +9,6 @@ session.serialize_handler=blah
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_decode_variation4.phpt b/ext/session/tests/session_decode_variation4.phpt
index 1f9d0cbe36..efaf6793d9 100644
--- a/ext/session/tests/session_decode_variation4.phpt
+++ b/ext/session/tests/session_decode_variation4.phpt
@@ -7,12 +7,6 @@ Test session_decode() function : variation
ob_start();
-/*
- * Prototype : string session_decode(void)
- * Description : Decodes session data from a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_decode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_destroy_variation1.phpt b/ext/session/tests/session_destroy_variation1.phpt
index 2863ba63b3..e2b8febcab 100644
--- a/ext/session/tests/session_destroy_variation1.phpt
+++ b/ext/session/tests/session_destroy_variation1.phpt
@@ -7,12 +7,6 @@ Test session_destroy() function : variation
ob_start();
-/*
- * Prototype : bool session_destroy(void)
- * Description : Destroys all data registered to a session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_destroy() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_destroy_variation2.phpt b/ext/session/tests/session_destroy_variation2.phpt
index 9e0913c9af..896d78ac71 100644
--- a/ext/session/tests/session_destroy_variation2.phpt
+++ b/ext/session/tests/session_destroy_variation2.phpt
@@ -7,12 +7,6 @@ Test session_destroy() function : variation
ob_start();
-/*
- * Prototype : bool session_destroy(void)
- * Description : Destroys all data registered to a session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_destroy() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_destroy_variation3.phpt b/ext/session/tests/session_destroy_variation3.phpt
index 2f8a37aa8a..5d00466da3 100644
--- a/ext/session/tests/session_destroy_variation3.phpt
+++ b/ext/session/tests/session_destroy_variation3.phpt
@@ -7,12 +7,6 @@ Test session_destroy() function : variation
ob_start();
-/*
- * Prototype : bool session_destroy(void)
- * Description : Destroys all data registered to a session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_destroy() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_basic.phpt b/ext/session/tests/session_encode_basic.phpt
index d0f37a3b29..b8d8db3a41 100644
--- a/ext/session/tests/session_encode_basic.phpt
+++ b/ext/session/tests/session_encode_basic.phpt
@@ -9,12 +9,6 @@ serialize_precision=100
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : basic functionality ***\n";
// Get an unset variable
diff --git a/ext/session/tests/session_encode_error2.phpt b/ext/session/tests/session_encode_error2.phpt
index a947eab54e..9cca3ffea4 100644
--- a/ext/session/tests/session_encode_error2.phpt
+++ b/ext/session/tests/session_encode_error2.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : error functionality
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : error functionality ***\n";
// Get an unset variable
diff --git a/ext/session/tests/session_encode_variation1.phpt b/ext/session/tests/session_encode_variation1.phpt
index cff175c1d1..a0d883b7a5 100644
--- a/ext/session/tests/session_encode_variation1.phpt
+++ b/ext/session/tests/session_encode_variation1.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : variation
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_encode());
diff --git a/ext/session/tests/session_encode_variation2.phpt b/ext/session/tests/session_encode_variation2.phpt
index a6d7331784..b13366b3fa 100644
--- a/ext/session/tests/session_encode_variation2.phpt
+++ b/ext/session/tests/session_encode_variation2.phpt
@@ -9,12 +9,6 @@ session.auto_start=1
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_encode());
diff --git a/ext/session/tests/session_encode_variation3.phpt b/ext/session/tests/session_encode_variation3.phpt
index c85a9b120d..4d30b879e3 100644
--- a/ext/session/tests/session_encode_variation3.phpt
+++ b/ext/session/tests/session_encode_variation3.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : variation
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_variation4.phpt b/ext/session/tests/session_encode_variation4.phpt
index 4d03f92ad5..613a3ba101 100644
--- a/ext/session/tests/session_encode_variation4.phpt
+++ b/ext/session/tests/session_encode_variation4.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : variation
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_variation5.phpt b/ext/session/tests/session_encode_variation5.phpt
index c923ab4059..e35666ef21 100644
--- a/ext/session/tests/session_encode_variation5.phpt
+++ b/ext/session/tests/session_encode_variation5.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : variation
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_variation6.phpt b/ext/session/tests/session_encode_variation6.phpt
index 4c3f0370fa..b334842fea 100644
--- a/ext/session/tests/session_encode_variation6.phpt
+++ b/ext/session/tests/session_encode_variation6.phpt
@@ -7,12 +7,6 @@ Test session_encode() function : variation
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_variation7.phpt b/ext/session/tests/session_encode_variation7.phpt
index 85e9aa50b8..a79ca8be82 100644
--- a/ext/session/tests/session_encode_variation7.phpt
+++ b/ext/session/tests/session_encode_variation7.phpt
@@ -9,12 +9,6 @@ session.serialize_handler=php_binary
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_encode_variation8.phpt b/ext/session/tests/session_encode_variation8.phpt
index c84152cd13..2ffa79335b 100644
--- a/ext/session/tests/session_encode_variation8.phpt
+++ b/ext/session/tests/session_encode_variation8.phpt
@@ -9,12 +9,6 @@ session.serialize_handler=blah
ob_start();
-/*
- * Prototype : string session_encode(void)
- * Description : Encodes the current session data as a string
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_encode() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_gc_basic.phpt b/ext/session/tests/session_gc_basic.phpt
index 483134061e..b98c7e43e1 100644
--- a/ext/session/tests/session_gc_basic.phpt
+++ b/ext/session/tests/session_gc_basic.phpt
@@ -7,12 +7,6 @@ Test session_gc() function : basic functionality
ob_start();
-/*
- * Prototype : int session_gc(void)
- * Description : Perform GC
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_gc() : basic functionality ***\n";
var_dump(session_gc());
diff --git a/ext/session/tests/session_get_cookie_params_basic.phpt b/ext/session/tests/session_get_cookie_params_basic.phpt
index cd41ce85ef..fa4692e532 100644
--- a/ext/session/tests/session_get_cookie_params_basic.phpt
+++ b/ext/session/tests/session_get_cookie_params_basic.phpt
@@ -14,12 +14,6 @@ session.cookie_samesite=""
ob_start();
-/*
- * Prototype : array session_get_cookie_params(void)
- * Description : Get the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_get_cookie_params() : basic functionality ***\n";
var_dump(session_get_cookie_params());
diff --git a/ext/session/tests/session_get_cookie_params_variation1.phpt b/ext/session/tests/session_get_cookie_params_variation1.phpt
index 13dc94442c..9fdb676f8b 100644
--- a/ext/session/tests/session_get_cookie_params_variation1.phpt
+++ b/ext/session/tests/session_get_cookie_params_variation1.phpt
@@ -14,12 +14,6 @@ session.cookie_samesite=""
ob_start();
-/*
- * Prototype : array session_get_cookie_params(void)
- * Description : Get the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_get_cookie_params() : variation ***\n";
var_dump(session_get_cookie_params());
diff --git a/ext/session/tests/session_id_basic.phpt b/ext/session/tests/session_id_basic.phpt
index 487b5d7a37..9d2bab5d83 100644
--- a/ext/session/tests/session_id_basic.phpt
+++ b/ext/session/tests/session_id_basic.phpt
@@ -7,12 +7,6 @@ Test session_id() function : basic functionality
ob_start();
-/*
- * Prototype : string session_id([string $id])
- * Description : Get and/or set the current session id
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_id() : basic functionality ***\n";
var_dump(session_id());
diff --git a/ext/session/tests/session_id_basic2.phpt b/ext/session/tests/session_id_basic2.phpt
index 7a19696e61..9bd09056fa 100644
--- a/ext/session/tests/session_id_basic2.phpt
+++ b/ext/session/tests/session_id_basic2.phpt
@@ -7,12 +7,6 @@ Test session_id() function : basic functionality
ob_start();
-/*
- * Prototype : string session_id([string $id])
- * Description : Get and/or set the current session id
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_id() : basic functionality ***\n";
ini_set('session.sid_bits_per_chracter', 6);
diff --git a/ext/session/tests/session_id_error2.phpt b/ext/session/tests/session_id_error2.phpt
index 0d256564b6..c017d73d6b 100644
--- a/ext/session/tests/session_id_error2.phpt
+++ b/ext/session/tests/session_id_error2.phpt
@@ -7,12 +7,6 @@ Test session_id() function : error functionality
ob_start();
-/*
- * Prototype : string session_id([string $id])
- * Description : Get and/or set the current session id
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_id() : error functionality ***\n";
var_dump(session_id("test"));
diff --git a/ext/session/tests/session_id_error3.phpt b/ext/session/tests/session_id_error3.phpt
index 12fe5c2814..eb22485cec 100644
--- a/ext/session/tests/session_id_error3.phpt
+++ b/ext/session/tests/session_id_error3.phpt
@@ -7,12 +7,6 @@ Test session_id() function : error functionality
ob_start();
-/*
- * Prototype : string session_id([string $id])
- * Description : Get and/or set the current session id
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_id() : error functionality ***\n";
var_dump(session_id());
diff --git a/ext/session/tests/session_module_name_basic.phpt b/ext/session/tests/session_module_name_basic.phpt
index 8d8bf70573..c0cda1b930 100644
--- a/ext/session/tests/session_module_name_basic.phpt
+++ b/ext/session/tests/session_module_name_basic.phpt
@@ -7,12 +7,6 @@ Test session_module_name() function : basic functionality
ob_start();
-/*
- * Prototype : string session_module_name([string $module])
- * Description : Get and/or set the current session module
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_module_name() : basic functionality ***\n";
var_dump(session_module_name("files"));
var_dump(session_module_name());
diff --git a/ext/session/tests/session_module_name_variation1.phpt b/ext/session/tests/session_module_name_variation1.phpt
index 59d9112a55..05c972fb91 100644
--- a/ext/session/tests/session_module_name_variation1.phpt
+++ b/ext/session/tests/session_module_name_variation1.phpt
@@ -7,12 +7,6 @@ Test session_module_name() function : variation
ob_start();
-/*
- * Prototype : string session_module_name([string $module])
- * Description : Get and/or set the current session module
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_module_name() : variation ***\n";
var_dump(session_module_name("blah"));
var_dump(session_start());
diff --git a/ext/session/tests/session_module_name_variation2.phpt b/ext/session/tests/session_module_name_variation2.phpt
index b14c0c2aac..f499279654 100644
--- a/ext/session/tests/session_module_name_variation2.phpt
+++ b/ext/session/tests/session_module_name_variation2.phpt
@@ -7,12 +7,6 @@ Test session_module_name() function : variation
ob_start();
-/*
- * Prototype : string session_module_name([string $module])
- * Description : Get and/or set the current session module
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_module_name() : variation ***\n";
function open($save_path, $session_name) { }
diff --git a/ext/session/tests/session_module_name_variation3.phpt b/ext/session/tests/session_module_name_variation3.phpt
index b03173cecf..481229eebc 100644
--- a/ext/session/tests/session_module_name_variation3.phpt
+++ b/ext/session/tests/session_module_name_variation3.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : string session_module_name([string $module])
- * Description : Get and/or set the current session module
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_module_name() : variation ***\n";
function open($save_path, $session_name) {
throw new Exception("Stop...!");
@@ -42,11 +36,11 @@ ob_end_flush();
string(5) "files"
string(4) "user"
-Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line 25
+Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line %d
-Fatal error: Uncaught Exception: Stop...! in %s:13
+Fatal error: Uncaught Exception: Stop...! in %s:%d
Stack trace:
#0 [internal function]: open('', 'PHPSESSID')
-#1 %s(25): session_start()
+#1 %s(%d): session_start()
#2 {main}
- thrown in %s on line 13
+ thrown in %s on line %d
diff --git a/ext/session/tests/session_module_name_variation4.phpt b/ext/session/tests/session_module_name_variation4.phpt
index 303a5f8939..2b12bce70a 100644
--- a/ext/session/tests/session_module_name_variation4.phpt
+++ b/ext/session/tests/session_module_name_variation4.phpt
@@ -11,12 +11,6 @@ session.gc_maxlifetime=0
ob_start();
-/*
- * Prototype : string session_module_name([string $module])
- * Description : Get and/or set the current session module
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_module_name() : variation ***\n";
require_once "save_handler.inc";
diff --git a/ext/session/tests/session_name_basic.phpt b/ext/session/tests/session_name_basic.phpt
index 5fb435b2bf..f987ab66d6 100644
--- a/ext/session/tests/session_name_basic.phpt
+++ b/ext/session/tests/session_name_basic.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : string session_name([string $name])
- * Description : Get and/or set the current session name
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_name() : error functionality ***\n";
var_dump(session_name());
diff --git a/ext/session/tests/session_name_variation1.phpt b/ext/session/tests/session_name_variation1.phpt
index 82e5278783..35db378ea5 100644
--- a/ext/session/tests/session_name_variation1.phpt
+++ b/ext/session/tests/session_name_variation1.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : string session_name([string $name])
- * Description : Get and/or set the current session name
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_name() : variation ***\n";
var_dump(session_name("\0"));
diff --git a/ext/session/tests/session_name_variation2.phpt b/ext/session/tests/session_name_variation2.phpt
index 3111ceb00f..15a816633e 100644
--- a/ext/session/tests/session_name_variation2.phpt
+++ b/ext/session/tests/session_name_variation2.phpt
@@ -9,12 +9,6 @@ session.name=blah
ob_start();
-/*
- * Prototype : string session_name([string $name])
- * Description : Get and/or set the current session name
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_name() : variation ***\n";
var_dump(session_name());
diff --git a/ext/session/tests/session_regenerate_id_basic.phpt b/ext/session/tests/session_regenerate_id_basic.phpt
index 49a7e301d4..8d221ef006 100644
--- a/ext/session/tests/session_regenerate_id_basic.phpt
+++ b/ext/session/tests/session_regenerate_id_basic.phpt
@@ -7,12 +7,6 @@ Test session_regenerate_id() function : basic functionality
ob_start();
-/*
- * Prototype : bool session_regenerate_id([bool $delete_old_session])
- * Description : Update the current session id with a newly generated one
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_regenerate_id() : basic functionality ***\n";
var_dump(session_id());
diff --git a/ext/session/tests/session_regenerate_id_cookie.phpt b/ext/session/tests/session_regenerate_id_cookie.phpt
index 76667cdbcc..acaba5addf 100644
--- a/ext/session/tests/session_regenerate_id_cookie.phpt
+++ b/ext/session/tests/session_regenerate_id_cookie.phpt
@@ -13,12 +13,6 @@ get_cgi_path() or die('skip no cgi');
--FILE--
<?php
-/*
- * Prototype : bool session_regenerate_id([bool $delete_old_session])
- * Description : Update the current session id with a newly generated one
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_regenerate_id() : basic functionality for cookie ***\n";
require __DIR__.'/../../../sapi/cgi/tests/include.inc';
diff --git a/ext/session/tests/session_regenerate_id_variation1.phpt b/ext/session/tests/session_regenerate_id_variation1.phpt
index 484a7d001b..1967cff018 100644
--- a/ext/session/tests/session_regenerate_id_variation1.phpt
+++ b/ext/session/tests/session_regenerate_id_variation1.phpt
@@ -7,12 +7,6 @@ Test session_regenerate_id() function : variation
ob_start();
-/*
- * Prototype : bool session_regenerate_id([bool $delete_old_session])
- * Description : Update the current session id with a newly generated one
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_regenerate_id() : variation ***\n";
var_dump(session_id());
diff --git a/ext/session/tests/session_reset_basic.phpt b/ext/session/tests/session_reset_basic.phpt
index a2ddc7af34..7ba84ff34c 100644
--- a/ext/session/tests/session_reset_basic.phpt
+++ b/ext/session/tests/session_reset_basic.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : void session_reset(void)
- * Description : Should abort session. Session data should not be written.
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_abort() : basic functionality ***\n";
session_start();
diff --git a/ext/session/tests/session_save_path_basic.phpt b/ext/session/tests/session_save_path_basic.phpt
index 15027631cc..db578cb6b1 100644
--- a/ext/session/tests/session_save_path_basic.phpt
+++ b/ext/session/tests/session_save_path_basic.phpt
@@ -11,12 +11,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : error functionality ***\n";
$directory = __DIR__;
diff --git a/ext/session/tests/session_save_path_variation1.phpt b/ext/session/tests/session_save_path_variation1.phpt
index 20ed9301ce..8475b2d2e4 100644
--- a/ext/session/tests/session_save_path_variation1.phpt
+++ b/ext/session/tests/session_save_path_variation1.phpt
@@ -12,12 +12,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : variation ***\n";
$directory = __DIR__;
@@ -44,7 +38,7 @@ string(%d) "%stests"
bool(true)
string(%d) "%stests"
-Warning: session_save_path(): Cannot change save path when session is active in %s on line 20
+Warning: session_save_path(): Cannot change save path when session is active in %s on line %d
bool(false)
string(%d) "%stests"
bool(true)
diff --git a/ext/session/tests/session_save_path_variation2.phpt b/ext/session/tests/session_save_path_variation2.phpt
index b8fb86509f..d857cdf6a5 100644
--- a/ext/session/tests/session_save_path_variation2.phpt
+++ b/ext/session/tests/session_save_path_variation2.phpt
@@ -10,12 +10,6 @@ session.gc_probability=0
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : variation ***\n";
ini_set("session.save_path", "/blah");
diff --git a/ext/session/tests/session_save_path_variation3.phpt b/ext/session/tests/session_save_path_variation3.phpt
index e369b12e0a..966e0d893c 100644
--- a/ext/session/tests/session_save_path_variation3.phpt
+++ b/ext/session/tests/session_save_path_variation3.phpt
@@ -10,12 +10,6 @@ session.gc_probability=0
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : variation ***\n";
ini_set("session.save_path", "/blah");
diff --git a/ext/session/tests/session_save_path_variation4.phpt b/ext/session/tests/session_save_path_variation4.phpt
index c59a39ece3..8b3df52262 100644
--- a/ext/session/tests/session_save_path_variation4.phpt
+++ b/ext/session/tests/session_save_path_variation4.phpt
@@ -12,12 +12,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : variation ***\n";
$initdir = __DIR__;
$sessions = ($initdir."/sessions");
@@ -52,16 +46,16 @@ var_dump(rmdir($sessions));
bool(true)
bool(true)
-Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line 24
+Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
string(0) ""
-Warning: session_start(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line 26
+Warning: session_start(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
-Warning: session_start(): Failed to initialize storage module: files (path: ) in %s on line 26
+Warning: session_start(): Failed to initialize storage module: files (path: ) in %s on line %d
bool(false)
string(0) ""
-Warning: session_destroy(): Trying to destroy uninitialized session in %s on line 28
+Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)
string(0) ""
Done
diff --git a/ext/session/tests/session_save_path_variation5.phpt b/ext/session/tests/session_save_path_variation5.phpt
index 7a8907e6dd..5388f82f45 100644
--- a/ext/session/tests/session_save_path_variation5.phpt
+++ b/ext/session/tests/session_save_path_variation5.phpt
@@ -13,12 +13,6 @@ session.name=PHPSESSID
<?php
ob_start();
-/*
- * Prototype : string session_save_path([string $path])
- * Description : Get and/or set the current session save path
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_save_path() : variation ***\n";
$directory = __DIR__;
$sessions = ($directory."/sessions");
diff --git a/ext/session/tests/session_set_cookie_params_basic.phpt b/ext/session/tests/session_set_cookie_params_basic.phpt
index e40c4e77b7..79bf7a9ea9 100644
--- a/ext/session/tests/session_set_cookie_params_basic.phpt
+++ b/ext/session/tests/session_set_cookie_params_basic.phpt
@@ -7,12 +7,6 @@ Test session_set_cookie_params() function : basic functionality
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : basic functionality ***\n";
var_dump(session_set_cookie_params(3600));
@@ -29,7 +23,7 @@ ob_end_flush();
bool(true)
bool(true)
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 15
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
bool(true)
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation1.phpt b/ext/session/tests/session_set_cookie_params_variation1.phpt
index 46ec780e9d..bad85d3aaf 100644
--- a/ext/session/tests/session_set_cookie_params_variation1.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation1.phpt
@@ -9,12 +9,6 @@ session.cookie_lifetime=3600
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_lifetime"));
@@ -42,7 +36,7 @@ string(4) "3600"
bool(true)
string(4) "3600"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 19
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(4) "3600"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation2.phpt b/ext/session/tests/session_set_cookie_params_variation2.phpt
index 07bb5cfdf5..ac80c10c10 100644
--- a/ext/session/tests/session_set_cookie_params_variation2.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation2.phpt
@@ -9,12 +9,6 @@ session.cookie_path=/path
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_path"));
@@ -40,7 +34,7 @@ string(4) "/foo"
bool(true)
string(4) "/foo"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 18
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(4) "/foo"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation3.phpt b/ext/session/tests/session_set_cookie_params_variation3.phpt
index 5a4e2df8fd..1ba46eae7d 100644
--- a/ext/session/tests/session_set_cookie_params_variation3.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation3.phpt
@@ -9,12 +9,6 @@ session.cookie_domain=foo
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_domain"));
@@ -40,7 +34,7 @@ string(4) "blah"
bool(true)
string(4) "blah"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 18
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(4) "blah"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation4.phpt b/ext/session/tests/session_set_cookie_params_variation4.phpt
index ab0de3bd8b..16606f9f61 100644
--- a/ext/session/tests/session_set_cookie_params_variation4.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation4.phpt
@@ -9,12 +9,6 @@ session.cookie_secure=TRUE
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_secure"));
@@ -40,7 +34,7 @@ string(1) "0"
bool(true)
string(1) "0"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 18
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(1) "0"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation5.phpt b/ext/session/tests/session_set_cookie_params_variation5.phpt
index f630a5ff4a..a73c834ed7 100644
--- a/ext/session/tests/session_set_cookie_params_variation5.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation5.phpt
@@ -9,12 +9,6 @@ session.cookie_httponly=TRUE
ob_start();
-/*
- * Prototype : void session_set_cookie_params(int $lifetime [, string $path [, string $domain [, bool $secure [, bool $httponly]]]])
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_httponly"));
@@ -40,7 +34,7 @@ string(1) "0"
bool(true)
string(1) "0"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 18
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(1) "0"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation6.phpt b/ext/session/tests/session_set_cookie_params_variation6.phpt
index b94380d370..983e8e68ad 100644
--- a/ext/session/tests/session_set_cookie_params_variation6.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation6.phpt
@@ -9,12 +9,6 @@ session.cookie_samesite=test
ob_start();
-/*
- * Prototype : void session_set_cookie_params(array $options)
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : variation ***\n";
var_dump(ini_get("session.cookie_samesite"));
@@ -40,7 +34,7 @@ string(7) "nothing"
bool(true)
string(7) "nothing"
-Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line 18
+Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in %s on line %d
bool(false)
string(7) "nothing"
bool(true)
diff --git a/ext/session/tests/session_set_cookie_params_variation7.phpt b/ext/session/tests/session_set_cookie_params_variation7.phpt
index 1ab248908a..bd5aec592b 100644
--- a/ext/session/tests/session_set_cookie_params_variation7.phpt
+++ b/ext/session/tests/session_set_cookie_params_variation7.phpt
@@ -14,12 +14,6 @@ session.cookie_samesite=""
ob_start();
-/*
- * Prototype : void session_set_cookie_params(array $options)
- * Description : Set the session cookie parameters
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_cookie_params() : array parameter variation ***\n";
// Invalid cases
diff --git a/ext/session/tests/session_set_save_handler_basic.phpt b/ext/session/tests/session_set_save_handler_basic.phpt
index 2a9b511aba..2a451c0644 100644
--- a/ext/session/tests/session_set_save_handler_basic.phpt
+++ b/ext/session/tests/session_set_save_handler_basic.phpt
@@ -12,12 +12,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : basic functionality ***\n";
require_once "save_handler.inc";
diff --git a/ext/session/tests/session_set_save_handler_class_001.phpt b/ext/session/tests/session_set_save_handler_class_001.phpt
index 33d2a76425..8705c6b953 100644
--- a/ext/session/tests/session_set_save_handler_class_001.phpt
+++ b/ext/session/tests/session_set_save_handler_class_001.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : basic class wrapping existing handler ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_002.phpt b/ext/session/tests/session_set_save_handler_class_002.phpt
index 6343cfdc0e..bbc39956ff 100644
--- a/ext/session/tests/session_set_save_handler_class_002.phpt
+++ b/ext/session/tests/session_set_save_handler_class_002.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : full handler implementation ***\n";
class MySession2 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_003.phpt b/ext/session/tests/session_set_save_handler_class_003.phpt
index b3aba74989..7194bc724d 100644
--- a/ext/session/tests/session_set_save_handler_class_003.phpt
+++ b/ext/session/tests/session_set_save_handler_class_003.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : inheritance ***\n";
class MySession3 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_004.phpt b/ext/session/tests/session_set_save_handler_class_004.phpt
index eb1d8071ae..d68b3e9623 100644
--- a/ext/session/tests/session_set_save_handler_class_004.phpt
+++ b/ext/session/tests/session_set_save_handler_class_004.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : default object ***\n";
session_set_save_handler(new SessionHandler);
diff --git a/ext/session/tests/session_set_save_handler_class_005.phpt b/ext/session/tests/session_set_save_handler_class_005.phpt
index c6f8dfe622..d3de39b9e0 100644
--- a/ext/session/tests/session_set_save_handler_class_005.phpt
+++ b/ext/session/tests/session_set_save_handler_class_005.phpt
@@ -11,12 +11,6 @@ session.gc_probability=0
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : incomplete implementation ***\n";
class MySession6 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_006.phpt b/ext/session/tests/session_set_save_handler_class_006.phpt
index 5b7d3be084..161fb46d58 100644
--- a/ext/session/tests/session_set_save_handler_class_006.phpt
+++ b/ext/session/tests/session_set_save_handler_class_006.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : using objects in close ***\n";
class MySession7_Foo {
diff --git a/ext/session/tests/session_set_save_handler_class_007.phpt b/ext/session/tests/session_set_save_handler_class_007.phpt
index b2ad9eee34..5ace4fb9f1 100644
--- a/ext/session/tests/session_set_save_handler_class_007.phpt
+++ b/ext/session/tests/session_set_save_handler_class_007.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : manual shutdown, reopen ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_008.phpt b/ext/session/tests/session_set_save_handler_class_008.phpt
index 1d39fbd535..227fe00961 100644
--- a/ext/session/tests/session_set_save_handler_class_008.phpt
+++ b/ext/session/tests/session_set_save_handler_class_008.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : manual shutdown ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_009.phpt b/ext/session/tests/session_set_save_handler_class_009.phpt
index 6969542251..65e273d5e7 100644
--- a/ext/session/tests/session_set_save_handler_class_009.phpt
+++ b/ext/session/tests/session_set_save_handler_class_009.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : implicit shutdown ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_010.phpt b/ext/session/tests/session_set_save_handler_class_010.phpt
index 8734f71f9f..c81fce4963 100644
--- a/ext/session/tests/session_set_save_handler_class_010.phpt
+++ b/ext/session/tests/session_set_save_handler_class_010.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : manual shutdown function ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_011.phpt b/ext/session/tests/session_set_save_handler_class_011.phpt
index 396bdbc59f..04defe937e 100644
--- a/ext/session/tests/session_set_save_handler_class_011.phpt
+++ b/ext/session/tests/session_set_save_handler_class_011.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : shutdown failure ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_012.phpt b/ext/session/tests/session_set_save_handler_class_012.phpt
index 854c9fb8e1..c5bd2b8db1 100644
--- a/ext/session/tests/session_set_save_handler_class_012.phpt
+++ b/ext/session/tests/session_set_save_handler_class_012.phpt
@@ -11,12 +11,6 @@ session.gc_probability=0
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : incorrect arguments for existing handler open ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_013.phpt b/ext/session/tests/session_set_save_handler_class_013.phpt
index 886d6440a7..1ef12bd1f3 100644
--- a/ext/session/tests/session_set_save_handler_class_013.phpt
+++ b/ext/session/tests/session_set_save_handler_class_013.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : incorrect arguments for existing handler close ***\n";
class MySession extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_014.phpt b/ext/session/tests/session_set_save_handler_class_014.phpt
index c0b3b9f273..5657e6a71f 100644
--- a/ext/session/tests/session_set_save_handler_class_014.phpt
+++ b/ext/session/tests/session_set_save_handler_class_014.phpt
@@ -14,12 +14,6 @@ include('skipif.inc');
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : calling default handler when save_handler=user ***\n";
$oldHandler = ini_get('session.save_handler');
diff --git a/ext/session/tests/session_set_save_handler_class_015.phpt b/ext/session/tests/session_set_save_handler_class_015.phpt
index 5fab0d4b22..9d7e76c036 100644
--- a/ext/session/tests/session_set_save_handler_class_015.phpt
+++ b/ext/session/tests/session_set_save_handler_class_015.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandler $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : register session handler but don't start ***\n";
session_set_save_handler(new SessionHandler);
diff --git a/ext/session/tests/session_set_save_handler_class_016.phpt b/ext/session/tests/session_set_save_handler_class_016.phpt
index 03bb8eaf95..85964751e0 100644
--- a/ext/session/tests/session_set_save_handler_class_016.phpt
+++ b/ext/session/tests/session_set_save_handler_class_016.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: class with create_sid ***\n";
class MySession2 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_017.phpt b/ext/session/tests/session_set_save_handler_class_017.phpt
index 563d86c013..03eaf22947 100644
--- a/ext/session/tests/session_set_save_handler_class_017.phpt
+++ b/ext/session/tests/session_set_save_handler_class_017.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: class with create_sid ***\n";
class MySession2 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_class_018.phpt b/ext/session/tests/session_set_save_handler_class_018.phpt
index 30d72b4708..7482cd2901 100644
--- a/ext/session/tests/session_set_save_handler_class_018.phpt
+++ b/ext/session/tests/session_set_save_handler_class_018.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: class with validate_sid ***\n";
class MySession2 extends SessionHandler {
diff --git a/ext/session/tests/session_set_save_handler_closures.phpt b/ext/session/tests/session_set_save_handler_closures.phpt
index e490e1780e..df5cfa6e76 100644
--- a/ext/session/tests/session_set_save_handler_closures.phpt
+++ b/ext/session/tests/session_set_save_handler_closures.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : using closures as callbacks ***\n";
require_once "save_handler_closures.inc";
diff --git a/ext/session/tests/session_set_save_handler_error.phpt b/ext/session/tests/session_set_save_handler_error.phpt
index 029d7dcba7..e47523c872 100644
--- a/ext/session/tests/session_set_save_handler_error.phpt
+++ b/ext/session/tests/session_set_save_handler_error.phpt
@@ -7,12 +7,6 @@ Test session_set_save_handler() function : error functionality
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : error functionality ***\n";
// Get an unset variable
diff --git a/ext/session/tests/session_set_save_handler_error2.phpt b/ext/session/tests/session_set_save_handler_error2.phpt
index fcd480f354..8b2a00475d 100644
--- a/ext/session/tests/session_set_save_handler_error2.phpt
+++ b/ext/session/tests/session_set_save_handler_error2.phpt
@@ -9,12 +9,6 @@ error_reporting=0
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : error functionality ***\n";
function open($save_path, $session_name) { return true; }
diff --git a/ext/session/tests/session_set_save_handler_error3.phpt b/ext/session/tests/session_set_save_handler_error3.phpt
index ecb5e5a91d..a57734e411 100644
--- a/ext/session/tests/session_set_save_handler_error3.phpt
+++ b/ext/session/tests/session_set_save_handler_error3.phpt
@@ -11,12 +11,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : error functionality ***\n";
function open($save_path, $session_name) {
throw new Exception("Do something bad..!");
@@ -35,11 +29,11 @@ ob_end_flush();
--EXPECTF--
*** Testing session_set_save_handler() : error functionality ***
-Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line 23
+Warning: session_start(): Failed to initialize storage module: user (path: ) in %s on line %d
-Fatal error: Uncaught Exception: Do something bad..! in %s:13
+Fatal error: Uncaught Exception: Do something bad..! in %s:%d
Stack trace:
#0 [internal function]: open('', 'PHPSESSID')
-#1 %s(23): session_start()
+#1 %s(%d): session_start()
#2 {main}
- thrown in %s on line 13
+ thrown in %s on line %d
diff --git a/ext/session/tests/session_set_save_handler_error4.phpt b/ext/session/tests/session_set_save_handler_error4.phpt
index 00fb2976e3..2b39cb5500 100644
--- a/ext/session/tests/session_set_save_handler_error4.phpt
+++ b/ext/session/tests/session_set_save_handler_error4.phpt
@@ -7,12 +7,6 @@ Test session_set_save_handler() function : error functionality
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : error functionality ***\n";
function callback() { return true; }
diff --git a/ext/session/tests/session_set_save_handler_iface_001.phpt b/ext/session/tests/session_set_save_handler_iface_001.phpt
index c1981c91b0..9eecaf13bf 100644
--- a/ext/session/tests/session_set_save_handler_iface_001.phpt
+++ b/ext/session/tests/session_set_save_handler_iface_001.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: interface ***\n";
class MySession2 implements SessionHandlerInterface {
diff --git a/ext/session/tests/session_set_save_handler_iface_002.phpt b/ext/session/tests/session_set_save_handler_iface_002.phpt
index bae8ecb625..c472b9982d 100644
--- a/ext/session/tests/session_set_save_handler_iface_002.phpt
+++ b/ext/session/tests/session_set_save_handler_iface_002.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: interface wrong ***\n";
interface MySessionHandlerInterface {
diff --git a/ext/session/tests/session_set_save_handler_iface_003.phpt b/ext/session/tests/session_set_save_handler_iface_003.phpt
index 61714e0bb3..561d1f3b44 100644
--- a/ext/session/tests/session_set_save_handler_iface_003.phpt
+++ b/ext/session/tests/session_set_save_handler_iface_003.phpt
@@ -10,12 +10,6 @@ session.name=PHPSESSID
ob_start();
-/*
- * Prototype : bool session_set_save_handler(SessionHandlerInterface $handler [, bool $register_shutdown_function = true])
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() function: id interface ***\n";
class MySession2 implements SessionHandlerInterface, SessionIdInterface {
diff --git a/ext/session/tests/session_set_save_handler_variation1.phpt b/ext/session/tests/session_set_save_handler_variation1.phpt
index 3362adbac5..e192ac8838 100644
--- a/ext/session/tests/session_set_save_handler_variation1.phpt
+++ b/ext/session/tests/session_set_save_handler_variation1.phpt
@@ -7,12 +7,6 @@ Test session_set_save_handler() function : variation
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : variation ***\n";
var_dump(session_module_name());
diff --git a/ext/session/tests/session_set_save_handler_variation2.phpt b/ext/session/tests/session_set_save_handler_variation2.phpt
index a4e1cdfa6d..394d85e7b1 100644
--- a/ext/session/tests/session_set_save_handler_variation2.phpt
+++ b/ext/session/tests/session_set_save_handler_variation2.phpt
@@ -7,12 +7,6 @@ Test session_set_save_handler() function : variation
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : variation ***\n";
require_once "save_handler.inc";
@@ -28,6 +22,6 @@ ob_end_flush();
*** Testing session_set_save_handler() : variation ***
bool(true)
-Warning: session_set_save_handler(): Cannot change save handler when session is active in %s on line 17
+Warning: session_set_save_handler(): Cannot change save handler when session is active in %s on line %d
bool(false)
bool(true)
diff --git a/ext/session/tests/session_set_save_handler_variation3.phpt b/ext/session/tests/session_set_save_handler_variation3.phpt
index 90c270c644..50fa6f62e0 100644
--- a/ext/session/tests/session_set_save_handler_variation3.phpt
+++ b/ext/session/tests/session_set_save_handler_variation3.phpt
@@ -9,12 +9,6 @@ session.auto_start=1
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : variation ***\n";
require_once "save_handler.inc";
@@ -30,8 +24,8 @@ ob_end_flush();
*** Testing session_set_save_handler() : variation ***
int(2)
-Warning: session_save_path(): Cannot change save path when session is active in %s on line 16
+Warning: session_save_path(): Cannot change save path when session is active in %s on line %d
-Warning: session_set_save_handler(): Cannot change save handler when session is active in %s on line 17
+Warning: session_set_save_handler(): Cannot change save handler when session is active in %s on line %d
bool(false)
bool(true)
diff --git a/ext/session/tests/session_set_save_handler_variation4.phpt b/ext/session/tests/session_set_save_handler_variation4.phpt
index abe3abbeb2..e1b61f29a7 100644
--- a/ext/session/tests/session_set_save_handler_variation4.phpt
+++ b/ext/session/tests/session_set_save_handler_variation4.phpt
@@ -14,12 +14,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : variation ***\n";
function noisy_gc($maxlifetime) {
diff --git a/ext/session/tests/session_set_save_handler_variation5.phpt b/ext/session/tests/session_set_save_handler_variation5.phpt
index ad11729b94..9860dcc04a 100644
--- a/ext/session/tests/session_set_save_handler_variation5.phpt
+++ b/ext/session/tests/session_set_save_handler_variation5.phpt
@@ -15,12 +15,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions with validate_id() and update()
- * Source code : ext/session/session.c
- */
-
function noisy_gc($maxlifetime) {
echo("GC [".$maxlifetime."]\n");
echo gc($maxlifetime)." deleted\n";
diff --git a/ext/session/tests/session_set_save_handler_variation6.phpt b/ext/session/tests/session_set_save_handler_variation6.phpt
index 7a37198c70..d65c0dc1c8 100644
--- a/ext/session/tests/session_set_save_handler_variation6.phpt
+++ b/ext/session/tests/session_set_save_handler_variation6.phpt
@@ -14,12 +14,6 @@ session.save_handler=files
ob_start();
-/*
- * Prototype : bool session_set_save_handler(callback $open, callback $close, callback $read, callback $write, callback $destroy, callback $gc)
- * Description : Sets user-level session storage functions
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_set_save_handler() : test write short circuit ***\n";
require_once "save_handler.inc";
diff --git a/ext/session/tests/session_start_variation1.phpt b/ext/session/tests/session_start_variation1.phpt
index d76bd8b0f3..b34abbacdd 100644
--- a/ext/session/tests/session_start_variation1.phpt
+++ b/ext/session/tests/session_start_variation1.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
var_dump(session_start());
@@ -29,15 +23,15 @@ ob_end_flush();
*** Testing session_start() : variation ***
bool(true)
-Notice: session_start(): A session had already been started - ignoring in %s on line 14
+Notice: session_start(): A session had already been started - ignoring in %s on line %d
bool(true)
-Notice: session_start(): A session had already been started - ignoring in %s on line 15
+Notice: session_start(): A session had already been started - ignoring in %s on line %d
bool(true)
-Notice: session_start(): A session had already been started - ignoring in %s on line 16
+Notice: session_start(): A session had already been started - ignoring in %s on line %d
bool(true)
-Notice: session_start(): A session had already been started - ignoring in %s on line 17
+Notice: session_start(): A session had already been started - ignoring in %s on line %d
bool(true)
Done
diff --git a/ext/session/tests/session_start_variation2.phpt b/ext/session/tests/session_start_variation2.phpt
index 59cbfab326..c88577ab32 100644
--- a/ext/session/tests/session_start_variation2.phpt
+++ b/ext/session/tests/session_start_variation2.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_start_variation3.phpt b/ext/session/tests/session_start_variation3.phpt
index 8f0b56306f..eab04386fc 100644
--- a/ext/session/tests/session_start_variation3.phpt
+++ b/ext/session/tests/session_start_variation3.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
var_dump(session_start());
@@ -43,6 +37,6 @@ bool(true)
bool(true)
bool(true)
-Warning: session_destroy(): Trying to destroy uninitialized session in %s on line 23
+Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
bool(false)
Done
diff --git a/ext/session/tests/session_start_variation4.phpt b/ext/session/tests/session_start_variation4.phpt
index f14b2574e2..001073a297 100644
--- a/ext/session/tests/session_start_variation4.phpt
+++ b/ext/session/tests/session_start_variation4.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
$_SESSION['blah'] = 'foo';
diff --git a/ext/session/tests/session_start_variation5.phpt b/ext/session/tests/session_start_variation5.phpt
index ca5cb85a10..8de4982fb5 100644
--- a/ext/session/tests/session_start_variation5.phpt
+++ b/ext/session/tests/session_start_variation5.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
session_start();
diff --git a/ext/session/tests/session_start_variation6.phpt b/ext/session/tests/session_start_variation6.phpt
index 60b1438e45..558baf32b6 100644
--- a/ext/session/tests/session_start_variation6.phpt
+++ b/ext/session/tests/session_start_variation6.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
session_start();
diff --git a/ext/session/tests/session_start_variation7.phpt b/ext/session/tests/session_start_variation7.phpt
index 47119f9971..59cd1e529e 100644
--- a/ext/session/tests/session_start_variation7.phpt
+++ b/ext/session/tests/session_start_variation7.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
session_start();
diff --git a/ext/session/tests/session_start_variation8.phpt b/ext/session/tests/session_start_variation8.phpt
index 3706ebc26e..2a83e2907a 100644
--- a/ext/session/tests/session_start_variation8.phpt
+++ b/ext/session/tests/session_start_variation8.phpt
@@ -7,12 +7,6 @@ Test session_start() function : variation
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
var_dump(session_id());
diff --git a/ext/session/tests/session_start_variation9.phpt b/ext/session/tests/session_start_variation9.phpt
index e37c484ee0..99740c0b92 100644
--- a/ext/session/tests/session_start_variation9.phpt
+++ b/ext/session/tests/session_start_variation9.phpt
@@ -9,12 +9,6 @@ session.auto_start=1
ob_start();
-/*
- * Prototype : bool session_start(void)
- * Description : Initialize session data
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_start() : variation ***\n";
var_dump(session_id());
@@ -30,7 +24,7 @@ ob_end_flush();
*** Testing session_start() : variation ***
string(%d) "%s"
-Notice: session_start(): A session had already been started - ignoring in %s on line 14
+Notice: session_start(): A session had already been started - ignoring in %s on line %d
bool(true)
string(%d) "%s"
bool(true)
diff --git a/ext/session/tests/session_unset_basic.phpt b/ext/session/tests/session_unset_basic.phpt
index ba0a58f5a5..575e9a98dc 100644
--- a/ext/session/tests/session_unset_basic.phpt
+++ b/ext/session/tests/session_unset_basic.phpt
@@ -7,12 +7,6 @@ Test session_unset() function : basic functionality
ob_start();
-/*
- * Prototype : void session_unset(void)
- * Description : Free all session variables
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_unset() : basic functionality ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_unset_variation1.phpt b/ext/session/tests/session_unset_variation1.phpt
index 1e3cbf0631..5e17ca751f 100644
--- a/ext/session/tests/session_unset_variation1.phpt
+++ b/ext/session/tests/session_unset_variation1.phpt
@@ -7,12 +7,6 @@ Test session_unset() function : variation
ob_start();
-/*
- * Prototype : void session_unset(void)
- * Description : Free all session variables
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_unset() : variation ***\n";
var_dump(session_unset());
diff --git a/ext/session/tests/session_write_close_basic.phpt b/ext/session/tests/session_write_close_basic.phpt
index c5f44caddb..bbf67d550f 100644
--- a/ext/session/tests/session_write_close_basic.phpt
+++ b/ext/session/tests/session_write_close_basic.phpt
@@ -7,12 +7,6 @@ Test session_write_close() function : basic functionality
ob_start();
-/*
- * Prototype : bool session_write_close(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_write_close() : basic functionality ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_write_close_variation1.phpt b/ext/session/tests/session_write_close_variation1.phpt
index bd849f78d0..d5ae075bd5 100644
--- a/ext/session/tests/session_write_close_variation1.phpt
+++ b/ext/session/tests/session_write_close_variation1.phpt
@@ -7,12 +7,6 @@ Test session_write_close() function : variation
ob_start();
-/*
- * Prototype : bool session_write_close(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_write_close() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_write_close_variation2.phpt b/ext/session/tests/session_write_close_variation2.phpt
index fc1abf833f..02f2611919 100644
--- a/ext/session/tests/session_write_close_variation2.phpt
+++ b/ext/session/tests/session_write_close_variation2.phpt
@@ -7,12 +7,6 @@ Test session_write_close() function : variation
ob_start();
-/*
- * Prototype : bool session_write_close(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_write_close() : variation ***\n";
var_dump(session_start());
diff --git a/ext/session/tests/session_write_close_variation3.phpt b/ext/session/tests/session_write_close_variation3.phpt
index 72e3d2f55a..c726caa248 100644
--- a/ext/session/tests/session_write_close_variation3.phpt
+++ b/ext/session/tests/session_write_close_variation3.phpt
@@ -9,12 +9,6 @@ session.auto_start=1
ob_start();
-/*
- * Prototype : bool session_write_close(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_write_close() : variation ***\n";
var_dump($_SESSION);
diff --git a/ext/session/tests/session_write_close_variation4.phpt b/ext/session/tests/session_write_close_variation4.phpt
index 63311651a8..239086833d 100644
--- a/ext/session/tests/session_write_close_variation4.phpt
+++ b/ext/session/tests/session_write_close_variation4.phpt
@@ -9,12 +9,6 @@ session.use_strict_mode=0
ob_start();
-/*
- * Prototype : bool session_write_close(void)
- * Description : Write session data and end session
- * Source code : ext/session/session.c
- */
-
echo "*** Testing session_write_close() : variation ***\n";
var_dump(session_id("test"));