Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c92b018

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: fix readlink description
2 parents c8d56f0 + a2de717 commit c92b018

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

components/filesystem.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,9 @@ support symbolic links, a third boolean argument is available::
214214

215215
:method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` read links targets.
216216

217-
PHP's :phpfunction:`readlink` function returns the target of a symbolic link. However, its behavior
218-
is completely different under Windows and Unix. On Windows systems, ``readlink()``
219-
resolves recursively the children links of a link until a final target is found. On
220-
Unix-based systems ``readlink()`` only resolves the next link.
221-
222-
The :method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` method provided
223-
by the Filesystem component always behaves in the same way::
217+
The :method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` method
218+
provided by the Filesystem component behaves in the same way on all operating
219+
systems (unlike PHP's :phpfunction:`readlink` function)::
224220

225221
// returns the next direct target of the link without considering the existence of the target
226222
$filesystem->readlink('/path/to/link');

0 commit comments

Comments
 (0)