Skip to content

Commit

Permalink
minor symfony#15381 fix readlink description (a1812)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.4 branch.

Discussion
----------

fix readlink description

remove description readlink() for Windows misleading
see symfony/symfony#40866

Commits
-------

a2dd7ee fix readlink description
  • Loading branch information
javiereguiluz committed May 28, 2021
2 parents b217159 + a2dd7ee commit bbfc4cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/filesystem.rst
Expand Up @@ -214,10 +214,7 @@ support symbolic links, a third boolean argument is available::

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

PHP's :phpfunction:`readlink` function returns the target of a symbolic link. However, its behavior
is completely different under Windows and Unix. On Windows systems, ``readlink()``
resolves recursively the children links of a link until a final target is found. On
Unix-based systems ``readlink()`` only resolves the next link.
PHP's :phpfunction:`readlink` function returns the target of a symbolic link.

The :method:`Symfony\\Component\\Filesystem\\Filesystem::readlink` method provided
by the Filesystem component always behaves in the same way::
Expand Down

0 comments on commit bbfc4cc

Please sign in to comment.