]> granicus.if.org Git - php/commitdiff
MFH: chown bug test
authorJani Taskinen <jani@php.net>
Wed, 21 Nov 2007 11:32:16 +0000 (11:32 +0000)
committerJani Taskinen <jani@php.net>
Wed, 21 Nov 2007 11:32:16 +0000 (11:32 +0000)
ext/standard/tests/file/chown.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/chown.phpt b/ext/standard/tests/file/chown.phpt
new file mode 100644 (file)
index 0000000..ccc505e
--- /dev/null
@@ -0,0 +1,10 @@
+--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