Bug #55555 [PATCH]: readlink() behaviour changed

From: Date: Wed, 31 Aug 2011 16:37:57 +0000
Subject: Bug #55555 [PATCH]: readlink() behaviour changed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163198@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 Patch added 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: 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 Previous Comments: ------------------------------------------------------------------------ [2011-08-31 16:25:32] 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:16:50] datibbaw@php.net Added a patch that should cleanly apply on PHP_5_4 ------------------------------------------------------------------------ [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

« previous php.bugs (#163198) next »