1--TEST-- 2Test posix_pathconf 3--EXTENSIONS-- 4posix 5--SKIPIF-- 6<?php 7if (!function_exists("posix_pathconf")) die("skip only platforms with posix_pathconf"); 8?> 9--FILE-- 10<?php 11try { 12 posix_pathconf('', POSIX_PC_PATH_MAX); 13} catch (\ValueError $e) { 14 echo $e->getMessage(). "\n"; 15} 16var_dump(posix_pathconf(str_repeat('non_existent', 4096), POSIX_PC_NAME_MAX)); 17var_dump(posix_errno() != 0); 18var_dump(posix_pathconf(sys_get_temp_dir(), POSIX_PC_PATH_MAX)); 19?> 20--EXPECTF-- 21posix_pathconf(): Argument #1 ($path) cannot be empty 22bool(false) 23bool(true) 24int(%d) 25