diff options
Diffstat (limited to 'ext/session/tests/session_basic3.phpt')
-rw-r--r-- | ext/session/tests/session_basic3.phpt | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/ext/session/tests/session_basic3.phpt b/ext/session/tests/session_basic3.phpt index 3cc90a8eef..0337151cf0 100644 --- a/ext/session/tests/session_basic3.phpt +++ b/ext/session/tests/session_basic3.phpt @@ -12,8 +12,7 @@ session.gc_divisor=1000 session.gc_maxlifetime=300 session.save_path= session.name=PHPSESSID ---XFAIL-- -Waiting url_scanner_ex.re fix. https://bugs.php.net/bug.php?id=68970 +url_rewriter.hosts= --SKIPIF-- <?php include('skipif.inc'); ?> --FILE-- @@ -206,15 +205,15 @@ echo ' <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="http://php.net/script.php" method="post"> +<form method="post" action="http://php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="https://php.net/script.php" method="post"> +<form method="post" action="https://php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="//php.net/script.php" method="post"> +<form method="post" action="//php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> @@ -233,15 +232,6 @@ ob_end_flush(); *** Test trans sid *** <a href="/?PHPSESSID=testid">test</a> -<a href="/?PHPSESSID=testid#bar">test</a> -<a href="/?foo&PHPSESSID=testid">test</a> -<a href="/?foo&PHPSESSID=testid#bar">test</a> -<a href="/?foo=var&PHPSESSID=testid">test</a> -<a href="/?foo=var&PHPSESSID=testid#bar">test</a> -<a href="file.php?PHPSESSID=testid">test</a> -<a href="file.php?foo&PHPSESSID=testid">test</a> -<a href="file.php?foo=var&PHPSESSID=testid">test</a> -<a href="/?PHPSESSID=testid">test</a> <a href="/path?PHPSESSID=testid">test</a> <a href="/path/?PHPSESSID=testid">test</a> <a href="/path/?foo=var&PHPSESSID=testid">test</a> @@ -257,14 +247,23 @@ ob_end_flush(); <a href="../path/?PHPSESSID=testid#bar">test</a> <a href="../path/?foo=var&PHPSESSID=testid#bar">test</a> -<a href="/?foo">test</a> -<a href="/?foo#bar">test</a> -<a href="/?foo=var">test</a> -<a href="/?foo=var#bar">test</a> -<a href="../?foo">test</a> -<a href="../?foo#bar">test</a> -<a href="../?foo=var">test</a> -<a href="../?foo=var#bar">test</a> +<a href="/?foo&PHPSESSID=testid">test</a> +<a href="/?foo&PHPSESSID=testid#bar">test</a> +<a href="/?foo=var&PHPSESSID=testid">test</a> +<a href="/?foo=var&PHPSESSID=testid#bar">test</a> +<a href="../?foo&PHPSESSID=testid">test</a> +<a href="../?foo&PHPSESSID=testid#bar">test</a> +<a href="../?foo=var&PHPSESSID=testid">test</a> +<a href="../?foo=var&PHPSESSID=testid#bar">test</a> + +<a href="file.php?PHPSESSID=testid">test</a> +<a href="file.php?foo&PHPSESSID=testid">test</a> +<a href="file.php?foo=var&PHPSESSID=testid">test</a> +<a href="file.php?foo=var&PHPSESSID=testid#bar">test</a> +<a href="../file.php?PHPSESSID=testid">test</a> +<a href="../file.php?foo&PHPSESSID=testid">test</a> +<a href="../file.php?foo=var&PHPSESSID=testid">test</a> +<a href="../file.php?foo=var&PHPSESSID=testid#bar">test</a> <a href="http://php.net">test</a> <a href="http://php.net/">test</a> @@ -317,31 +316,31 @@ ob_end_flush(); <a href="//php.net/some/path/file.php?foo=var">test</a> <a href="//php.net/some/path/file.php?foo=var#bar">test</a> -<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form action="script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form action="../script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form action="/path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form action="../path/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="http://php.net/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form method="post" action="http://php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="https://php.net/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form method="post" action="https://php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> -<form action="//php.net/script.php" method="post"><input type="hidden" name="PHPSESSID" value="testid" /><input type="hidden" name="PHPSESSID" value="testid" /> +<form method="post" action="//php.net/script.php"> <input type="text" name="test1"></input> <input type="text" name="test2" /> </form> @@ -349,4 +348,4 @@ NULL *** Cleanup *** bool(true) string(6) "testid" -bool(true)
\ No newline at end of file +bool(true) |