mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/posix: Remove ZPP tests
This commit is contained in:
parent
8cd4f95ea3
commit
c26105d22e
3 changed files with 0 additions and 114 deletions
|
@ -1,38 +0,0 @@
|
|||
--TEST--
|
||||
Test function posix_seteuid() by substituting argument 1 with boolean values.
|
||||
--EXTENSIONS--
|
||||
posix
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
|
||||
?>
|
||||
--CREDITS--
|
||||
Marco Fabbri mrfabbri@gmail.com
|
||||
Francesco Fullone ff@ideato.it
|
||||
#PHPTestFest Cesena Italia on 2009-06-20
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
echo "*** Test substituting argument 1 with boolean values ***\n";
|
||||
|
||||
|
||||
|
||||
$variation_array = array(
|
||||
'lowercase true' => true,
|
||||
'lowercase false' =>false,
|
||||
'uppercase TRUE' =>TRUE,
|
||||
'uppercase FALSE' =>FALSE,
|
||||
);
|
||||
|
||||
|
||||
foreach ( $variation_array as $var ) {
|
||||
var_dump(posix_seteuid( $var ) );
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
*** Test substituting argument 1 with boolean values ***
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
|
@ -1,38 +0,0 @@
|
|||
--TEST--
|
||||
Test function posix_setgid() by substituting argument 1 with boolean values.
|
||||
--EXTENSIONS--
|
||||
posix
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
|
||||
?>
|
||||
--CREDITS--
|
||||
Marco Fabbri mrfabbri@gmail.com
|
||||
Francesco Fullone ff@ideato.it
|
||||
#PHPTestFest Cesena Italia on 2009-06-20
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
echo "*** Test substituting argument 1 with boolean values ***\n";
|
||||
|
||||
|
||||
|
||||
$variation_array = array(
|
||||
'lowercase true' => true,
|
||||
'lowercase false' =>false,
|
||||
'uppercase TRUE' =>TRUE,
|
||||
'uppercase FALSE' =>FALSE,
|
||||
);
|
||||
|
||||
|
||||
foreach ( $variation_array as $var ) {
|
||||
var_dump(posix_setgid( $var ) );
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
*** Test substituting argument 1 with boolean values ***
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
|
@ -1,38 +0,0 @@
|
|||
--TEST--
|
||||
Test function posix_setuid() by substituting argument 1 with boolean values.
|
||||
--EXTENSIONS--
|
||||
posix
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(posix_geteuid() == 0) print "skip - Cannot run test as root.";
|
||||
?>
|
||||
--CREDITS--
|
||||
Marco Fabbri mrfabbri@gmail.com
|
||||
Francesco Fullone ff@ideato.it
|
||||
#PHPTestFest Cesena Italia on 2009-06-20
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
echo "*** Test substituting argument 1 with boolean values ***\n";
|
||||
|
||||
|
||||
|
||||
$variation_array = array(
|
||||
'lowercase true' => true,
|
||||
'lowercase false' =>false,
|
||||
'uppercase TRUE' =>TRUE,
|
||||
'uppercase FALSE' =>FALSE,
|
||||
);
|
||||
|
||||
|
||||
foreach ( $variation_array as $var ) {
|
||||
var_dump(posix_setuid( $var ) );
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
*** Test substituting argument 1 with boolean values ***
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
Loading…
Add table
Add a link
Reference in a new issue