--TEST--
stat
--INI--
-psi.directory={PWD}
+psi.directory={PWD}/../../psi.d:{PWD}
--SKIPIF--
-<?php
+<?php
extension_loaded("psi") or die("skip - need ext/psi");
+PHP_OS === "Linux" or die("skip - only for Linux");
?>
--FILE--
===TEST===
-<?php
+<?php
var_dump(psi\stat(__FILE__, $stat), $stat);
?>
===DONE===
--EXPECTF--
===TEST===
int(0)
-array(13) {
+array(16) {
["st_dev"]=>
int(%d)
["st_ino"]=>
["st_rdev"]=>
int(%d)
["st_size"]=>
- int(76)
+ int(75)
["st_atim"]=>
array(2) {
["tv_sec"]=>
["tv_nsec"]=>
int(%d)
}
+ ["st_atime"]=>
+ int(%d)
["st_mtim"]=>
array(2) {
["tv_sec"]=>
["tv_nsec"]=>
int(%d)
}
+ ["st_mtime"]=>
+ int(%d)
["st_ctim"]=>
array(2) {
["tv_sec"]=>
["tv_nsec"]=>
int(%d)
}
+ ["st_ctime"]=>
+ int(%d)
["st_blksize"]=>
int(%d)
["st_blocks"]=>
int(%d)
}
-===DONE===
\ No newline at end of file
+===DONE===