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