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:
13
ext/standard/tests/file/chown.phpt
Normal file
13
ext/standard/tests/file/chown.phpt
Normal 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
|
||||
Reference in New Issue
Block a user