From:             [EMAIL PROTECTED]
Operating system: Win2K
PHP version:      4.0.6
PHP Bug Type:     Strings related
Bug description:  EVAL code not working correctly if IF block



for ($i=0;$i<=$numargs-1;$i++){ 
        if ($numargs>0 && $i!=$numargs-1){
                $x=$x." || ";
echo $validExtensions;


while (($filename = readdir($handle))!==false) {
if (is_file($filename)){
        $fd = fopen ($filename, "rb");
        $contents = fread ($fd, filesize ($filename));

                if (eval($validExtensions)){
                                echo $filename."<br>";

        fclose ($fd);



Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to