At the moment I have:
$files = array_merge(
glob($path_ . '*.js'),
glob($path_ . '*.css'));
If the directories are empty on windows it returns an empty array. If they are empty on linux nothing is returned.
This produces this error on linux: Warning: array_merge() [function.array-merge]: Argument #1 is not an array
- Windows: Apache:2.2.21 PHP:5.3.10
- Linux/Debian: Apache:2.2.16 PHP:5.3.10
After some further research and testing I found that it is a bug in PHP: https://bugs.php.net/bug.php?id=53460
@array_merge(...)