]> granicus.if.org Git - php/commitdiff
fix #49599, the eol-style is important here, as this is a regression test for #36459
authorFerenc Kovacs <tyrael@php.net>
Mon, 26 Sep 2011 23:28:24 +0000 (23:28 +0000)
committerFerenc Kovacs <tyrael@php.net>
Mon, 26 Sep 2011 23:28:24 +0000 (23:28 +0000)
ext/session/tests/bug36459.phpt

index c1b64561745dc4e4fb745add000b949299765920..66a4ac1cbc3d23ec31fa21c53fa620bf132c863b 100644 (file)
@@ -1,42 +1,42 @@
---TEST--
-Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)
---SKIPIF--
-<?php include('skipif.inc'); ?>
---INI--
-session.use_trans_sid=1
-session.use_cookies=0
-session.use_only_cookies=0
-session.name=sid
---FILE--
-<?php
-error_reporting(E_ALL);
-
-session_start();
-
-# Do not remove \r from this tests, they are essential!
-?>
-<html>
-  <head>
-    <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
-  </head>
-  <body>
-    <p>See source html code</p>
-    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2"
-       style="font: normal 11pt Times New Roman">incorrect link</a><br />
-    <br />
-    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" style="font: normal 11pt Times New Roman">correct link</a>
-  </body>
-</html>
---EXPECTF--
-<html>
-  <head>
-    <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>
-  </head>
-  <body>
-    <p>See source html code</p>
-    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s"
-       style="font: normal 11pt Times New Roman">incorrect link</a><br />
-    <br />
-    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s" style="font: normal 11pt Times New Roman">correct link</a>
-  </body>
-</html>
+--TEST--\r
+Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n)\r
+--SKIPIF--\r
+<?php include('skipif.inc'); ?>\r
+--INI--\r
+session.use_trans_sid=1\r
+session.use_cookies=0\r
+session.use_only_cookies=0\r
+session.name=sid\r
+--FILE--\r
+<?php\r
+error_reporting(E_ALL);\r
+\r
+session_start();\r
+\r
+# Do not remove \r from this tests, they are essential!\r
+?>\r
+<html>\r
+  <head>\r
+    <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>\r
+  </head>\r
+  <body>\r
+    <p>See source html code</p>\r
+    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2"\r
+       style="font: normal 11pt Times New Roman">incorrect link</a><br />\r
+    <br />\r
+    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" style="font: normal 11pt Times New Roman">correct link</a>\r
+  </body>\r
+</html>\r
+--EXPECTF--\r
+<html>\r
+  <head>\r
+    <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title>\r
+  </head>\r
+  <body>\r
+    <p>See source html code</p>\r
+    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s"\r
+       style="font: normal 11pt Times New Roman">incorrect link</a><br />\r
+    <br />\r
+    <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s" style="font: normal 11pt Times New Roman">correct link</a>\r
+  </body>\r
+</html>\r