Remove empty sections. Fix bad use of --SKIP--

This commit is contained in:
Zoe Slattery 2009-07-21 14:02:24 +00:00
parent d671793295
commit 9ff94c82df
23 changed files with 15 additions and 94 deletions

View File

@ -1,6 +1,5 @@
--TEST--
Test function_exists() function : error conditions
--INI--
--FILE--
<?php
/*

View File

@ -1,6 +1,5 @@
--TEST--
Test preg_split() function : basic functionality
--INI--
--FILE--
<?php
/*

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -1,6 +1,5 @@
--TEST--
Bug #40709 (array_reduce() behaves strange with one item stored arrays)
--SKIPIF--
--FILE--
<?php
function CommaSeperatedList($a, $b) {

View File

@ -1,6 +1,5 @@
--TEST--
Test addslashes() function : basic functionality
--INI--
--FILE--
<?php
/* Prototype : string addslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test addslashes() function : error conditions
--INI--
--FILE--
<?php
/* Prototype : string addslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test addslashes() function : usage variations - non-string type argument
--INI--
--FILE--
<?php
/* Prototype : string addslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test addslashes() function : usage variations - strings with characters to be backslashed
--INI--
--FILE--
<?php
/* Prototype : string addslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test addslashes() function : usage variations - with magic_quotes_sybase directive ON
--INI--
--FILE--
<?php
/* Prototype : string addslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test stripcslashes() function : usage variations - non-string type argument
--INI--
--FILE--
<?php
/* Prototype : string stripcslashes ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test ucwords() function : basic functionality
--INI--
--FILE--
<?php
/* Prototype : string ucwords ( string $str )

View File

@ -1,6 +1,5 @@
--TEST--
Test ucwords() function : error conditions
--INI--
--FILE--
<?php
/* Prototype : string ucwords ( string $str )

View File

@ -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]]] )

View File

@ -1,6 +1,5 @@
--TEST--
Ensure that ArrayObject acts like an array
--SKIPIF--
--FILE--
<?php

View File

@ -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();

View File

@ -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] ***