FAQ
<?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

Search Discussions

  • Ron Korving at Aug 14, 2004 at 12:52 pm
    http://bugs.php.net
    And please describe your problem better than this..
    Define "crash" ? A segfault ? An error message ?

    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
  • Hannes Magnusson at Aug 14, 2004 at 1:05 pm

    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
  • Ron Korving at Aug 14, 2004 at 1:13 pm
    Perfect :)

    Ron

    "Hannes Magnusson" <bjori@jeshus.com> wrote in message
    news:20040814150605.70521028.bjori@jeshus.com...
    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
  • Hannes Magnusson at Aug 14, 2004 at 1:32 pm
    If anyone is intrested.. http://bugs.php.net/29678

    On Sat, 14 Aug 2004 14:51:12 +0200
    bjori@jeshus.com (Hannes Magnusson) wrote:
    <?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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedAug 14, '04 at 12:50p
activeAug 14, '04 at 1:32p
posts5
users2
websitephp.net

2 users in discussion

Hannes Magnusson: 3 posts Ron Korving: 2 posts

People

Translate

site design / logo © 2022 Grokbase