xref: /PHP-7.4/ext/standard/tests/file/chown.phpt (revision fc23452c)
1--TEST--
2chown() with NULL as user name
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) == "WIN")
6  die("skip, not supported on Windows");
7?>
8--FILE--
9<?php
10chown("sjhgfskhagkfdgskjfhgskfsdgfkdsajf", NULL);
11echo "ALIVE\n";
12?>
13--EXPECTF--
14Warning: chown(): parameter 2 should be string or int, null given in %schown.php on line %d
15ALIVE
16