Package: php4-cli
Version: 6:4.4.4-8+etch3
If a script opens files until the system's limit on open file descriptors
is reached, then glob starts returning incorrect results. The following
script demonstrates this.
-----------
#!/usr/bin/php -n
<?php
function f() {
var_dump(glob(dirname(__FILE__) . DIRECTORY_SEPARATOR . "*"));
}
f();
do {
$a[] = fopen(__FILE__, "r");
} while(is_resource($a[count($a) - 1]));
f(); # glob wrongly says the directory is empty
-----------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]