[PHP-DEV] PHP 4.0 Bug #5886: Crashing when using readdir() From: d.protasov <email protected>
Date: 07/31/00

From: d.protasov <email protected>
Operating system: Solaris 2.6
PHP version: 4.0 Latest CVS (01/08/2000)
PHP Bug Type: Reproduceable crash
Bug description: Crashing when using readdir()

#!/usr/local/bin/php
  <?php
  $handle=opendir('.');
  echo "Directory handle: $handle\n";
  echo "Files:\n";
  while ($file = readdir($handle)) {
      echo "$file\n";
  }
  closedir($handle);
?>

php.ini is default
php is configured with --with-ldap --with-mysql

4.0.1pl2 is also affected. looks like a solaris libc<->php missinteraction.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>