PHP 4.0 Bug #6132: Misbehaving function

From: Date: Sat, 12 Aug 2000 22:08:35 +0000
Subject: PHP 4.0 Bug #6132: Misbehaving function
Groups: php.dev 
Request: Send a blank email to php-dev+get-28727@lists.php.net to get a copy of this message
From: lasse@herlevkollegiet.dk Operating system: Linux PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: Misbehaving function 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

« previous php.dev (#28727) next »