PHP 4.0 Bug #5886: Crashing when using readdir()
| From: | d dot protasov at cbr-kem dot ru | Date: | Tue, 01 Aug 2000 03:34:48 +0000 |
| Subject: | PHP 4.0 Bug #5886: Crashing when using readdir() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27164@lists.php.net to get a copy of this message | ||
From: d.protasov@cbr-kem.ru
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.