From: Nikita Popov Date: Wed, 1 Feb 2017 23:57:40 +0000 (+0100) Subject: Remove obsolete version checks from tests X-Git-Tag: php-7.2.0alpha1~428 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb008bf60e88e9bef10860322d1fa59d8e53b8f6;p=php Remove obsolete version checks from tests --- diff --git a/Zend/tests/return_types/reflection001.phpt b/Zend/tests/return_types/reflection001.phpt index 6492ee1906..c95f7292b5 100644 --- a/Zend/tests/return_types/reflection001.phpt +++ b/Zend/tests/return_types/reflection001.phpt @@ -1,12 +1,9 @@ --TEST-- Return type and Reflection::export() - --SKIPIF-- --FILE-- = 50399){ die('skip not needed anymore without register_globals'); } ?> ---GET-- -x=2 ---FILE-- - ---EXPECTF-- -1 -2 -ok diff --git a/ext/posix/tests/posix_access.phpt b/ext/posix/tests/posix_access.phpt deleted file mode 100644 index 47b5e15f0b..0000000000 --- a/ext/posix/tests/posix_access.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Test posix_access() function test ---DESCRIPTION-- -checks for existence, read-access, write-access, execute-access ---CREDITS-- -Moritz Neuhaeuser, info@xcompile.net -PHP Testfest Berlin 2009-05-10 ---SKIPIF-- - ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d -bool(true) -bool(true) -bool(true) -bool(true) -===DONE=== diff --git a/ext/posix/tests/posix_access_error_modes.phpt b/ext/posix/tests/posix_access_error_modes.phpt deleted file mode 100644 index fb04e34683..0000000000 --- a/ext/posix/tests/posix_access_error_modes.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test posix_access() function test error conditions ---DESCRIPTION-- -checks if posix_access() failes for wrong permissions ---CREDITS-- -Moritz Neuhaeuser, info@xcompile.net -PHP Testfest Berlin 2009-05-10 ---SKIPIF-- - ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -WDeprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line %d -bool(false) -bool(false) -bool(false) -bool(false) -===DONE=== diff --git a/ext/posix/tests/posix_access_error_wrongparams.phpt b/ext/posix/tests/posix_access_error_wrongparams.phpt deleted file mode 100644 index dcab33c4a7..0000000000 --- a/ext/posix/tests/posix_access_error_wrongparams.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Test posix_access() function : parameter validation ---DESCRIPTION-- -cases: no params, wrong param1, wrong param2, null directory, wrong directory, ---CREDITS-- -Moritz Neuhaeuser, info@xcompile.net -PHP Testfest Berlin 2009-05-10 ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0 - -Warning: posix_access() expects at least 1 parameter, 0 given in %s on line %d -bool(false) - -Warning: posix_access() expects parameter 1 to be string, array given in %s on line %d -bool(false) - -Warning: posix_access() expects parameter 2 to be integer, array given in %s on line %d -bool(false) -bool(false) -bool(false) -===DONE=== diff --git a/ext/posix/tests/posix_access_safemode.phpt b/ext/posix/tests/posix_access_safemode.phpt deleted file mode 100644 index b726b4fdbb..0000000000 --- a/ext/posix/tests/posix_access_safemode.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Test posix_access() with safe_mode enabled. ---CREDITS-- -Till Klampaeckel, till@php.net -TestFest Berlin 2009 ---SKIPIF-- - -===DONE=== ---EXPECTF-- -Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d -bool(false) -===DONE=== diff --git a/ext/posix/tests/posix_mkfifo_safemode.phpt b/ext/posix/tests/posix_mkfifo_safemode.phpt deleted file mode 100644 index 1126c00df0..0000000000 --- a/ext/posix/tests/posix_mkfifo_safemode.phpt +++ /dev/null @@ -1,45 +0,0 @@ ---TEST-- -Test posix_mkfifo() with safe_mode. ---DESCRIPTION-- -The test attempts to enable safe_mode, catches all the relevant E_WARNING's and tries to create a fifo in /tmp. - -The first attempt (writing to /tmp) should effectively fail because /tmp is owned by root. - -The second attempt (writing to a local created file) works. ---CREDITS-- -Till Klampaeckel, till@php.net -TestFest Berlin 2009 ---SKIPIF-- - ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d - -Warning: posix_mkfifo(): SAFE MODE Restriction in effect. The script whose uid is %d is not allowed to access /tmp owned by uid %d in %s on line %d -bool(false) -bool(true) -===DONE=== diff --git a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt index f725dfd088..e32790c923 100644 --- a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt +++ b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt @@ -2,9 +2,7 @@ Reflection::getClosureScopeClass() --SKIPIF-- --FILE-- --FILE-- TestFest PHP|Tek --SKIPIF-- --FILE-- --FILE-- = 50399){ die('skip not needed anymore without register_globals'); } ?> ---GET-- -a=1&b=heh&c=3&d[]=5&GLOBALS=test&1=hm ---POST-- -ap=25&bp=test&cp=blah3&dp[]=ar ---FILE-- - ---EXPECTF-- -Warning: import_request_variables() expects at least 1 parameter, 0 given in %s on line %d -NULL -bool(false) - -Notice: import_request_variables(): No prefix specified - possible security hazard in %s on line %d -bool(false) - -Notice: import_request_variables(): No prefix specified - possible security hazard in %s on line %d - -Warning: import_request_variables(): Attempted GLOBALS variable overwrite in %s on line %d - -Warning: import_request_variables(): Numeric key detected - possible security hazard in %s on line %d -bool(true) - -Notice: Undefined variable: ap in %s on line %d -string(1) "1" -string(3) "heh" -string(1) "3" -NULL -bool(true) - -Notice: Undefined variable: g_ap in %s on line %d -string(1) "1" -string(3) "heh" -string(1) "3" -NULL -string(2) "hm" -bool(true) -string(1) "1" -string(3) "heh" -string(1) "3" -string(2) "25" -string(4) "test" -string(5) "blah3" -array(1) { - [0]=> - string(2) "ar" -} -bool(true) - -Notice: Undefined variable: r_ap in %s on line %d -string(1) "1" -string(3) "heh" -string(1) "3" -NULL -Done diff --git a/ext/standard/tests/general_functions/import_request1.phpt b/ext/standard/tests/general_functions/import_request1.phpt deleted file mode 100644 index f592088afc..0000000000 --- a/ext/standard/tests/general_functions/import_request1.phpt +++ /dev/null @@ -1,101 +0,0 @@ ---TEST-- -import_request_variables() test (overwrite super-globals) ---SKIPIF-- -= 50399){ die('skip not needed anymore without register_globals'); } ?> ---GET-- -GET=0&POST=1&COOKIE=2&FILES=3&REQUEST=4 ---POST-- -GET=5&POST=6&COOKIE=7&FILES=8&REQUEST=9 ---COOKIE-- -GET=10;POST=11;COOKIE=12;FILES=13;REQUEST=14 ---INI-- -variables_order=CGP ---FILE-- - ---EXPECTF-- -Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d - -Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d -array(5) { - ["GET"]=> - string(1) "0" - ["POST"]=> - string(1) "1" - ["COOKIE"]=> - string(1) "2" - ["FILES"]=> - string(1) "3" - ["REQUEST"]=> - string(1) "4" -} -array(5) { - ["GET"]=> - string(1) "5" - ["POST"]=> - string(1) "6" - ["COOKIE"]=> - string(1) "7" - ["FILES"]=> - string(1) "8" - ["REQUEST"]=> - string(1) "9" -} -array(5) { - ["GET"]=> - string(2) "10" - ["POST"]=> - string(2) "11" - ["COOKIE"]=> - string(2) "12" - ["FILES"]=> - string(2) "13" - ["REQUEST"]=> - string(2) "14" -} -array(0) { -} -array(5) { - ["GET"]=> - string(1) "5" - ["POST"]=> - string(1) "6" - ["COOKIE"]=> - string(1) "7" - ["FILES"]=> - string(1) "8" - ["REQUEST"]=> - string(1) "9" -} -Done diff --git a/ext/standard/tests/general_functions/import_request2.phpt b/ext/standard/tests/general_functions/import_request2.phpt deleted file mode 100644 index c290602b23..0000000000 --- a/ext/standard/tests/general_functions/import_request2.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -import_request_variables() test (numeric keys) ---SKIPIF-- -= 50399){ die('skip not needed anymore without register_globals'); } ?> ---GET-- -1=0&2=1&3=2&4=3&5=4 ---POST-- -1=5&2=6&3=7&4=8&5=9 ---COOKIE-- -1=10;2=11;3=12;4=13;5=14 ---INI-- -variables_order=CGP ---FILE-- - ---EXPECTF-- -string(2) "10" -string(2) "11" -string(2) "12" -string(2) "13" -string(2) "14" -Done diff --git a/ext/standard/tests/general_functions/import_request3.phpt b/ext/standard/tests/general_functions/import_request3.phpt deleted file mode 100644 index a8cbf565dd..0000000000 --- a/ext/standard/tests/general_functions/import_request3.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -import_request_variables() test (numeric keys, different order) ---SKIPIF-- -= 50399){ die('skip not needed anymore without register_globals'); } ?> ---GET-- -1=0&2=1&3=2&4=3&5=4 ---POST-- -1=5&2=6&3=7&4=8&5=9 ---COOKIE-- -1=10;2=11;3=12;4=13;5=14 ---INI-- -variables_order=CGP ---FILE-- - ---EXPECTF-- -string(1) "5" -string(1) "6" -string(1) "7" -string(1) "8" -string(1) "9" -Done