ID:               39065
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbugs at triphoenix dot de
 Status:           Open
-Bug Type:         Documentation problem
+Bug Type:         Feature/Change Request
 Operating System: Unix
-PHP Version:      Irrelevant
+PHP Version:      5.2.2
 New Comment:

It should behave same.


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

[2007-05-10 16:32:26] brunofr at ioda dot net

Same issue pb sur php 5.2.2

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

[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