xref: /PHP-8.2/ext/standard/tests/file/chgrp.phpt (revision b10416a6)
1--TEST--
2chgrp() with NULL as group name
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) == "WIN")
6  die("skip, not supported on Windows");
7?>
8--FILE--
9<?php
10try {
11    chgrp("sjhgfskhagkfdgskjfhgskfsdgfkdsajf", 0);
12} catch (TypeError $exception) {
13    echo $exception->getMessage() . "\n";
14}
15?>
16--EXPECTF--
17Warning: chgrp(): No such file or directory in %s on line %d
18