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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 1 = ?
Subscribe to this entry?

 
 [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)

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 17:01:30 2024 UTC