#39065 [Opn]: undocumented: symlink() changes behaviour depending on ZTS

From: Date: Fri, 17 Aug 2007 16:25:14 +0000
Subject: #39065 [Opn]: undocumented: symlink() changes behaviour depending on ZTS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116255@lists.php.net to get a copy of this message
 ID:               39065
 Updated by:       vrana@php.net
 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


Thread (1 message)

  • vrana@php.net
  • Unknown Message
    • vrana@php.net
« previous php.bugs (#116255) next »