Home
last modified time | relevance | path

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

12345678910>>...35

/PHP-7.3/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_get_cookie_params_basic.phpt26 var_dump(session_set_cookie_params(3600, "/path", "blah", FALSE, FALSE));
32 "path" => "/bar",
47 ["path"]=>
62 ["path"]=>
63 string(5) "/path"
77 ["path"]=>
92 ["path"]=>
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.3/ext/phar/tests/tar/files/
H A Dcorrupt_tarmaker.php.inc17 protected $path;
19 function __construct($path, $compress = 'zlib')
30 $this->path = $path;
38 * @param string relative path within the package
78 if (strlen($path) > 255) {
82 } else if (strlen($path) > 100) {
83 $filePrefix = substr($path, 0, strlen($path)-100);
84 $path = substr($path, -100);
88 $path,
142 $this->tmp = bzopen($this->path, 'w');
[all …]
H A Dmake.dangerous.tar.php.inc18 protected $path;
20 function __construct($path, $compress = 'zlib')
31 $this->path = $path;
39 * @param string relative path within the package
42 function addFile($path, $fileOrStream, $stat = null)
72 if (strlen($path) > 255) {
76 } else if (strlen($path) > 100) {
77 $filePrefix = substr($path, 0, strlen($path)-100);
78 $path = substr($path, -100);
82 $path,
[all …]
/PHP-7.3/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.3/ext/zip/lib/
H A Dmkstemp.c56 _zip_mkstemp(char *path) in _zip_mkstemp() argument
60 ret = _creat(_mktemp(path), _S_IREAD|_S_IWRITE); in _zip_mkstemp()
81 for (trv = path; *trv; ++trv) in _zip_mkstemp()
115 if (trv <= path) in _zip_mkstemp()
119 if (stat(path, &sbuf)) in _zip_mkstemp()
131 if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) in _zip_mkstemp()
/PHP-7.3/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.3/ext/ftp/
H A Dftp.h155 char** ftp_nlist(ftpbuf_t *ftp, const char *path, const size_t path_len);
162 char** ftp_list(ftpbuf_t *ftp, const char *path, const size_t path_len, int recursive);
174 char** ftp_mlsd(ftpbuf_t *ftp, const char *path, const size_t path_len);
184 int ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t path_len, ftptype…
189 int ftp_put(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftptype_…
194 int ftp_append(ftpbuf_t *ftp, const char *path, const size_t path_len, php_stream *instream, ftpty…
197 zend_long ftp_size(ftpbuf_t *ftp, const char *path, const size_t path_len);
200 time_t ftp_mdtm(ftpbuf_t *ftp, const char *path, const size_t path_len);
206 int ftp_delete(ftpbuf_t *ftp, const char *path, const size_t path_len);
214 int ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, const size_t path_len, ftpt…
[all …]
/PHP-7.3/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.3/win32/
H A Dioutil.h140 #define PHP_WIN32_IOUTIL_INIT_W(path) \ argument
141 wchar_t *pathw = php_win32_ioutil_any_to_w(path); \
148 #define PHP_WIN32_IOUTIL_REINIT_W(path) do { \ argument
150 pathw = php_win32_ioutil_any_to_w(path); \
275 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_access()
301 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_open()
335 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_unlink()
359 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_rmdir()
557 PHP_WIN32_IOUTIL_INIT_W(path) in php_win32_ioutil_mkdir()
578 PW32IO char *realpath(const char *path, char *resolved);
[all …]
/PHP-7.3/ext/standard/tests/file/
H A Dstream_get_line.phpt5 $path = dirname(__FILE__) . '/test.html';
7 file_put_contents($path, "foo<br>bar<br>foo");
8 $fp = fopen($path, "r");
13 @unlink($path);
H A Dbug32160.phpt5 $path = dirname(__FILE__) . "/bug32160.txt";
6 var_dump(copy($path, $path));
8 var_dump(copy($path, "bug32160.txt"));
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.3/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.3/ext/standard/
H A Dhead.c104 …if (path && strpbrk(ZSTR_VAL(path), ",; \t\r\n\013\014") != NULL) { /* man isspace for \013 and \0… in php_setcookie()
166 if (path && ZSTR_LEN(path)) { in php_setcookie()
168 smart_str_append(&buf, path); in php_setcookie()
204 *path = zval_get_string(value); in php_head_parse_cookie_options_array()
238 zend_string *name, *value = NULL, *path = NULL, *domain = NULL, *samesite = NULL; in PHP_FUNCTION() local
247 Z_PARAM_STR(path) in PHP_FUNCTION()
272 if (path) { in PHP_FUNCTION()
273 zend_string_release(path); in PHP_FUNCTION()
300 Z_PARAM_STR(path) in PHP_FUNCTION()
325 if (path) { in PHP_FUNCTION()
[all …]
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()
210 if (!strcasecmp(path, "memory")) { in php_stream_url_wrap_php()
215 if (!strcasecmp(path, "output")) { in php_stream_url_wrap_php()
219 if (!strcasecmp(path, "input")) { in php_stream_url_wrap_php()
240 if (!strcasecmp(path, "stdin")) { in php_stream_url_wrap_php()
314 start = &path[3]; in php_stream_url_wrap_php()
[all …]
/PHP-7.3/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.3/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
H A Dopcache-2.blacklist1 /path/to/bar
5 /tmp/path/?nocache.inc
6 /tmp/path/*/somedir
/PHP-7.3/ext/phar/
H A Ddirstream.c321 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_open_dir()
322 if (resource->host && !resource->path) { in phar_wrapper_open_dir()
328 …ror(wrapper, options, "phar error: invalid url \"%s\", must have at least phar://%s/", path, path); in phar_wrapper_open_dir()
340 internal_file = ZSTR_VAL(resource->path) + 1; /* strip leading "/" */ in phar_wrapper_open_dir()
444 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_mkdir()
465 …if ((e = phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) - 1,… in phar_wrapper_mkdir()
483 …if (phar_get_entry_info_dir(phar, ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) - 1, 0, &… in phar_wrapper_mkdir()
504 entry.filename = estrdup(ZSTR_VAL(resource->path) + 1); in phar_wrapper_mkdir()
511 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
579 if (!resource->scheme || !resource->host || !resource->path) { in phar_wrapper_rmdir()
[all …]

Completed in 59 milliseconds

12345678910>>...35