php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55555 readlink() behaviour changed
Submitted: 2011-08-31 16:15 UTC Modified: 2011-08-31 18:27 UTC
From: datibbaw@php.net Assigned: datibbaw (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.4SVN-2011-08-31 (SVN) OS: Linux 2.6.39+
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: datibbaw@php.net
New email:
PHP Version: OS:

 

 [2011-08-31 16:15 UTC] 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



Patches

bug55555.v1.phpt.patch (last revision 2011-08-31 16:37 UTC by datibbaw@php.net)
bug55555.phpt.patch (last revision 2011-08-31 16:25 UTC by datibbaw@php.net)
bug55555.patch (last revision 2011-08-31 16:16 UTC by datibbaw@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-31 16:16 UTC] 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:16 UTC] datibbaw@php.net
Added a patch that should cleanly apply on PHP_5_4
 [2011-08-31 16:25 UTC] datibbaw@php.net
The following patch has been added/updated:

Patch Name: bug55555.phpt.patch
Revision:   1314807932
URL:        https://bugs.php.net/patch-display.php?bug=55555&patch=bug55555.phpt.patch&revision=1314807932
 [2011-08-31 16:37 UTC] datibbaw@php.net
The following patch has been added/updated:

Patch Name: bug55555.v1.phpt.patch
Revision:   1314808677
URL:        https://bugs.php.net/patch-display.php?bug=55555&patch=bug55555.v1.phpt.patch&revision=1314808677
 [2011-08-31 16:38 UTC] datibbaw@php.net
Added bug55555.v1.phpt.patch to fix ext/standard/tests/file/readlink_variation1.phpt
 [2011-08-31 17:44 UTC] bjori@php.net
-Assigned To: +Assigned To: datibbaw
 [2011-08-31 17:44 UTC] bjori@php.net
You've got tests karma now, commit it yourself.
 [2011-08-31 18:26 UTC] datibbaw@php.net
Automatic comment from SVN on behalf of datibbaw
Revision: http://svn.php.net/viewvc/?view=revision&revision=315912
Log: Fixed expect format to ignore the textual error message from readlink().

Bug #55555
 [2011-08-31 18:27 UTC] datibbaw@php.net
-Status: Assigned +Status: Closed
 [2011-08-31 18:27 UTC] datibbaw@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Fixed in trunk, PHP_5_3 and PHP_5_4
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 15:01:33 2025 UTC