php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5717 Crashing when using opendir()
Submitted: 2000-07-21 08:33 UTC Modified: 2000-08-20 02:23 UTC
From: neilson at predialnet dot com dot br Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Intel Solaris 8
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: neilson at predialnet dot com dot br
New email:
PHP Version: OS:

 

 [2000-07-21 08:33 UTC] neilson at predialnet dot com dot br
#!/usr/local/bin/php
  <?php
  $handle=opendir('.');
  echo "Directory handle: $handle\n";
  echo "Files:\n";
  while ($file = readdir($handle)) {
      echo "$file\n";
  }
  closedir($handle);
  ?>

configured with:  --with-mysql=../mysql-3.23.21-beta

My PHP.ini is default

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-21 11:48 UTC] hholzgra at cvs dot php dot net
is there something special about the 
directory you are trying to read
(lots of files, special files like
sockets or devices, permissions)?

and could you possibly generate a backtrace ?
 [2000-08-20 02:23 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 08:00:02 2026 UTC