Bug #72986 [Opn->Fbk]: File handling inconsistency between AIX and Linux

From: Date: Mon, 09 Jan 2017 05:28:57 +0000
Subject: Bug #72986 [Opn->Fbk]: File handling inconsistency between AIX and Linux
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206418@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72986&edit=1 ID: 72986 Updated by: krakjoe@php.net Reported by: matthieu dot sarter dot external at atos dot net Summary: File handling inconsistency between AIX and Linux -Status: Open +Status: Feedback Type: Bug Package: *Directory/Filesystem functions Operating System: AIX PHP Version: 7.0.10 Block user comment: N Private report: N New Comment: I think it will be better to skip the appropriate tests, since I have no AIX testing environment, please could you provide the patches to tests. Previous Comments: ------------------------------------------------------------------------ [2016-08-31 07:55:01] matthieu dot sarter dot external at atos dot net Description: ------------ AIX and Linux behaves differently when using file functions with regular filenames containing an excedentary trailing slash. Linux raises an error in this case, as expected in the Open Group specifications, while AIX ignores the trailing slash. To ensure consistent behaviour on the two OS, I suggest to add a check for excendentary trailing slash when accessing a regular file on AIX, and to raise the same error as on Linux. This is implemented in the attached patch (tested with PHP 7.0.3, 7.0.7, 7.0.9 and 7.0.10 on AIX 6.1). If consistency is not a priority, some tests under ext/standard/tests/file will need to be skipped on AIX (or better, the trailing slash tests should be grouped in a single phpt file, skipped on AIX, so that the other file related tests won't be skipped) : filegroup_variation3.phpt, fileinode_variation3.phpt, fileowner_variation3.phpt, fileperms_variation3.phpt and ext/standard/tests/file/rename_variation.phpt ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72986&edit=1

« previous php.bugs (#206418) next »