pajoye Mon, 09 Jan 2012 14:29:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321953
Log:
- rm
Changed paths:
D php/php-src/branches/PHP_5_4/tests/basic/bug46313-win.phpt
D php/php-src/trunk/tests/basic/bug46313-win.phpt
Deleted: php/php-src/branches/PHP_5_4/tests/basic/bug46313-win.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/tests/basic/bug46313-win.phpt 2012-01-09
13:56:46 UTC (rev 321952)
+++ php/php-src/branches/PHP_5_4/tests/basic/bug46313-win.phpt 2012-01-09
14:29:06 UTC (rev 321953)
@@ -1,62 +0,0 @@
---TEST--
-Bug #46313 (Magic quotes broke $_FILES)
---SKIPIF--
-<?php if(substr(PHP_OS, 0, 3) != "WIN") die("skip Windows-only test"); ?>
---INI--
-file_uploads=1
---POST_RAW--
-Content-Type: multipart/form-data;
boundary=---------------------------20896060251896012921717172737
------------------------------20896060251896012921717172737
-Content-Disposition: form-data; name="o1'file"; filename="o1'file.png"
-Content-Type: text/plain-file1
-
-1
------------------------------20896060251896012921717172737
-Content-Disposition: form-data; name="o2'file"; filename="o2'file2.txt"
-Content-Type: text/plain-file2
-
-2
------------------------------20896060251896012921717172737--
---FILE--
-<?php
-var_dump($_FILES);
-var_dump($GLOBALS["o1\'file_name"]);
-var_dump($GLOBALS["o1\'file_name"] === $_FILES["o1\'file"]["name"]);
-var_dump($GLOBALS["o1\'file"]);
-var_dump($GLOBALS["o1\'file"] === $_FILES["o1\'file"]["tmp_name"]);
-?>
---EXPECTF--
-array(2) {
- ["o1\'file"]=>
- array(5) {
- ["name"]=>
- string(12) "o1"
- ["type"]=>
- string(16) "text/plain-file1"
- ["tmp_name"]=>
- string(14) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
- ["o2\'file"]=>
- array(5) {
- ["name"]=>
- string(13) "o2"
- ["type"]=>
- string(16) "text/plain-file2"
- ["tmp_name"]=>
- string(14) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
-}
-string(12) "o1"
-bool(true)
-string(%d) "%s"
-bool(true)
-Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in
Unknown on line 0
-Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in
Unknown on line 0
Deleted: php/php-src/trunk/tests/basic/bug46313-win.phpt
===================================================================
--- php/php-src/trunk/tests/basic/bug46313-win.phpt 2012-01-09 13:56:46 UTC
(rev 321952)
+++ php/php-src/trunk/tests/basic/bug46313-win.phpt 2012-01-09 14:29:06 UTC
(rev 321953)
@@ -1,62 +0,0 @@
---TEST--
-Bug #46313 (Magic quotes broke $_FILES)
---SKIPIF--
-<?php if(substr(PHP_OS, 0, 3) != "WIN") die("skip Windows-only test"); ?>
---INI--
-file_uploads=1
---POST_RAW--
-Content-Type: multipart/form-data;
boundary=---------------------------20896060251896012921717172737
------------------------------20896060251896012921717172737
-Content-Disposition: form-data; name="o1'file"; filename="o1'file.png"
-Content-Type: text/plain-file1
-
-1
------------------------------20896060251896012921717172737
-Content-Disposition: form-data; name="o2'file"; filename="o2'file2.txt"
-Content-Type: text/plain-file2
-
-2
------------------------------20896060251896012921717172737--
---FILE--
-<?php
-var_dump($_FILES);
-var_dump($GLOBALS["o1\'file_name"]);
-var_dump($GLOBALS["o1\'file_name"] === $_FILES["o1\'file"]["name"]);
-var_dump($GLOBALS["o1\'file"]);
-var_dump($GLOBALS["o1\'file"] === $_FILES["o1\'file"]["tmp_name"]);
-?>
---EXPECTF--
-array(2) {
- ["o1\'file"]=>
- array(5) {
- ["name"]=>
- string(12) "o1"
- ["type"]=>
- string(16) "text/plain-file1"
- ["tmp_name"]=>
- string(14) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
- ["o2\'file"]=>
- array(5) {
- ["name"]=>
- string(13) "o2"
- ["type"]=>
- string(16) "text/plain-file2"
- ["tmp_name"]=>
- string(14) "%s"
- ["error"]=>
- int(0)
- ["size"]=>
- int(1)
- }
-}
-string(12) "o1"
-bool(true)
-string(%d) "%s"
-bool(true)
-Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in
Unknown on line 0
-Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in
Unknown on line 0
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php