Bug #55555 [Com]: readlink() behaviour changed
| From: | datibbaw@php.net | Date: | Wed, 31 Aug 2011 16:16:50 +0000 |
| Subject: | Bug #55555 [Com]: readlink() behaviour changed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163196@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55555&edit=1
ID: 55555
Comment by: datibbaw@php.net
Reported by: datibbaw@php.net
Summary: readlink() behaviour changed
Status: Open
Type: Bug
Package: Filesystem function related
Operating System: Linux 2.6.39+
PHP Version: 5.4SVN-2011-08-31 (SVN)
Block user comment: N
Private report: N
New Comment:
Added a patch that should cleanly apply on PHP_5_4
Previous Comments:
------------------------------------------------------------------------
[2011-08-31 16:16:22] datibbaw@php.net
The following patch has been added/updated:
Patch Name: bug55555.patch
Revision: 1314807382
URL: https://bugs.php.net/patch-display.php?bug=55555&patch=bug55555.patch&revision=1314807382
------------------------------------------------------------------------
[2011-08-31 16:15:21] datibbaw@php.net
Description:
------------
From Linux kernels 2.6.39 onwards, readlink() returns EINVAL instead of ENOENT. This causes the
wrong error message to be shown.
Test script:
---------------
Test case: ext/standard/tests/file/readlink_realpath_variation3.phpt
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55555&edit=1