Re: Question about bug #41262

From: Date: Fri, 11 May 2007 08:07:15 +0000
Subject: Re: Question about bug #41262
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-29402@lists.php.net to get a copy of this message
Stefan Priebsch schrieb:
I always use something str_replace('\\', '/', $aFilename) before I work with filenames, and normally have no cross-plattform issues with that. I also do it after using realpath(), for example.
I know. It's really a pain. In many times you must correct the PHP behavior in your PHP code :-/ (Or just use pcre for such tasks) On my bsd box (only PHP 5.0x) it's also curious when I try to build batchfiles for Windows. A "dirname('C:\\Windows\\foo')" returns "." ... (Maybe it's correct if I upgrade PHP?)
I know this is not really to the point, but it might just help you work around the problem.
It's not a current problem from me. Only a point which IMHO should be corrected. But thanks anyway. Regards, Carsten

« previous php.internals (#29402) next »