#39281 [NEW]: glob() returns false

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #39281 [NEW]: glob() returns false

    From: johan dot ekman1 at comhem dot se
    Operating system: windows xp, apache
    PHP version: 5.1.6
    PHP Bug Type: *Directory/Filesystem functions
    Bug description: glob() returns false

    Description:
    ------------
    The glob function returns false when globing directories which have files
    containing () in the name.

    Reproduce code:
    ---------------
    $data = glob("c:/mywwwroot/data/*");
    var_dump($data);

    Expected result:
    ----------------
    array(1) { [0]=> string(39) "c:/mywwwroot/data/myfile(olof)data.txt" }

    Actual result:
    --------------
    bool (false)

    --
    Edit bug report at [url]http://bugs.php.net/?id=39281&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39281&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39281&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39281&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39281&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39281&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39281&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39281&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39281&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39281&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39281&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39281&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39281&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39281&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39281&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39281&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39281&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39281&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39281&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39281&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39281&r=mysqlcfg[/url]
    johan dot ekman1 at comhem dot se Guest

  2. Similar Questions and Discussions

    1. mail() returns FALSE, no err msg
      Sometimes my mail() function returns FALSE, but there is no error message. Error reporting is set to E_ALL. It seems to be a problem of the bcc:...
    2. #24627 [Bgs]: feof always returns false
      ID: 24627 Updated by: sniper@php.net Reported By: duerra at yahoo dot com Status: Bogus Bug Type: ...
    3. #24627 [Bgs->Opn]: feof always returns false
      ID: 24627 User updated by: duerra at yahoo dot com Reported By: duerra at yahoo dot com -Status: Bogus +Status: ...
    4. #24627 [Com]: feof always returns false
      ID: 24627 Comment by: b_ulrich at t-online dot de Reported By: duerra at yahoo dot com Status: Open Bug Type: ...
    5. #24627 [NEW]: feof always returns false
      From: duerra at yahoo dot com Operating system: XP Pro PHP version: 4.3.3RC1 PHP Bug Type: Filesystem function related Bug...
  3. #2

    Default #39281 [Opn->Fbk]: glob() returns false

    ID: 39281
    Updated by: [email]tony2001@php.net[/email]
    Reported By: johan dot ekman1 at comhem dot se
    -Status: Open
    +Status: Feedback
    Bug Type: *Directory/Filesystem functions
    Operating System: windows xp, apache
    PHP Version: 5.1.6
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-27 16:00:16] johan dot ekman1 at comhem dot se

    Description:
    ------------
    The glob function returns false when globing directories which have
    files containing () in the name.

    Reproduce code:
    ---------------
    $data = glob("c:/mywwwroot/data/*");
    var_dump($data);

    Expected result:
    ----------------
    array(1) { [0]=> string(39) "c:/mywwwroot/data/myfile(olof)data.txt" }

    Actual result:
    --------------
    bool (false)


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39281&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #39281 [Fbk->Opn]: glob() returns false

    ID: 39281
    User updated by: johan dot ekman1 at comhem dot se
    Reported By: johan dot ekman1 at comhem dot se
    -Status: Feedback
    +Status: Open
    Bug Type: *Directory/Filesystem functions
    Operating System: windows xp, apache
    PHP Version: 5.1.6
    New Comment:

    It works with the snapshot.
    Thank you.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-27 21:50:15] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-27 16:00:16] johan dot ekman1 at comhem dot se

    Description:
    ------------
    The glob function returns false when globing directories which have
    files containing () in the name.

    Reproduce code:
    ---------------
    $data = glob("c:/mywwwroot/data/*");
    var_dump($data);

    Expected result:
    ----------------
    array(1) { [0]=> string(39) "c:/mywwwroot/data/myfile(olof)data.txt" }

    Actual result:
    --------------
    bool (false)


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39281&edit=1[/url]
    johan dot ekman1 at comhem dot se Guest

  5. #4

    Default #39281 [Opn->Csd]: glob() returns false

    ID: 39281
    Updated by: [email]tony2001@php.net[/email]
    Reported By: johan dot ekman1 at comhem dot se
    -Status: Open
    +Status: Closed
    Bug Type: *Directory/Filesystem functions
    Operating System: windows xp, apache
    PHP Version: 5.1.6


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-30 21:30:05] johan dot ekman1 at comhem dot se

    It works with the snapshot.
    Thank you.

    ------------------------------------------------------------------------

    [2006-10-27 21:50:15] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-27 16:00:16] johan dot ekman1 at comhem dot se

    Description:
    ------------
    The glob function returns false when globing directories which have
    files containing () in the name.

    Reproduce code:
    ---------------
    $data = glob("c:/mywwwroot/data/*");
    var_dump($data);

    Expected result:
    ----------------
    array(1) { [0]=> string(39) "c:/mywwwroot/data/myfile(olof)data.txt" }

    Actual result:
    --------------
    bool (false)


    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39281&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139