Home
last modified time | relevance | path

Searched refs:path (Results 126 – 150 of 853) sorted by relevance

12345678910>>...35

/php-src/ext/xmlwriter/tests/
H A Dbug48204.phpt7 $path = str_repeat('a', PHP_MAXPATHLEN + 1);
8 var_dump(xmlwriter_open_uri('file:///' . $path));
15 Warning: xmlwriter_open_uri(): Unable to resolve file path in %s on line %d
/php-src/ext/standard/tests/file/
H A Dchmod_variation2-win32-mb.phpt24 echo "chmod() on a path containing .. and .\n";
30 echo "\nchmod() on a path containing .. with invalid directories\n";
36 echo "\nchmod() on a relative path from a different working directory\n";
56 chmod() on a path containing .. and .
61 chmod() on a path containing .. with invalid directories
66 chmod() on a relative path from a different working directory
H A Dchmod_variation2-win32.phpt24 echo "chmod() on a path containing .. and .\n";
30 echo "\nchmod() on a path containing .. with invalid directories\n";
36 echo "\nchmod() on a relative path from a different working directory\n";
56 chmod() on a path containing .. and .
61 chmod() on a path containing .. with invalid directories
66 chmod() on a relative path from a different working directory
H A Dfile_variation5.phpt23 echo "file() on a path containing .. and .\n";
26 echo "\nfile() on a path containing .. with invalid directories\n";
35 echo "\nfile() on a relative path from a different working directory\n";
49 file() on a path containing .. and .
61 file() on a path containing .. with invalid directories
87 file() on a relative path from a different working directory
H A Dfile_put_contents_variation6.phpt2 Test file_put_contents() function : variation - include path testing
33 // in the include path. In this case it doesn't so the file should be written in the current dir.
35 file_put_contents($filename, "File in include path", FILE_USE_INCLUDE_PATH);
52 File in include path. This was appended
53 File in include path. This was appended
H A Dsymlink_to_symlink.phpt2 symlink() using a relative path, and symlink() to a symlink
18 // symlink to a symlink using a relative path
21 // symlink to a non-existent path
25 // symlink to a regular file using an absolute path
28 // symlink to a symlink using an absolute path
/php-src/ext/session/tests/user_session_module/
H A Dbug32330.phpt17 function open($path, $name): bool
19 echo "open: path = {$path}, name = {$name}\n";
73 open: path = %s, name = sid
78 open: path = %s, name = sid
83 open: path = %s, name = sid
/php-src/tests/security/
H A Dopen_basedir_chmod.phpt43 Warning: chmod(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s…
46 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
49 Warning: chmod(): open_basedir restriction in effect. File(..) is not within the allowed path(s): (…
52 Warning: chmod(): open_basedir restriction in effect. File(../) is not within the allowed path(s): …
55 Warning: chmod(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (.…
58 Warning: chmod(): open_basedir restriction in effect. File(../bad/.) is not within the allowed path
61 …r restriction in effect. File(../bad/./bad.txt) is not within the allowed path(s): (.) in %s on li…
64 Warning: chmod(): open_basedir restriction in effect. File(./../.) is not within the allowed path(s…
H A Dopen_basedir_link.phpt49 …striction in effect. File(%s/test/bad/link.txt) is not within the allowed path(s): (.) in %s on li…
52 …r restriction in effect. File(%s/test/link.txt) is not within the allowed path(s): (.) in %s on li…
55 …striction in effect. File(%s/test/bad/link.txt) is not within the allowed path(s): (.) in %s on li…
58 …r restriction in effect. File(%s/test/link.txt) is not within the allowed path(s): (.) in %s on li…
61 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
64 …asedir restriction in effect. File(%s/test/bad) is not within the allowed path(s): (.) in %s on li…
67 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
70 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
73 …asedir restriction in effect. File(%s/test/bad) is not within the allowed path(s): (.) in %s on li…
H A Dopen_basedir_tempnam.phpt48 Warning: tempnam(): open_basedir restriction in effect. File(../bad) is not within the allowed path
51 Warning: tempnam(): open_basedir restriction in effect. File(..) is not within the allowed path(s):…
54 Warning: tempnam(): open_basedir restriction in effect. File(../) is not within the allowed path(s)…
57 Warning: tempnam(): open_basedir restriction in effect. File(/) is not within the allowed path(s): …
60 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li…
63 Warning: tempnam(): open_basedir restriction in effect. File(./../.) is not within the allowed path
66 Warning: tempnam(): open_basedir restriction in effect. File(%s) is not within the allowed path(s):…
/php-src/main/
H A Dfopen_wrappers.c160 path_len = strlen(path);
301 if (strlen(path) > (MAXPATHLEN - 1)) {
346 fp = VCWD_FOPEN(path, mode);
536 !path ||
537 !*path) {
541 ptr = path;
672 || (!path || !*path)
689 pathbuf = estrdup(path);
691 size_t path_length = strlen(path);
694 memcpy(pathbuf, path, path_length);
[all …]
H A Dphp_streams.h66 …m_fopen_with_path_rel(filename, mode, path, opened, options) _php_stream_fopen_with_path((filename… argument
77 #define php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path)… argument
78 #define php_stream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapp… argument
367 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL) argument
368 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (… argument
371 #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, conte… argument
373 PHPAPI int _php_stream_rmdir(const char *path, int options, php_stream_context *context);
374 #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context) argument
377 #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context)… argument
597 #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (m… argument
[all …]
/php-src/ext/phar/
H A Dshortarc.php175 foreach ($info['m'] as $path => $file) {
176 $a = !file_exists(dirname($temp . '/' . $path));
177 @mkdir(dirname($temp . '/' . $path), 0777, true);
180 if ($path[strlen($path) - 1] == '/') {
181 @mkdir($temp . '/' . $path, 0777);
183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
184 @chmod($temp . '/' . $path, 0666);
245 static function extractFile($path, $entry, $fp) argument
/php-src/ext/standard/tests/file/windows_acls/
H A Dcommon.inc64 function icacls_set($path, $mode, $perm) {
67 $path_escaped = '"' . $path . '"';
157 function delete_file($path) {
158 icacls_set($path, PHPT_ACL_GRANT, PHPT_ACL_FULL);
159 if (is_file($path)) {
160 unlink($path);
162 echo "delete_file: '$path' is not a file\n";
167 function delete_dir($path) {
168 if (is_dir($path)) {
170 rmdir($path);
[all …]
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dtest_cp1253_to_utf8_1.phpt2 Test mkdir/rmdir cp1253 to UTF-8 path
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
H A Dtest_cp1255_to_utf8_1.phpt2 Test mkdir/rmdir cp1255 to UTF-8 path
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
H A Dtest_cp1256_to_utf8_1.phpt2 Test mkdir/rmdir cp1256 to UTF-8 path
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
H A Dtest_kartuli_utf8_1.phpt2 Test mkdir/rmdir Kartuli UTF-8 path
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
H A Dtest_big5_to_utf8_1.phpt2 Test mkdir/rmdir big5 to UTF-8 path
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}5";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
H A Dtest_cp1250_to_utf8_1.phpt2 Test mkdir/rmdir UTF-8 path with cp1250 specific symbols
25 $path = $prefix . DIRECTORY_SEPARATOR . "{$item}42";
27 $subpath = $path . DIRECTORY_SEPARATOR . "{$item}4";
30 var_dump(file_exists($path));
/php-src/ext/standard/tests/general_functions/
H A Dbug44295.phpt6 if (is_dir('/this/path/does/not/exist')) die("skip directory /this/path/does/not/exist already exis…
10 $dir = '/this/path/does/not/exist';
28 in catch: DirectoryIterator::__construct(/this/path/does/not/exist): Failed to open directory: No s…
/php-src/ext/sockets/tests/
H A Dsocket_cmsg_credentials.phpt21 $path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
23 @unlink($path);
33 $br = socket_bind($s, $path) or die("err");
42 $r = socket_sendto($sends1, $msg = "dread", strlen($msg), 0, $path);
59 $path = sys_get_temp_dir() . "/socket_cmsg_credentials.sock";
60 @unlink($path);
H A Dsocket_abstract_path_sendmsg.phpt15 $path = "\x00/bar_foo";
23 socket_bind($s, $path) or die("err");
26 "name" => [ "path" => $path],
/php-src/ext/spl/tests/
H A DSplFileinfo_getFilename_basic.phpt6 echo (new \SplFileInfo('/path/to/a.txt'))->getFilename() . PHP_EOL;
7 echo (new \SplFileInfo('path/to/b'))->getFilename() . PHP_EOL;
10 echo (new \SplFileInfo('~/path/to//e'))->getFilename() . PHP_EOL . PHP_EOL;
/php-src/ext/phar/phar/
H A Ddirectorytreeiterator.inc19 /** Construct from a path.
20 * @param $path directory to iterate
22 function __construct($path)
26 new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME

Completed in 30 milliseconds

12345678910>>...35