Directory helper - directory_map - possible bug with dirs with number names #1978

Closed
kaamil1984 opened this Issue Nov 6, 2012 · 1 comment

Projects

None yet

2 participants

@kaamil1984

Hi guys,

I'm not the best PHP programmer and i have little issue with directory_map function.

I have data directory, and i have one html file and one directory inside.

When my directory has name with only numbers - directory_map creates array like this:

Array ( [201212] => Array ( ) [201213] => index.html )

Array key/index is automatically incremented for next file/dir. Is this intentional?

Regards
Kamil

@narfbg narfbg added a commit that referenced this issue Nov 6, 2012
@narfbg narfbg Fix issue #1978 ba77f8a
@narfbg

Indeed, it is a bug. Fixed in the above-referenced commit.

@narfbg narfbg closed this Nov 6, 2012
@vlakoff vlakoff added a commit that referenced this issue Feb 19, 2013
@vlakoff vlakoff Add an upgrade note about change in the results of Directory Helper's…
… directory_map()

see issue #1978
92b8246
@nonchip nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
@narfbg narfbg Fix issue #1978 be52a78
@nonchip nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
@vlakoff vlakoff Add an upgrade note about change in the results of Directory Helper's…
… directory_map()

see issue #1978
b590035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment