Skip to content

Commit 401ff4c

Browse files
committed
Revert "Remove lchown($file, -5); test"
This reverts commit 0cc95b8. This has already been fixed in a different way in 3b830cf and is unrelated to typed properties...
1 parent 8b71442 commit 401ff4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/standard/tests/file/lchown_error.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ var_dump( lchown( 'foobar_lchown.txt', $uid ) );
4343
var_dump( lchown( new StdClass(), $uid ) );
4444
var_dump( lchown( array(), $uid ) );
4545

46+
// Bad user
47+
var_dump( lchown( $filename, -5 ) );
48+
4649
?>
4750
===DONE===
4851
--CLEAN--
@@ -69,4 +72,7 @@ bool(true)
6972

7073
Warning: lchown() expects parameter 1 to be a valid path, array given in %s on line %d
7174
bool(true)
75+
76+
Warning: lchown(): %r(Operation not permitted|Invalid argument)%r in %s on line %d
77+
bool(false)
7278
===DONE===

0 commit comments

Comments
 (0)