File tree Expand file tree Collapse file tree 9 files changed +0
-112
lines changed Expand file tree Collapse file tree 9 files changed +0
-112
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ if (!function_exists('posix_getcwd')) die('skip posix_getcwd() not found');
9
9
<?php
10
10
11
11
var_dump (posix_getcwd ());
12
- var_dump (posix_getcwd (1 ));
13
12
14
13
?>
15
14
--EXPECTF--
16
15
string(%d) "%s"
17
-
18
- Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
19
- NULL
Original file line number Diff line number Diff line change @@ -14,17 +14,6 @@ Test posix_getgrgid() function : error conditions
14
14
15
15
echo "*** Testing posix_getgrgid() : error conditions *** \n" ;
16
16
17
- // Zero arguments
18
- echo "\n-- Testing posix_getgrgid() function with Zero arguments -- \n" ;
19
- var_dump ( posix_getgrgid () );
20
-
21
- //Test posix_getgrgid with one more than the expected number of arguments
22
- echo "\n-- Testing posix_getgrgid() function with more than expected no. of arguments -- \n" ;
23
-
24
- $ extra_arg = 10 ;
25
- $ gid = 0 ;
26
- var_dump ( posix_getgrgid ($ gid , $ extra_arg ) );
27
-
28
17
echo "\n-- Testing posix_getgrgid() function with a negative group id -- \n" ;
29
18
$ gid = -999 ;
30
19
var_dump ( posix_getgrgid ($ gid ));
@@ -34,16 +23,6 @@ echo "Done";
34
23
--EXPECTF--
35
24
*** Testing posix_getgrgid() : error conditions ***
36
25
37
- -- Testing posix_getgrgid() function with Zero arguments --
38
-
39
- Warning: posix_getgrgid() expects exactly 1 parameter, 0 given in %s on line %d
40
- bool(false)
41
-
42
- -- Testing posix_getgrgid() function with more than expected no. of arguments --
43
-
44
- Warning: posix_getgrgid() expects exactly 1 parameter, 2 given in %s on line %d
45
- bool(false)
46
-
47
26
-- Testing posix_getgrgid() function with a negative group id --
48
27
bool(false)
49
28
Done
Original file line number Diff line number Diff line change @@ -16,14 +16,6 @@ if((!extension_loaded("posix")) || (!function_exists("posix_getpgid"))) {
16
16
17
17
echo "*** Testing posix_getpgid() : error conditions *** \n" ;
18
18
19
- echo "\n-- Testing posix_getpgid() function no arguments -- \n" ;
20
- var_dump ( posix_getpgid () );
21
-
22
- echo "\n-- Testing posix_getpgid() with one extra argument -- \n" ;
23
- $ pid = 10 ;
24
- $ extra_arg = 20 ;
25
- var_dump ( posix_getpgid ($ pid , $ extra_arg ) );
26
-
27
19
echo "\n-- Testing posix_getpgid() with negative pid -- \n" ;
28
20
$ pid = -99 ;
29
21
var_dump ( posix_getpgid ($ pid ) );
@@ -33,16 +25,6 @@ echo "Done";
33
25
--EXPECTF--
34
26
*** Testing posix_getpgid() : error conditions ***
35
27
36
- -- Testing posix_getpgid() function no arguments --
37
-
38
- Warning: posix_getpgid() expects exactly 1 parameter, 0 given in %s on line %d
39
- bool(false)
40
-
41
- -- Testing posix_getpgid() with one extra argument --
42
-
43
- Warning: posix_getpgid() expects exactly 1 parameter, 2 given in %s on line %d
44
- bool(false)
45
-
46
28
-- Testing posix_getpgid() with negative pid --
47
29
bool(false)
48
30
Done
Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ Test posix_getpwuid() function : error conditions
14
14
15
15
echo "*** Testing posix_getpwuid() : error conditions *** \n" ;
16
16
17
- echo "\n-- Testing posix_getpwuid() function with Zero arguments -- \n" ;
18
- var_dump ( posix_getpwuid () );
19
-
20
- echo "\n-- Testing posix_getpwuid() function with more than expected no. of arguments -- \n" ;
21
- $ uid = posix_getuid ();
22
- $ extra_arg = 10 ;
23
- var_dump ( posix_getpwuid ($ uid , $ extra_arg ) );
24
-
25
17
echo "\n-- Testing posix_getpwuid() function negative uid -- \n" ;
26
18
$ uid = -99 ;
27
19
var_dump ( posix_getpwuid ($ uid ) );
@@ -31,16 +23,6 @@ echo "Done";
31
23
--EXPECTF--
32
24
*** Testing posix_getpwuid() : error conditions ***
33
25
34
- -- Testing posix_getpwuid() function with Zero arguments --
35
-
36
- Warning: posix_getpwuid() expects exactly 1 parameter, 0 given in %s on line %d
37
- bool(false)
38
-
39
- -- Testing posix_getpwuid() function with more than expected no. of arguments --
40
-
41
- Warning: posix_getpwuid() expects exactly 1 parameter, 2 given in %s on line %d
42
- bool(false)
43
-
44
26
-- Testing posix_getpwuid() function negative uid --
45
27
bool(false)
46
28
Done
Original file line number Diff line number Diff line change @@ -13,16 +13,9 @@ PHP Testfest Berlin 2009-05-10
13
13
?>
14
14
--FILE--
15
15
<?php
16
- var_dump ( posix_getsid () );
17
- var_dump ( posix_getsid (array ()) );
18
16
var_dump ( posix_getsid (-1 ) );
19
17
?>
20
18
===DONE===
21
19
--EXPECTF--
22
- Warning: posix_getsid() expects exactly 1 parameter, 0 given in %s on line %d
23
- bool(false)
24
-
25
- Warning: posix_getsid() expects parameter 1 to be int, array given in %s on line %d
26
- bool(false)
27
20
bool(false)
28
21
===DONE===
Original file line number Diff line number Diff line change @@ -8,11 +8,8 @@ if (!function_exists('posix_initgroups')) die('skip posix_initgroups() not found
8
8
--FILE--
9
9
<?php
10
10
11
- var_dump (posix_initgroups ('foo ' , 'bar ' ));
12
11
var_dump (posix_initgroups (NULL , NULL ));
13
12
14
13
?>
15
14
--EXPECTF--
16
- Warning: posix_initgroups() expects parameter 2 to be int, string given in %s on line %d
17
- bool(false)
18
15
bool(false)
Original file line number Diff line number Diff line change @@ -16,16 +16,6 @@ Test posix_kill() function : error conditions
16
16
echo "*** Testing posix_kill() : error conditions *** \n" ;
17
17
18
18
19
- echo "\n-- Testing posix_kill() function with more than expected no. of arguments -- \n" ;
20
- $ pid = posix_getpid ();
21
- $ sig = 9 ;
22
- $ extra_arg = 10 ;
23
- var_dump ( posix_kill ($ pid , $ sig , $ extra_arg ) );
24
-
25
- echo "\n-- Testing posix_kill() function with less than expected no. of arguments -- \n" ;
26
- $ pid = posix_getpid ();
27
- var_dump ( posix_kill ($ pid ) );
28
-
29
19
echo "\n-- Testing posix_kill() function with invalid signal -- \n" ;
30
20
$ pid = posix_getpid ();
31
21
$ sig = 999 ;
@@ -41,16 +31,6 @@ echo "Done";
41
31
--EXPECTF--
42
32
*** Testing posix_kill() : error conditions ***
43
33
44
- -- Testing posix_kill() function with more than expected no. of arguments --
45
-
46
- Warning: posix_kill() expects exactly 2 parameters, 3 given in %s on line %d
47
- bool(false)
48
-
49
- -- Testing posix_kill() function with less than expected no. of arguments --
50
-
51
- Warning: posix_kill() expects exactly 2 parameters, 1 given in %s on line %d
52
- bool(false)
53
-
54
34
-- Testing posix_kill() function with invalid signal --
55
35
bool(false)
56
36
Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ Test posix_strerror() function : error conditions
14
14
15
15
echo "*** Testing posix_strerror() : error conditions *** \n" ;
16
16
17
- echo "\n-- Testing posix_strerror() function with Zero arguments -- \n" ;
18
- var_dump ( posix_strerror () );
19
-
20
- echo "\n-- Testing posix_strerror() function with more than expected no. of arguments -- \n" ;
21
- $ errno = posix_get_last_error ();
22
- $ extra_arg = 10 ;
23
- var_dump ( posix_strerror ($ errno , $ extra_arg ) );
24
-
25
17
echo "\n-- Testing posix_strerror() function with invalid error number -- \n" ;
26
18
$ errno = -999 ;
27
19
echo gettype ( posix_strerror ($ errno ) )."\n" ;
@@ -31,16 +23,6 @@ echo "Done";
31
23
--EXPECTF--
32
24
*** Testing posix_strerror() : error conditions ***
33
25
34
- -- Testing posix_strerror() function with Zero arguments --
35
-
36
- Warning: posix_strerror() expects exactly 1 parameter, 0 given in %s on line %d
37
- bool(false)
38
-
39
- -- Testing posix_strerror() function with more than expected no. of arguments --
40
-
41
- Warning: posix_strerror() expects exactly 1 parameter, 2 given in %s on line %d
42
- bool(false)
43
-
44
26
-- Testing posix_strerror() function with invalid error number --
45
27
string
46
28
Done
Original file line number Diff line number Diff line change @@ -20,14 +20,11 @@ PHP Testfest Berlin 2009-05-10
20
20
?>
21
21
--FILE--
22
22
<?php
23
- var_dump (posix_ttyname ()); // param missing
24
23
var_dump (posix_ttyname (0 )); // param not a ressource
25
24
var_dump (posix_ttyname (imagecreate (1 , 1 ))); // wrong resource type
26
25
?>
27
26
===DONE===
28
27
--EXPECTF--
29
- Warning: posix_ttyname() expects exactly 1 parameter, 0 given in %s on line %d
30
- bool(false)
31
28
bool(false)
32
29
33
30
Warning: posix_ttyname(): supplied resource is not a valid stream resource in %s on line %d
You can’t perform that action at this time.
0 commit comments