[geeklog-devel] Interesting bug - path collision

Damien Hodgkin dracul01 at gmail.com
Wed Sep 3 16:15:42 EDT 2008


How about adding a small check to see if your running on a windows system, and
then make sure the correct file is included by doing a regex on the file name
to make sure it is Mail.php and not mail.php.

You can use case to your advantage on a windows system, it's just a matter of
how you do it, what tools you utilize and think outside of the four paned
window ;)

On Wednesday 03 September 2008 01:57:44 pm Vincent Furia wrote:

> Wouldn't it be easiest just to rename admin/mail.php?

>

> -Vinny

>

> On Wed, Sep 3, 2008 at 11:52 AM, Dirk Haun <dirk at haun-online.de> wrote:

> > Michael Jervis wrote:

> > > include_once( 'Mail.php' );

> > > include_once( 'Mail/RFC822.php' );

> > >

> > >Our current 'path' at this point is /admin. Which contains mail.php.

> > >Which is included instead of Pear's Mail.php. And then crashes.

> >

> > Ah, that issue again ... It pops up from time to time on the forums. I

> > have yet to see a proper solution.

> >

> > That affects everybody hosting on Windows (or on a case-insensitive file

> > system). Doing the include_once without any path is the way recommended

> > by PEAR. I have no idea what to do in a case like this ...

> >

> > bye, Dirk

> >

> >

> > --

> > http://www.haun-online.de/accu/

> >

> > _______________________________________________

> > geeklog-devel mailing list

> > geeklog-devel at lists.geeklog.net

> > http://eight.pairlist.net/mailman/listinfo/geeklog-devel






More information about the geeklog-devel mailing list