mirror of
https://github.com/php/php-src.git
synced 2024-10-03 15:56:11 +00:00
af5e2eaf8d
* pull-request/320: this is test 5 not 6 fix race condition more shared names that create race conditions change to a unique filename more shared filenames yet another shared filename don't share a filename to stop race conditions fix race condition for 2-4 and normalize names for others fix race condition when running tests in parallel clean up after test Fix #64572: Clean up after the test Fix #64572: Clean up after the test
31 lines
746 B
PHP
31 lines
746 B
PHP
--TEST--
|
|
SPL: Spl File Info test getPerms
|
|
--CREDITS--
|
|
Cesare D'Amico <cesare.damico@gruppovolta.it>
|
|
Andrea Giorgini <agiorg@gmail.com>
|
|
Filippo De Santis <fd@ideato.it>
|
|
Daniel Londero <daniel.londero@gmail.com>
|
|
Francesco Trucchia <ft@ideato.it>
|
|
Jacopo Romei <jacopo@sviluppoagile.it>
|
|
#Test Fest Cesena (Italy) on 2009-06-20
|
|
--SKIPIF--
|
|
<?php
|
|
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip this test not for Windows platforms");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
//file
|
|
touch ('SplFileInfo_getPerms_basic.txt');
|
|
chmod('SplFileInfo_getPerms_basic.txt', 0557);
|
|
$fileInfo = new SplFileInfo('SplFileInfo_getPerms_basic.txt');
|
|
var_dump($fileInfo->getPerms() == 0100557);
|
|
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
unlink('SplFileInfo_getPerms_basic.txt');
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|