php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6132 Misbehaving function
Submitted: 2000-08-12 18:08 UTC Modified: 2000-09-03 07:47 UTC
From: lasse at herlevkollegiet dot dk Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lasse at herlevkollegiet dot dk
New email:
PHP Version: OS:

 

 [2000-08-12 18:08 UTC] lasse at herlevkollegiet dot dk
I got several directories named x1,x2,x3 and so on.

I want to extract every directory except x2, but it dosn't work in PHP4. I tried in PHP3 and it works

<? $d=dir("."); 
    while ($filename=$d->read()) { 
      if (is_dir($filename) && $filename!='x2') { 
        echo "$filename\n"; 
      } 
    } 
?> 

Thanks in advance,
Lasse

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-13 05:54 UTC] stas@php.net
So, what exactly is the problem?
 [2000-09-03 07:45 UTC] waldschrott@php.net
Closed due to missing user feedback, most likely non
existent anymore.
 [2000-09-03 07:47 UTC] waldschrott@php.net
wrong msg, should read:

Closed due to missing user feedback, most likely no bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 12:01:29 2024 UTC