From 3b830cfb5c87974eb48596cdc4e4bf07cab89acc Mon Sep 17 00:00:00 2001 From: Mitch Hagstrand Date: Fri, 11 Nov 2016 15:40:30 -0800 Subject: [PATCH] Fix the lchwon error test for Travis CI. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/tests/file/lchown_error.phpt b/ext/standard/tests/file/lchown_error.phpt index bacbd93c82..8632495b39 100644 --- a/ext/standard/tests/file/lchown_error.phpt +++ b/ext/standard/tests/file/lchown_error.phpt @@ -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=== -- 2.40.0