Home
last modified time | relevance | path

Searched refs:path (Results 51 – 75 of 847) sorted by relevance

12345678910>>...34

/PHP-7.1/ext/session/tests/
H A Dsession_set_save_handler_iface_001.phpt22 public $path;
24 public function open($path, $name) {
25 if (!$path) {
26 $path = sys_get_temp_dir();
28 $this->path = $path . '/u_sess_' . $name;
37 return (string)@file_get_contents($this->path . $id);
41 return (bool)file_put_contents($this->path . $id, $data);
45 @unlink($this->path . $id);
49 foreach (glob($this->path . '*') as $filename) {
H A Dsession_set_save_handler_class_002.phpt22 public $path;
24 public function open($path, $name) {
25 if (!$path) {
26 $path = sys_get_temp_dir();
28 $this->path = $path . '/u_sess_' . $name;
37 return (string)@file_get_contents($this->path . $id);
41 return (bool)file_put_contents($this->path . $id, $data);
45 @unlink($this->path . $id);
50 foreach (glob($this->path . '*') as $filename) {
H A Dsession_basic3.phpt108 <a href="/path">test</a>
109 <a href="/path/">test</a>
110 <a href="/path/?foo=var">test</a>
112 <a href="../path">test</a>
113 <a href="../path/">test</a>
114 <a href="../path/?foo=var">test</a>
117 <a href="/path/#bar">test</a>
118 <a href="/path/?foo=var#bar">test</a>
120 <a href="../path/#bar">test</a>
121 <a href="../path/?foo=var#bar">test</a>
[all …]
/PHP-7.1/sapi/tests/
H A Dtest003.phpt8 PATH_INFO=/path/info
12 PATH_TRANSLATED=/path/bla
13 PATH_INFO=/path/info
14 SCRIPT_NAME=path
21 /path/info
/PHP-7.1/ext/standard/tests/dir/
H A Dopendir_error2.phpt11 /* Prototype : mixed opendir(string $path[, resource $context])
17 * Pass a non-existent directory as $path argument to opendir() to test behaviour
22 echo "\n-- Pass a non-existent absolute path: --\n";
23 $path = dirname(__FILE__) . "/idonotexist";
24 var_dump(opendir($path));
26 echo "\n-- Pass a non-existent relative path: --\n";
34 -- Pass a non-existent absolute path: --
39 -- Pass a non-existent relative path: --
H A Dopendir_variation3-win32-mb.phpt11 /* Prototype : mixed opendir(string $path[, resource $context])
17 * Call opendir() twice with the same directory as $path argument
22 $path = dirname(__FILE__) . "/私はガラスを食べられますopendir_variation3";
23 mkdir($path);
26 var_dump($dh1 = opendir($path));
29 var_dump($dh2 = opendir($path));
43 $path = dirname(__FILE__) . "/私はガラスを食べられますopendir_variation3";
44 rmdir($path);
H A Dopendir_variation1.phpt24 $path = dirname(__FILE__) . "/opendir_variation1";
25 mkdir($path);
34 var $path;
35 function __construct($path) {
36 $this->path = $path;
39 return $this->path;
45 $path
51 // unexpected values to be passed to $path argument
83 /*19*/ "$path",
88 /*22*/ new classA($path),
[all …]
/PHP-7.1/ext/zip/lib/
H A Dmkstemp.c53 _zip_mkstemp(char *path) in _zip_mkstemp() argument
57 ret = _creat(_mktemp(path), _S_IREAD|_S_IWRITE); in _zip_mkstemp()
78 for (trv = path; *trv; ++trv) in _zip_mkstemp()
112 if (trv <= path) in _zip_mkstemp()
116 if (stat(path, &sbuf)) in _zip_mkstemp()
128 if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) in _zip_mkstemp()
/PHP-7.1/ext/filter/tests/
H A Dbug51192.phpt7 var_dump(filter_var('http://example.com/path', FILTER_VALIDATE_URL));
8 var_dump(filter_var('http://exa-mple.com/path', FILTER_VALIDATE_URL));
9 var_dump(filter_var('http://exa_mple.com/path', FILTER_VALIDATE_URL));
11 string(23) "http://example.com/path"
12 string(24) "http://exa-mple.com/path"
/PHP-7.1/ext/spl/examples/
H A Dfindfile.inc26 /** Construct from path and filename
28 * @param $path the directory to search in
29 * If path contains ';' then this parameter is split and every
33 function __construct($path, $file)
36 $list = split(PATH_SEPARATOR, $path);
38 parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
41 foreach($list as $path) {
42 $it->append(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)));
H A Ddirectorytree.inc19 /** Construct from a path.
20 * @param $path directory to iterate
22 function __construct($path) {
23 parent::__construct(new DirectoryFilterDots($path));
/PHP-7.1/ext/ftp/
H A Dftp.h157 char** ftp_nlist(ftpbuf_t *ftp, const char *path);
164 char** ftp_list(ftpbuf_t *ftp, const char *path, int recursive);
174 int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, zend_long resu…
179 int ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, zend_long start…
182 zend_long ftp_size(ftpbuf_t *ftp, const char *path);
185 time_t ftp_mdtm(ftpbuf_t *ftp, const char *path);
191 int ftp_delete(ftpbuf_t *ftp, const char *path);
199 int ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, zend_long r…
204 int ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, zend_long st…
/PHP-7.1/ext/simplexml/tests/
H A Dbug42259.phpt31 $path = '';
34 $path .= $ancestor->getName() . '/';
36 $path = substr($path, 0, strlen($path) - 1);
37 echo count($ancestry) . ' steps: ' . $path . PHP_EOL;
/PHP-7.1/ext/standard/tests/file/
H A Dbug32160.phpt5 $path = dirname(__FILE__) . "/bug32160.txt";
6 var_dump(copy($path, $path));
8 var_dump(copy($path, "bug32160.txt"));
H A Dstream_get_line.phpt5 $path = dirname(__FILE__) . '/test.html';
7 file_put_contents($path, b"foo<br>bar<br>foo");
8 $fp = fopen($path, "r");
13 @unlink($path);
H A D006_basic.phpt30 $path = dirname(__FILE__);
33 fopen($path."/perm.tmp", "w");
34 var_dump( chmod($path."/perm.tmp", 0755 ) );
35 printf("%o", fileperms($path."/perm.tmp") );
39 mkdir($path."/perm");
40 var_dump( chmod( $path."/perm", 0777 ) );
41 printf("%o", fileperms($path."/perm") );
/PHP-7.1/ext/fileinfo/libmagic/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], in file_os2_apptype() local
62 (void)sprintf(path, "%s%s%s%s", drive, in file_os2_apptype()
68 if ((fp = fopen(path, "wb")) == NULL) { in file_os2_apptype()
69 file_error(ms, errno, "cannot open tmp file `%s'", path); in file_os2_apptype()
74 path); in file_os2_apptype()
80 rc = DosQueryAppType((unsigned char *)path, &type); in file_os2_apptype()
83 unlink(path); in file_os2_apptype()
/PHP-7.1/ext/standard/
H A Dphp_fopen_wrapper.c191 if (!strncasecmp(path, "php://", 6)) { in php_stream_url_wrap_php()
192 path += 6; in php_stream_url_wrap_php()
195 if (!strncasecmp(path, "temp", 4)) { in php_stream_url_wrap_php()
196 path += 4; in php_stream_url_wrap_php()
199 path += 11; in php_stream_url_wrap_php()
214 if (!strcasecmp(path, "memory")) { in php_stream_url_wrap_php()
223 if (!strcasecmp(path, "output")) { in php_stream_url_wrap_php()
227 if (!strcasecmp(path, "input")) { in php_stream_url_wrap_php()
248 if (!strcasecmp(path, "stdin")) { in php_stream_url_wrap_php()
322 start = &path[3]; in php_stream_url_wrap_php()
[all …]
/PHP-7.1/ext/phar/
H A Ddirstream.c320 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir()
321 if (resource->host && !resource->path) { in phar_wrapper_open_dir()
327 …ror(wrapper, options, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path); in phar_wrapper_open_dir()
339 internal_file = resource->path + 1; /* strip leading "/" */ in phar_wrapper_open_dir()
443 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_mkdir()
464 …if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 2, &error, … in phar_wrapper_mkdir()
482 if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1)) { in phar_wrapper_mkdir()
503 entry.filename = estrdup(resource->path + 1); in phar_wrapper_mkdir()
510 entry.filename_len = strlen(resource->path + 1); in phar_wrapper_mkdir()
578 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_rmdir()
[all …]
/PHP-7.1/ext/opcache/tests/
H A Dblacklist.phpt26 [0] => /path/to/foo
27 [1] => /path/to/foo2
28 [2] => /path/to/bar
31 [5] => /tmp/path/?nocache.inc
32 [6] => /tmp/path/*/somedir
/PHP-7.1/win32/
H A Dioutil.h122 #define PHP_WIN32_IOUTIL_INIT_W(path) \ argument
123 wchar_t *pathw = php_win32_ioutil_any_to_w(path); \
130 #define PHP_WIN32_IOUTIL_REINIT_W(path) do { \ argument
132 pathw = php_win32_ioutil_any_to_w(path); \
233 PW32IO int php_win32_ioutil_mkdir(const char *path, mode_t mode);
237 PW32IO int php_win32_ioutil_chdir_w(const wchar_t *path);
252 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_access()
278 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_open()
312 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_unlink()
336 __forceinline static int php_win32_ioutil_rmdir(const char *path) in php_win32_ioutil_rmdir() argument
[all …]
/PHP-7.1/tests/security/
H A Dopen_basedir_filectime.phpt23 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li…
26 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
29 Warning: filectime(): open_basedir restriction in effect. File(..) is not within the allowed path(s…
32 Warning: filectime(): open_basedir restriction in effect. File(../) is not within the allowed path(…
35 Warning: filectime(): open_basedir restriction in effect. File(/) is not within the allowed path(s)…
38 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li…
41 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
44 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
47 …pen_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on li…
H A Dopen_basedir_filegroup.phpt23 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li…
26 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
29 Warning: filegroup(): open_basedir restriction in effect. File(..) is not within the allowed path(s…
32 Warning: filegroup(): open_basedir restriction in effect. File(../) is not within the allowed path(…
35 Warning: filegroup(): open_basedir restriction in effect. File(/) is not within the allowed path(s)…
38 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li…
41 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
44 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
47 …pen_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on li…
H A Dopen_basedir_fileinode.phpt23 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li…
26 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
29 Warning: fileinode(): open_basedir restriction in effect. File(..) is not within the allowed path(s…
32 Warning: fileinode(): open_basedir restriction in effect. File(../) is not within the allowed path(…
35 Warning: fileinode(): open_basedir restriction in effect. File(/) is not within the allowed path(s)…
38 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li…
41 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
44 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
47 …pen_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on li…
H A Dopen_basedir_filemtime.phpt23 …pen_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on li…
26 …dir restriction in effect. File(../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
29 Warning: filemtime(): open_basedir restriction in effect. File(..) is not within the allowed path(s…
32 Warning: filemtime(): open_basedir restriction in effect. File(../) is not within the allowed path(…
35 Warning: filemtime(): open_basedir restriction in effect. File(/) is not within the allowed path(s)…
38 …n_basedir restriction in effect. File(../bad/.) is not within the allowed path(s): (.) in %s on li…
41 …estriction in effect. File(%s/test/bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
44 …ion in effect. File(%s/test/bad/../bad/bad.txt) is not within the allowed path(s): (.) in %s on li…
47 …pen_basedir restriction in effect. File(./../.) is not within the allowed path(s): (.) in %s on li…

Completed in 54 milliseconds

12345678910>>...34