Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/standard/tests/directory/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/standard/tests/directory/DirectoryClass_basic_001.phpt |
--TEST-- Directory class behaviour. --FILE-- <?php /* * Prototype: object dir(string directory[, resource context]) * Description: Directory class with properties, handle and class and methods read, rewind and close * Class is defined in ext/standard/dir.c */ echo "Structure of Directory class:\n"; $rc = new ReflectionClass("Directory"); echo $rc; echo "Cannot instantiate a valid Directory directly:\n"; $d = new Directory(getcwd()); var_dump($d); var_dump($d->read()); ?> --EXPECTF-- Structure of Directory class: Class [ <internal%s> class Directory ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [3] { Method [ <internal:standard> public method close ] { - Parameters [1] { Parameter #0 [ <optional> $dir_handle ] } } Method [ <internal:standard> public method rewind ] { - Parameters [1] { Parameter #0 [ <optional> $dir_handle ] } } Method [ <internal:standard> public method read ] { - Parameters [1] { Parameter #0 [ <optional> $dir_handle ] } } } } Cannot instantiate a valid Directory directly: object(Directory)#%d (0) { } Warning: Directory::read(): Unable to find my handle property in %s on line 15 bool(false)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare