Re: opendir() with ftp:// wrapper without trailing slash causes php to crash

From: Date: Sat, 14 Aug 2004 13:06:05 +0000
Subject: Re: opendir() with ftp:// wrapper without trailing slash causes php to crash
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-12164@lists.php.net to get a copy of this message
On Sat, 14 Aug 2004 14:52:16 +0200 r.korving@xit.nl (Ron Korving) wrote: > http://bugs.php.net > And please describe your problem better than this.. > Define "crash" ? A segfault ? An error message ? segfault, would have expected error message :) Will file a bug report in a min.. > > Ron > > "Hannes Magnusson" <bjori@jeshus.com> wrote in message > news:20040814145112.1acd2f72.bjori@jeshus.com... > > <?php > > $url = > > 'ftp://anonymous:anonymous@ftp.no.freebsd.org'; > > $dir = opendir ( $url ); > > var_dump ( $dir ); > > ?> > > Causes php to crash. However. If I add trailing slash to $url it works as > expected. > > > > Running PHP5.0.0 btw. > > > > - Hannes

« previous php.internals (#12164) next »