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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 22:00:01 2026 UTC