""Pierre Joye"" <[EMAIL PROTECTED]> a écrit dans le message de groupe de
discussion : [EMAIL PROTECTED]
hi all!
Hello all,
On Sat, Aug 9, 2008 at 12:41 PM, Hannes Magnusson
<[EMAIL PROTECTED]> wrote:
On Sat, Aug 9, 2008 at 12:31, Dmitry Stogov <[EMAIL PROTECTED]> wrote:
Where is it documented?
http://php.net/realpath
http://www.ipnom.com/FreeBSD-Man-Pages/realpath.3.html
"On BSD systems realpath() doesn't fail if only the last path
component doesn't exist, while other systems will return FALSE."
This behavior has genearated enough pain in the past to be dropped.
The key problem in php application is portability. I'm in favor of
dropping this BSD specific thing in 5.3+.
+1, drop this BSD specific thing. It's impossible to write a portable code
since PHP offers no internal function to test if it's BSD compatible or not.
Does it?
Doing a stat on the entry type would be a good idea as a security
improvement too.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org
--
Regards.
--
Nicolas Chaillan | GROUPAKT.fr | UIN : 16549830
[EMAIL PROTECTED] | [EMAIL PROTECTED] | http://www.groupakt.fr
http://www.fmsakt.fr | http://www.prospecttel.com
Directeur général.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php