ID:               39065
 Comment by:       brunofr at ioda dot net
 Reported By:      phpbugs at triphoenix dot de
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Unix
 PHP Version:      Irrelevant
 New Comment:

Same issue pb sur php 5.2.2


Previous Comments:
------------------------------------------------------------------------

[2006-10-06 14:39:44] phpbugs at triphoenix dot de

Description:
------------
The symlink() function changes its behaviour depending on the ZTS
define. If ZTS is not defined, all are created relative, if ZTS is
enabled, the parameters are evaluated to actual absolute directories and
thus are created absolute. This is different behaviour and should be at
least documented in a proper way. 

Reproduce code:
---------------
symlink("..", "testlink");

Expected result:
----------------
Depending on enabled or disabled ZTS the symlink will be created
relative (pointing to "..") or absolute (e.g. if currently in
"/tmp/test/phptest" pointing to "/tmp/test"). If the link (or the
directory containing it) is being moved/renamed later, the latter can
lead to a broken link while the first cannot.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39065&edit=1

Reply via email to