Bug #72986 [Fbk->NoF]: File handling inconsistency between AIX and Linux
| From: | php-bugs at lists dot php dot net | Date: | Sun, 22 Jan 2017 04:22:50 +0000 |
| Subject: | Bug #72986 [Fbk->NoF]: File handling inconsistency between AIX and Linux | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206836@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: php-bugs@lists.php.net
Reported by: matthieu dot sarter dot external at atos dot net
Summary: File handling inconsistency between AIX and Linux
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *Directory/Filesystem functions
Operating System: AIX
PHP Version: 7.0.10
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2017-01-09 05:28:56] krakjoe@php.net
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.
------------------------------------------------------------------------
[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