Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
bug in file class
  • this my folder structure -+file
    +b
    +e
    +1
    New Microsoft Excel Worksheet.xls
    +foo
    +New Text Document.txt
    +New ACDSee Pro BMP Image.bmp
    this is when i do print_r on return of File::read_dir
    [tree] => Array
            (
                [b] => Array
                    (
                        [e] => Array
                            (
                                [0] => Array
                                    (
                                        [0] => New Microsoft Excel Worksheet.xls
                                    )
    
                                [foo] => Array
                                    (
                                        [0] => New Text Document.txt
                                    )
    
                                [1] => New ACDSee Pro BMP Image.bmp
                            )
    
                        [0] => New WinRAR archive.rar
                    )
    
            )
    

    apparently folder with numeric '1' cause this behaviour ? when i change folder name '1' to 'bar' everything ok
    [tree] => Array
            (
                [b] => Array
                    (
                        [e] => Array
                            (
                                [bar] => Array
                                    (
                                        [0] => New Microsoft Excel Worksheet.xls
                                    )
    
                                [foo] => Array
                                    (
                                        [0] => New Text Document.txt
                                    )
    
                                [0] => New ACDSee Pro BMP Image.bmp
                            )
    
                        [0] => New WinRAR archive.rar
                    )
    
            )
    
    
  • This bug is already in the bugtracker, will be fixed soon for the develop branch. If you find a bug it's always best to check the github bugtracker (it has a search function) and if it's not in there to report it there. We don't accept bugreports on the forums because we have a bugtracker for bugreports.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion