Home
last modified time | relevance | path

Searched refs:dir (Results 51 – 75 of 537) sorted by relevance

12345678910>>...22

/PHP-7.0/ext/phar/tests/
H A Dreadfile.phpt13 readfile("dir/file1.txt");
16 $a['dir/file1.txt'] = 'hi';
17 $a['dir/file2.txt'] = 'hi2';
18 $a['dir/file3.txt'] = 'hi3';
21 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
H A Dfile_get_contents.phpt13 echo file_get_contents("dir/file1.txt");
16 $a['dir/file1.txt'] = 'hi';
17 $a['dir/file2.txt'] = 'hi2';
18 $a['dir/file3.txt'] = 'hi3';
21 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
H A Dopendir.phpt13 $a = opendir("dir");
20 $a['dir/file1.txt'] = 'hi';
21 $a['dir/file2.txt'] = 'hi2';
22 $a['dir/file3.txt'] = 'hi3';
39 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
42 Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar …
/PHP-7.0/ext/standard/tests/streams/
H A Dbug49936_win32.phpt13 $dir = 'ftp://your:self@localhost/';
15 var_dump(opendir($dir));
16 var_dump(opendir($dir));
23 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
29 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
/PHP-7.0/ext/standard/tests/file/
H A Drename_variation1-win32.phpt26 /* Testing a dir with trailing slash */
29 /* Testing dir with double trailing slashes */
44 // create the src dir
46 // rename the src dir to a new dir in dest dir
48 // ensure that dir was renamed
52 // remove the new dir
H A Dunlink_variation1.phpt25 /* Delete file having default permission but its dir having readonly permission
26 Delete file having readonly permission but dir having default permission
32 // temp dir name used here
38 // create temp dir
44 echo "-- Unlink file having default permission and its dir having read only permission --\n";
51 // remove the dir
56 echo "\n-- Unlinking file without write permission, its dir having default permission --\n";
57 // create the temp dir
69 // remove temp dir
76 -- Unlink file having default permission and its dir having read only permission --
[all …]
H A Dfopen_variation12.phpt27 echo "Not created in working dir\n";
30 echo "created in working dir\n";
39 echo "Not created in script dir\n";
42 echo "created in script dir\n";
50 created in working dir
51 Not created in script dir
H A Dis_dir_variation2.phpt15 /* Testing is_dir() with dir, soft & hard link to dir,
20 echo "*** Testing is_dir() with dir and links to dir ***\n";
21 echo "-- With dir --\n";
33 …ir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir
79 *** Testing is_dir() with dir and links to dir ***
80 -- With dir --
H A Dfopen_variation5.phpt16 $thisTestDir = basename(__FILE__, ".php") . ".dir";
89 fwrite($h, (binary) "in working dir");
101 //should read the file in working dir
109 fwrite($h, (binary) "in script dir");
112 //should read the file in script dir
134 in working dir
135 in script dir
141 in working dir
142 in script dir
148 in working dir
[all …]
H A Dfopen_variation8.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
88 fwrite($h, (binary) "in working dir");
100 //should read the working dir file
108 fwrite($h, (binary) "in script dir");
111 //should read the file in script dir
133 in working dir
134 in script dir
140 in working dir
141 in script dir
147 in working dir
[all …]
H A Dis_dir_variation1.phpt2 Test is_dir() function: usage variations - dir/subdir
14 echo "-- Testing is_dir() with an empty dir --\n";
20 echo "-- Testing is_dir() with a subdir in base dir --\n";
36 -- Testing is_dir() with an empty dir --
38 -- Testing is_dir() with a subdir in base dir --
H A Dflock_basic.phpt11 echo "*** Testing flock() fun with file and dir ***\n";
22 mkdir("$file_path/dir");
23 $dir_handle = opendir("$file_path/dir");
29 rmdir("$file_path/dir");
34 *** Testing flock() fun with file and dir ***
/PHP-7.0/ext/xmlrpc/
H A Dconfig.m414 PHP_ARG_WITH(libxml-dir, libxml2 install dir,
15 [ --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix], no, no)
18 PHP_ARG_WITH(libexpat-dir, libexpat dir for XMLRPC-EPI,
19 [ --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)],no,no)
21 PHP_ARG_WITH(iconv-dir, iconv dir for XMLRPC-EPI,
22 [ --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI],no,no)
31 dnl Default to libxml2 if --with-libexpat-dir is not used
45 AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=<DIR>])
60 AC_MSG_ERROR([XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)])
99 dnl queue.h or base64.h. Distributions have to create dir
/PHP-7.0/ext/standard/tests/dir/
H A Dscandir_variation1.phpt2 Test scandir() function : usage variations - different data types as $dir arg
13 * Source code: ext/standard/dir.c
42 // unexpected values to be passed to $dir argument
107 Warning: scandir(0): failed to open dir: %s in %s on line %d
114 Warning: scandir(1): failed to open dir: %s in %s on line %d
121 Warning: scandir(12345): failed to open dir: %s in %s on line %d
128 Warning: scandir(-2345): failed to open dir: %s in %s on line %d
135 Warning: scandir(10.5): failed to open dir: %s in %s on line %d
163 Warning: scandir(0.5): failed to open dir: %s in %s on line %d
180 Warning: scandir(1): failed to open dir: %s in %s on line %d
[all …]
H A Ddir_variation4.phpt2 Test dir() function : usage variations - operate on previously opened directory
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
12 * Testing the behavior of dir() function by trying to open a
16 echo "*** Testing dir() : operate on previously opened directory ***\n";
30 $d = dir($dir_path);
34 $e = dir($dir_path);
55 *** Testing dir() : operate on previously opened directory ***
H A Dscandir_variation5.phpt20 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
22 * Source code: ext/standard/dir.c
26 * remove the execute permission from the parent dir and test scandir() on child dir
37 * |-> child_dir ( child dir)
59 // remove the execute permisson from parent dir, allowing all permission for sub dir
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
87 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
94 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
H A Ddir_basic.phpt2 Test dir() function : basic functionality
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
11 echo "*** Testing dir() : basic functionality ***\n";
25 $d = dir($dir_path);
41 echo "\nTest read after closing the dir:";
56 *** Testing dir() : basic functionality ***
83 Test read after closing the dir:
H A Dopendir_variation1.phpt13 * Source code: ext/standard/dir.c
124 Warning: opendir(0): failed to open dir: %s in %s on line %d
129 Warning: opendir(1): failed to open dir: %s in %s on line %d
134 Warning: opendir(12345): failed to open dir: %s in %s on line %d
139 Warning: opendir(-2345): failed to open dir: %s in %s on line %d
144 Warning: opendir(10.5): failed to open dir: %s in %s on line %d
149 Warning: opendir(-10.5): failed to open dir: %s in %s on line %d
164 Warning: opendir(0.5): failed to open dir: %s in %s on line %d
175 Warning: opendir(1): failed to open dir: %s in %s on line %d
183 Warning: opendir(1): failed to open dir: %s in %s on line %d
[all …]
/PHP-7.0/ext/spl/tests/
H A DDirectoryIterator_getBasename_basic_test.phpt10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR);
11 while(!$dir->isFile()) {
12 $dir->next();
14 echo $dir->getBasename('.txt');
H A Dspl_autoload_014.phpt10 private $dir;
11 public function __construct($dir) {
12 $this->dir = $dir;
15 echo ("Autoloader('{$this->dir}') called with $class\n");
H A DDirectoryIterator_getBasename_pass_array.phpt10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR);
11 while(!$dir->isFile()) {
12 $dir->next();
14 echo $dir->getBasename(array());
/PHP-7.0/ext/spl/examples/
H A Dautoload.inc13 * Tries to load class $classname from directory $dir.
15 function __load_class($classname, $dir)
17 $file = $dir . '/' . $classname . '.inc';
39 foreach($inc as $dir)
41 if (__load_class($classname, $dir))
/PHP-7.0/main/
H A Dphp_open_temporary_file.h25 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p);
26 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, …
27 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p);
/PHP-7.0/ext/posix/tests/
H A Dposix_mkfifo_safemode.phpt28 $dir = dirname(__FILE__) . '/foo';
29 mkdir ($dir);
30 var_dump(posix_mkfifo($dir . '/bar', 0644));
35 $dir = dirname(__FILE__) . '/foo';
36 unlink($dir . '/bar');
37 rmdir($dir);
/PHP-7.0/travis/
H A Dcompile.sh28 --with-jpeg-dir=/usr \
29 --with-png-dir=/usr \
33 --with-zlib-dir=/usr \
59 --with-freetype-dir=/usr \
60 --with-xpm-dir=/usr \

Completed in 50 milliseconds

12345678910>>...22