summaryrefslogtreecommitdiff
path: root/ext/posix
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-05 17:10:26 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-03-05 17:10:26 +0100
commit824efb726c52117dbc146c4251480ce993dce771 (patch)
tree75bb0d44471c6d15da82a5952a1e79b9a39322d0 /ext/posix
parenta54fb4bc7a80cd3ff2cdd75263d65611e6f701aa (diff)
parent10b41136383c3245507ccbca51ac07384592acc6 (diff)
downloadphp-git-824efb726c52117dbc146c4251480ce993dce771.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/posix')
-rw-r--r--ext/posix/tests/posix_ctermid_error.phpt19
-rw-r--r--ext/posix/tests/posix_get_last_error_error.phpt31
-rw-r--r--ext/posix/tests/posix_getcwd_basic.phpt22
-rw-r--r--ext/posix/tests/posix_geteuid_error1.phpt37
-rw-r--r--ext/posix/tests/posix_getgid_error.phpt31
-rw-r--r--ext/posix/tests/posix_getgrgid_wrongparams.phpt28
-rw-r--r--ext/posix/tests/posix_getpgrp_error.phpt31
-rw-r--r--ext/posix/tests/posix_getpid_error.phpt31
-rw-r--r--ext/posix/tests/posix_getppid_error.phpt31
-rw-r--r--ext/posix/tests/posix_getuid_error.phpt31
-rw-r--r--ext/posix/tests/posix_initgroups_basic.phpt22
-rw-r--r--ext/posix/tests/posix_mkfifo_wrongparams.phpt21
-rw-r--r--ext/posix/tests/posix_seteuid_error.phpt32
-rw-r--r--ext/posix/tests/posix_seteuid_variation1.phpt41
-rw-r--r--ext/posix/tests/posix_seteuid_variation6.phpt48
-rw-r--r--ext/posix/tests/posix_setgid_error.phpt32
-rw-r--r--ext/posix/tests/posix_setgid_variation1.phpt47
-rw-r--r--ext/posix/tests/posix_setgid_variation7.phpt48
-rw-r--r--ext/posix/tests/posix_setuid_error.phpt35
-rw-r--r--ext/posix/tests/posix_setuid_variation1.phpt41
-rw-r--r--ext/posix/tests/posix_setuid_variation6.phpt48
-rw-r--r--ext/posix/tests/posix_times_error.phpt31
-rw-r--r--ext/posix/tests/posix_ttyname_error.phpt35
-rw-r--r--ext/posix/tests/posix_uname_error.phpt31
24 files changed, 0 insertions, 804 deletions
diff --git a/ext/posix/tests/posix_ctermid_error.phpt b/ext/posix/tests/posix_ctermid_error.phpt
deleted file mode 100644
index a177f54578..0000000000
--- a/ext/posix/tests/posix_ctermid_error.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Test function posix_ctermid() by calling it more than or less than its expected arguments
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-var_dump( posix_ctermid( 'foo' ) );
-
-?>
---EXPECTF--
-Warning: posix_ctermid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/posix/tests/posix_get_last_error_error.phpt b/ext/posix/tests/posix_get_last_error_error.phpt
deleted file mode 100644
index 5400b61598..0000000000
--- a/ext/posix/tests/posix_get_last_error_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_get_last_error() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_get_last_error(void)
- * Description: Retrieve the error number set by the last posix function which failed.
- * Source code: ext/posix/posix.c
- * Alias to functions: posix_errno
- */
-
-echo "*** Testing posix_get_last_error() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_get_last_error() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_get_last_error($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_get_last_error() : error conditions ***
-
--- Testing posix_get_last_error() function with one argument --
-
-Warning: posix_get_last_error() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_getcwd_basic.phpt b/ext/posix/tests/posix_getcwd_basic.phpt
deleted file mode 100644
index 9186f5e270..0000000000
--- a/ext/posix/tests/posix_getcwd_basic.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-posix_getcwd(): Basic tests
---SKIPIF--
-<?php
-if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
-if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found');
-?>
---FILE--
-<?php
-echo "Basic test of POSIX posix_getcwd function\n";
-var_dump(posix_getcwd());
-var_dump(posix_getcwd(1));
-
-?>
-===DONE===
---EXPECTF--
-Basic test of POSIX posix_getcwd function
-string(%d) "%s"
-
-Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-===DONE===
diff --git a/ext/posix/tests/posix_geteuid_error1.phpt b/ext/posix/tests/posix_geteuid_error1.phpt
deleted file mode 100644
index 941005f028..0000000000
--- a/ext/posix/tests/posix_geteuid_error1.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-Test function posix_geteuid() by calling it more than or less than its expected arguments
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$extra_args = array( 12312, 2 => '1234', 'string' => 'string' );
-
-var_dump( posix_geteuid( $extra_args ));
-foreach ( $extra_args as $arg )
-{
- var_dump(posix_geteuid( $arg ));
-}
-
-?>
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
diff --git a/ext/posix/tests/posix_getgid_error.phpt b/ext/posix/tests/posix_getgid_error.phpt
deleted file mode 100644
index f02d07413a..0000000000
--- a/ext/posix/tests/posix_getgid_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_getgid() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_getgid(void)
- * Description: Get the current group id (POSIX.1, 4.2.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_getgid() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_getgid() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_getgid($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_getgid() : error conditions ***
-
--- Testing posix_getgid() function with one argument --
-
-Warning: posix_getgid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_getgrgid_wrongparams.phpt b/ext/posix/tests/posix_getgrgid_wrongparams.phpt
deleted file mode 100644
index d1ff77d193..0000000000
--- a/ext/posix/tests/posix_getgrgid_wrongparams.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-Test parameters on posix_getgrgid().
---CREDITS--
-Till Klampaeckel, till@php.net
-TestFest Berlin 2009
---SKIPIF--
-<?php
-if (!extension_loaded('posix')) {
- die('SKIP The posix extension is not loaded.');
-}
-if (strtolower(PHP_OS) == 'darwin') {
- die('SKIP This test doesn\'t run on MacOSX/Darwin.');
-}
---FILE--
-<?php
-$gid = PHP_INT_MAX; // obscene high gid
-var_dump(posix_getgrgid($gid));
-var_dump(posix_getgrgid(-1));
-var_dump(posix_getgrgid());
-?>
-===DONE===
---EXPECTF--
-bool(false)
-bool(false)
-
-Warning: posix_getgrgid() expects exactly 1 parameter, 0 given in %s on line %d
-bool(false)
-===DONE===
diff --git a/ext/posix/tests/posix_getpgrp_error.phpt b/ext/posix/tests/posix_getpgrp_error.phpt
deleted file mode 100644
index 6076d688c9..0000000000
--- a/ext/posix/tests/posix_getpgrp_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_getpgrp() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_getpgrp(void)
- * Description: Get current process group id (POSIX.1, 4.3.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_getpgrp() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_getpgrp() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_getpgrp($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_getpgrp() : error conditions ***
-
--- Testing posix_getpgrp() function with one argument --
-
-Warning: posix_getpgrp() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_getpid_error.phpt b/ext/posix/tests/posix_getpid_error.phpt
deleted file mode 100644
index 46131b7c9d..0000000000
--- a/ext/posix/tests/posix_getpid_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_getpid() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_getpid(void)
- * Description: Get the current process id (POSIX.1, 4.1.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_getpid() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_getpid() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_getpid($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_getpid() : error conditions ***
-
--- Testing posix_getpid() function with one argument --
-
-Warning: posix_getpid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_getppid_error.phpt b/ext/posix/tests/posix_getppid_error.phpt
deleted file mode 100644
index d962182ba4..0000000000
--- a/ext/posix/tests/posix_getppid_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_getppid() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_getppid(void)
- * Description: Get the parent process id (POSIX.1, 4.1.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_getppid() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_getppid() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_getppid($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_getppid() : error conditions ***
-
--- Testing posix_getppid() function with one argument --
-
-Warning: posix_getppid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_getuid_error.phpt b/ext/posix/tests/posix_getuid_error.phpt
deleted file mode 100644
index 8954108c32..0000000000
--- a/ext/posix/tests/posix_getuid_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_getuid() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto int posix_getuid(void)
- * Description: Get the current user id (POSIX.1, 4.2.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_getuid() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_getuid() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_getuid($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_getuid() : error conditions ***
-
--- Testing posix_getuid() function with one argument --
-
-Warning: posix_getuid() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_initgroups_basic.phpt b/ext/posix/tests/posix_initgroups_basic.phpt
deleted file mode 100644
index 47d75f0745..0000000000
--- a/ext/posix/tests/posix_initgroups_basic.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-posix_initgroups(): Basic tests
---SKIPIF--
-<?php
-if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
-if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found');
-?>
---FILE--
-<?php
-echo "Basic test of POSIX posix_initgroups function\n";
-var_dump(posix_initgroups('foo', 'bar'));
-var_dump(posix_initgroups(NULL, NULL));
-
-?>
-===DONE====
---EXPECTF--
-Basic test of POSIX posix_initgroups function
-
-Warning: posix_initgroups() expects parameter 2 to be int, string given in %s on line %d
-bool(false)
-bool(false)
-===DONE====
diff --git a/ext/posix/tests/posix_mkfifo_wrongparams.phpt b/ext/posix/tests/posix_mkfifo_wrongparams.phpt
deleted file mode 100644
index 0d4df7b6e6..0000000000
--- a/ext/posix/tests/posix_mkfifo_wrongparams.phpt
+++ /dev/null
@@ -1,21 +0,0 @@
---TEST--
-Test parameter validation in posix_mkfifo().
---CREDITS--
-Till Klampaeckel, till@php.net
-TestFest Berlin 2009
---SKIPIF--
-<?php
-if (!extension_loaded('posix')) {
- die('SKIP The posix extension is not loaded.');
-}
-?>
---FILE--
-<?php
-posix_mkfifo(null);
-var_dump(posix_mkfifo(null, 0644));
-?>
-===DONE===
---EXPECTF--
-Warning: posix_mkfifo() expects exactly 2 parameters, 1 given in %s on line %d
-bool(false)
-===DONE===
diff --git a/ext/posix/tests/posix_seteuid_error.phpt b/ext/posix/tests/posix_seteuid_error.phpt
deleted file mode 100644
index 1ac3a38226..0000000000
--- a/ext/posix/tests/posix_seteuid_error.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test function posix_seteuid() by calling it more than or less than its expected arguments
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$uid = '123';
-$extra_arg = '12312';
-
-var_dump(posix_seteuid( $uid, $extra_arg ) );
-var_dump(posix_seteuid( ) );
-
-
-?>
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: posix_seteuid() expects exactly 1 parameter, 2 given in %s on line 9
-bool(false)
-
-Warning: posix_seteuid() expects exactly 1 parameter, 0 given in %s on line 10
-bool(false)
diff --git a/ext/posix/tests/posix_seteuid_variation1.phpt b/ext/posix/tests/posix_seteuid_variation1.phpt
deleted file mode 100644
index 6131b928a0..0000000000
--- a/ext/posix/tests/posix_seteuid_variation1.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test function posix_seteuid() by substituting argument 1 with array values.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-$index_array = array(1, 2, 3);
-$assoc_array = array(1 => 'one', 2 => 'two');
-
-$variation_array = array(
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_seteuid( $var ) );
-}
-
-?>
---EXPECTF--
-Warning: posix_seteuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
diff --git a/ext/posix/tests/posix_seteuid_variation6.phpt b/ext/posix/tests/posix_seteuid_variation6.phpt
deleted file mode 100644
index 9c0c3868f5..0000000000
--- a/ext/posix/tests/posix_seteuid_variation6.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test function posix_seteuid() by substituting argument 1 with string values.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---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 string values ***\n";
-
-
-
-$heredoc = <<<EOT
-hello world
-EOT;
-
-$variation_array = array(
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_seteuid( $var ) );
-}
-?>
---EXPECTF--
-*** Test substituting argument 1 with string values ***
-
-Warning: posix_seteuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_seteuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
diff --git a/ext/posix/tests/posix_setgid_error.phpt b/ext/posix/tests/posix_setgid_error.phpt
deleted file mode 100644
index 169bd9f9ab..0000000000
--- a/ext/posix/tests/posix_setgid_error.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Test function posix_setgid() by calling it more than or less than its expected arguments.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$gid = posix_getgid();
-$extra_arg = '123';
-
-var_dump(posix_setgid( $gid, $extra_arg ) );
-var_dump(posix_setgid( ) );
-
-?>
-===DONE===
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: posix_setgid() expects exactly 1 parameter, 2 given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects exactly 1 parameter, 0 given in %s on line %d
-bool(false)
-===DONE===
diff --git a/ext/posix/tests/posix_setgid_variation1.phpt b/ext/posix/tests/posix_setgid_variation1.phpt
deleted file mode 100644
index bb4b9b3f8b..0000000000
--- a/ext/posix/tests/posix_setgid_variation1.phpt
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-Test function posix_setgid() by substituting argument 1 with array values.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---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 array values ***\n";
-
-$index_array = array(1, 2, 3);
-$assoc_array = array(1 => 'one', 2 => 'two');
-
-$variation_array = array(
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_setgid( $var ) );
-}
-?>
-===DONE===
---EXPECTF--
-*** Test substituting argument 1 with array values ***
-
-Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d
-bool(false)
-===DONE===
diff --git a/ext/posix/tests/posix_setgid_variation7.phpt b/ext/posix/tests/posix_setgid_variation7.phpt
deleted file mode 100644
index 0c4ef502f4..0000000000
--- a/ext/posix/tests/posix_setgid_variation7.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test function posix_setgid() by substituting argument 1 with string values.
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-
-
-echo "*** Test substituting argument 1 with string values ***\n";
-
-
-
-$heredoc = <<<EOT
-hello world
-EOT;
-
-$variation_array = array(
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_setgid( $var ) );
-}
-?>
---EXPECTF--
-*** Test substituting argument 1 with string values ***
-
-Warning: posix_setgid() expects parameter 1 to be int, string given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, string given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, string given in %s on line %d
-bool(false)
-
-Warning: posix_setgid() expects parameter 1 to be int, string given in %s on line %d
-bool(false)
diff --git a/ext/posix/tests/posix_setuid_error.phpt b/ext/posix/tests/posix_setuid_error.phpt
deleted file mode 100644
index f1522e663c..0000000000
--- a/ext/posix/tests/posix_setuid_error.phpt
+++ /dev/null
@@ -1,35 +0,0 @@
---TEST--
-Test function posix_setuid() by calling it more than or less than its expected arguments
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$uid = '123';
-
-
-$extra_arg = '12312';
-
-var_dump(posix_setuid( $uid, $extra_arg ) );
-
-var_dump(posix_setuid( ) );
-
-
-?>
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: posix_setuid() expects exactly 1 parameter, 2 given in %s on line 11
-bool(false)
-
-Warning: posix_setuid() expects exactly 1 parameter, 0 given in %s on line 13
-bool(false)
diff --git a/ext/posix/tests/posix_setuid_variation1.phpt b/ext/posix/tests/posix_setuid_variation1.phpt
deleted file mode 100644
index 42ad939b61..0000000000
--- a/ext/posix/tests/posix_setuid_variation1.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Test function posix_setuid() by substituting argument 1 with array values.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---FILE--
-<?php
-
-$index_array = array(1, 2, 3);
-$assoc_array = array(1 => 'one', 2 => 'two');
-
-$variation_array = array(
- 'empty array' => array(),
- 'int indexed array' => $index_array,
- 'associative array' => $assoc_array,
- 'nested arrays' => array('foo', $index_array, $assoc_array),
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_setuid( $var ) );
-}
-
-?>
---EXPECTF--
-Warning: posix_setuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, array given in %s on line 15
-bool(false)
diff --git a/ext/posix/tests/posix_setuid_variation6.phpt b/ext/posix/tests/posix_setuid_variation6.phpt
deleted file mode 100644
index 9fd6ffe71c..0000000000
--- a/ext/posix/tests/posix_setuid_variation6.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Test function posix_setuid() by substituting argument 1 with string values.
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---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 string values ***\n";
-
-
-
-$heredoc = <<<EOT
-hello world
-EOT;
-
-$variation_array = array(
- 'string DQ' => "string",
- 'string SQ' => 'string',
- 'mixed case string' => "sTrInG",
- 'heredoc' => $heredoc,
- );
-
-
-foreach ( $variation_array as $var ) {
- var_dump(posix_setuid( $var ) );
-}
-?>
---EXPECTF--
-*** Test substituting argument 1 with string values ***
-
-Warning: posix_setuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
-
-Warning: posix_setuid() expects parameter 1 to be int, string given in %s on line 21
-bool(false)
diff --git a/ext/posix/tests/posix_times_error.phpt b/ext/posix/tests/posix_times_error.phpt
deleted file mode 100644
index 0f8a9e3601..0000000000
--- a/ext/posix/tests/posix_times_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_times() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto array posix_times(void)
- * Description: Get process times (POSIX.1, 4.5.2)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_times() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_times() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_times($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_times() : error conditions ***
-
--- Testing posix_times() function with one argument --
-
-Warning: posix_times() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done
diff --git a/ext/posix/tests/posix_ttyname_error.phpt b/ext/posix/tests/posix_ttyname_error.phpt
deleted file mode 100644
index effa709717..0000000000
--- a/ext/posix/tests/posix_ttyname_error.phpt
+++ /dev/null
@@ -1,35 +0,0 @@
---TEST--
-Test function posix_ttyname() by calling it more than or less than its expected arguments
---CREDITS--
-Marco Fabbri mrfabbri@gmail.com
-Francesco Fullone ff@ideato.it
-#PHPTestFest Cesena Italia on 2009-06-20
---SKIPIF--
-<?php
-if (!extension_loaded('posix')) {
- die('SKIP The posix extension is not loaded.');
-}
-?>
---FILE--
-<?php
-
-
-echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
-
-$fd = 'foo';
-$extra_arg = 'bar';
-
-var_dump(posix_ttyname( $fd, $extra_arg ) );
-
-var_dump(posix_ttyname( ) );
-
-
-?>
---EXPECTF--
-*** Test by calling method or function with incorrect numbers of arguments ***
-
-Warning: posix_ttyname() expects exactly 1 parameter, 2 given in %s on line %d
-bool(false)
-
-Warning: posix_ttyname() expects exactly 1 parameter, 0 given in %s on line %d
-bool(false)
diff --git a/ext/posix/tests/posix_uname_error.phpt b/ext/posix/tests/posix_uname_error.phpt
deleted file mode 100644
index 09c435fe69..0000000000
--- a/ext/posix/tests/posix_uname_error.phpt
+++ /dev/null
@@ -1,31 +0,0 @@
---TEST--
-Test posix_uname() function : error conditions
---SKIPIF--
-<?php
- if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
-?>
---FILE--
-<?php
-/* Prototype : proto array posix_uname(void)
- * Description: Get system name (POSIX.1, 4.4.1)
- * Source code: ext/posix/posix.c
- * Alias to functions:
- */
-
-echo "*** Testing posix_uname() : error conditions ***\n";
-
-// One argument
-echo "\n-- Testing posix_uname() function with one argument --\n";
-$extra_arg = 10;
-var_dump( posix_uname($extra_arg) );
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing posix_uname() : error conditions ***
-
--- Testing posix_uname() function with one argument --
-
-Warning: posix_uname() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-Done