PHP 4.0 Bug #5566: invalid Directory resource from opendir, but only sometimes?

From: Date: Thu, 13 Jul 2000 22:47:32 +0000
Subject: PHP 4.0 Bug #5566: invalid Directory resource from opendir, but only sometimes?
Groups: php.dev 
Request: Send a blank email to php-dev+get-24370@lists.php.net to get a copy of this message
From: johnf@aztech-cs.com Operating system: linux redhat 2.2.16 PHP version: 4.0.1 PHP Bug Type: Misbehaving function Bug description: invalid Directory resource from opendir, but only sometimes? DESCRIPTION Roughly half the time while reading from the directory handle, an invalid Directory resource error occurs. (When page is repeatedly reloaded) SCRIPT # Load Directory Into Array $dir = "../images/"; $handle = opendir($dir); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { $images[count($images)] = $file; } # Clean up and sort closedir($handle); CONFIGURE COMMANDS './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr' '--with-config-file-path=/etc/httpd/conf' '--with-pgsql' '--enable-debugger' '--with-gdbm' '--with-ndbm' ALL PHP.INI SETTINGS ARE DEFAULT

« previous php.dev (#24370) next »