]> granicus.if.org Git - php/commitdiff
Fix the lchwon error test for Travis CI.
authorMitch Hagstrand <mhagstrand@gmail.com>
Fri, 11 Nov 2016 23:40:30 +0000 (15:40 -0800)
committerMitch Hagstrand <mhagstrand@gmail.com>
Sat, 12 Nov 2016 00:17:07 +0000 (16:17 -0800)
The E_WARNING message from the PHP function lchown is passed
from the system function lchown. The error message returned
from lchown can be filesystem dependent.

https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/standard/filestat.c#L406

ext/standard/tests/file/lchown_error.phpt

index bacbd93c82656ab0aa7f691801f6d23d58f5f327..8632495b3979ebba885099d9e15a3b8c8b08b306 100644 (file)
@@ -73,6 +73,6 @@ bool(true)
 Warning: lchown() expects parameter 1 to be a valid path, array given in %s on line %d
 bool(true)
 
-Warning: lchown(): Operation not permitted in %s on line %d
+Warning: lchown(): %r(Operation not permitted|Invalid argument)%r in %s on line %d
 bool(false)
 ===DONE===