�php  IHDRwQ)B�a pHYs  ��sRGB���gAMA�� �a�IDATx��Mk\U��s&uo,�m�D )Xw�+�e?��tw.�o�Wp��;���QHZnw�`gaiJ�9�����̟灙����a�=�nl�[ ʨG��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$��� ��w�@�H��;@ q$�����y H����@�E7j�� 1j+OF����Rg}ܫ�;@�E��a�����~ �j`�u�'o�> �j�-$�_�q?�q�SXzG'��ay

PAL.C.T MINI SHELL
files >> /var/www/html/sub/images/sym/root/var/www/html/gs1/foto/php1/tests/function/
upload
files >> //var/www/html/sub/images/sym/root/var/www/html/gs1/foto/php1/tests/function/scandir.phpt

--TEST--
Function -- scandir
--FILE--
<?php
require_once 'PHP/Compat/Function/scandir.php';

// Create a folder and fill it with files
mkdir('tmp');
touch('tmp/test1');
touch('tmp/test2');

// Scan it
$dir    = 'tmp';
// Not sorted
$files = php_compat_scandir($dir);
// Sorted
$files2 = php_compat_scandir($dir, 1);

// List the results
print_r($files);
print_r($files2);

// Remove the files
unlink('tmp/test1');
unlink('tmp/test2');
rmdir('tmp');
?>
--EXPECT--
Array
(
    [0] => .
    [1] => ..
    [2] => test1
    [3] => test2
)
Array
(
    [0] => test2
    [1] => test1
    [2] => ..
    [3] => .
)
� y���~�or�5�J�={��E��e�u磝Qk��ᯘG{�?���+�]������ן�?w�M3X^��歌>{�7پ�K�>�o��n�\����j�y��R ���g/�=��f�O��r�o��NV�v��~�Y+��NG�u���Ý����HW��y�w�[eQ�ʨ�S�b��>������>�}G�mx[o[<��{���Ϯ_��qF� ��vMIEND�B`�