1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00

- Added test for chown bug

This commit is contained in:
Jani Taskinen
2007-11-21 11:31:49 +00:00
parent ba1e024895
commit d4664800ac

View File

@@ -0,0 +1,13 @@
--TEST--
chown() with NULL as user name
--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
--UEXPECTF--
Warning: chown(): parameter 2 should be string or integer, null given in %schown.php on line %d
ALIVE