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/share/php/test/PHP_Archive/tests/ |
Current File : //usr/share/php/test/PHP_Archive/tests/streamstat.phpt |
--TEST-- Test statting an open .phar file handle --INI-- phar.require_hash=Off --SKIPIF-- <?php if (version_compare(phpversion(), '5.0.0', '<')) { echo 'skip php5-only test'; } if (extension_loaded('phar')) { echo 'skip test conflicts with phar extension'; } ?> --FILE-- <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php'; require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'longfilename' . DIRECTORY_SEPARATOR . 'longphar.phar'; $fp = fopen('phar://longphar.phar/testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest.php', 'r'); $phpunit = new PEAR_PHPTest(true); $x = fstat($fp); $phpunit->assertEquals(array ( 0 => 0, 1 => 0, 2 => 33060, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 43, 8 => $x[8], 9 => $x[8], 10 => $x[8], 11 => 0, 12 => 0, 'dev' => 0, 'ino' => 0, 'mode' => 33060, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 43, 'atime' => $x[8], 'mtime' => $x[8], 'ctime' => $x[8], 'blksize' => 0, 'blocks' => 0, ), $x, 'stat'); fclose($fp); echo 'tests done'; ?> --EXPECT-- phar://longphar.phar/testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest.phpstring(5) "hello" tests done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare