mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Remove empty sections. Fix bad use of --SKIP--
This commit is contained in:
parent
d671793295
commit
9ff94c82df
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test function_exists() function : error conditions
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test preg_split() function : basic functionality
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
@ -73,4 +72,4 @@ array(10) {
|
||||
string(1) "("
|
||||
[9]=>
|
||||
string(1) ")"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_getcwd(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_getgrnam(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_getgrnam')) die('skip posix_getgrnam() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_getpwnam(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_getpwnam')) die('skip posix_getpwnam() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_getrlimit(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_getrlimit')) die('skip posix_getrlimit() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_initgroups(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_isatty(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_isatty')) die('skip posix_isatty() not found');
|
||||
|
@ -1,6 +1,6 @@
|
||||
--TEST--
|
||||
posix_mknod(): Basic tests
|
||||
--SKIP--
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
||||
if (!function_exists('posix_mknod')) die('skip posix_mknod() not found');
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Bug #40709 (array_reduce() behaves strange with one item stored arrays)
|
||||
--SKIPIF--
|
||||
--FILE--
|
||||
<?php
|
||||
function CommaSeperatedList($a, $b) {
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test addslashes() function : basic functionality
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string addslashes ( string $str )
|
||||
@ -36,4 +35,4 @@ string(16) "How\'s everybody"
|
||||
string(17) "Are you \"JOHN\"?"
|
||||
string(19) "c:\\php\\addslashes"
|
||||
string(12) "hello\0world"
|
||||
Done
|
||||
Done
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test addslashes() function : error conditions
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string addslashes ( string $str )
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test addslashes() function : usage variations - non-string type argument
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string addslashes ( string $str )
|
||||
@ -169,4 +168,4 @@ NULL
|
||||
string(0) ""
|
||||
-- Iteration 26 --
|
||||
string(0) ""
|
||||
===DONE===
|
||||
===DONE===
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test addslashes() function : usage variations - strings with characters to be backslashed
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string addslashes ( string $str )
|
||||
@ -192,4 +191,4 @@ This is line 2 of \"heredoc\" string"
|
||||
|
||||
-- Iteration 34 --
|
||||
string(0) ""
|
||||
Done
|
||||
Done
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test addslashes() function : usage variations - with magic_quotes_sybase directive ON
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string addslashes ( string $str )
|
||||
|
Binary file not shown.
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test stripcslashes() function : usage variations - non-string type argument
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string stripcslashes ( string $str )
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test ucwords() function : basic functionality
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string ucwords ( string $str )
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test ucwords() function : error conditions
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string ucwords ( string $str )
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Test wordwrap() function : usage variations - unexptected values for break argument
|
||||
--INI--
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
|
||||
|
@ -1,6 +1,5 @@
|
||||
--TEST--
|
||||
Ensure that ArrayObject acts like an array
|
||||
--SKIPIF--
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -90,6 +90,7 @@ function test_open_basedir_before($function, $change = TRUE) {
|
||||
global $savedDirectory;
|
||||
echo "*** Testing open_basedir configuration [$function] ***\n";
|
||||
$directory = getcwd();
|
||||
var_dump($directory);
|
||||
$savedDirectory = $directory;
|
||||
var_dump(chdir($directory));
|
||||
create_directories();
|
||||
|
@ -1,78 +1,11 @@
|
||||
--TEST--
|
||||
Test open_basedir configuration
|
||||
--INI--
|
||||
open_basedir=.
|
||||
open_basedir={PWD}
|
||||
--FILE--
|
||||
<?php
|
||||
require_once "open_basedir.inc";
|
||||
test_open_basedir_before("copy");
|
||||
$thisdir = dirname(__FILE__);
|
||||
|
||||
var_dump(copy("ok.txt", "../bad"));
|
||||
var_dump(copy("ok.txt", "../bad/bad.txt"));
|
||||
var_dump(copy("ok.txt", ".."));
|
||||
var_dump(copy("ok.txt", "../"));
|
||||
var_dump(copy("ok.txt", "/"));
|
||||
var_dump(copy("ok.txt", "../bad/."));
|
||||
var_dump(copy("ok.txt", "../bad/./bad.txt"));
|
||||
var_dump(copy("ok.txt", "./../."));
|
||||
var_dump(touch($thisdir . "afile"));
|
||||
|
||||
var_dump(copy("ok.txt", "copy.txt"));
|
||||
var_dump(unlink("copy.txt"));
|
||||
test_open_basedir_after("copy");
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once "open_basedir.inc";
|
||||
delete_directories();
|
||||
?>
|
||||
--EXPECTF--
|
||||
*** Testing open_basedir configuration [copy] ***
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(../bad): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(../bad/bad.txt): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(..): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(../) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(../): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(/): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(../bad/.): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(../bad/./bad.txt): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: copy(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on line %d
|
||||
|
||||
Warning: copy(./../.): failed to open stream: %s in %s on line %d
|
||||
bool(false)
|
||||
bool(true)
|
||||
bool(true)
|
||||
*** Finished testing open_basedir configuration [copy] ***
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user