/PHP-5.5/ext/fileinfo/tests/ |
H A D | cve-2014-1943.phpt | 9 $fd = __DIR__.'/cve-2014-1943.data'; 17 file_put_contents($fd, $a); 19 var_dump(finfo_file($fi, $fd)); 22 file_put_contents($fd, $b); 25 var_dump(finfo_file($fi, $fd));
|
H A D | cve-2014-3538.phpt | 9 $fd = __DIR__.'/cve-2014-3538.data'; 11 file_put_contents($fd, 17 var_dump(finfo_file($fi, $fd));
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | userstreams_004.phpt | 19 function test($name, $fd, $mode) { 21 flock($fd, $mode); 22 $data = stream_get_meta_data($fd); 29 $fd = fopen("test://foo","r"); 35 test("fclock($mode)", $fd, constant($mode)); 36 test("fclock($mode|LOCK_NB)", $fd, constant($mode)|LOCK_NB);
|
H A D | userstreams_002.phpt | 19 function test($name, $fd, $return_value) { 21 $data = stream_get_meta_data($fd); 23 $r = array($fd); 31 $fd = fopen("test://foo","r"); 34 test("valid stream", $fd, STDIN); 36 test("return value is false", $fd, false); 37 test("return value not a stream resource", $fd, "foo"); 38 test("return value is stream itself", $fd, $fd); 39 test("return value cannot be casted", $fd, $fd2);
|
H A D | userstreams_006.phpt | 24 $fd = fopen("test://foo","r"); 26 var_dump(stream_set_write_buffer($fd, 50)); 27 var_dump(stream_set_chunk_size($fd, 42)); 29 var_dump(fwrite($fd, str_repeat('0', 70)));
|
H A D | fopen_variation1.phpt | 8 $fd = fopen($file, "r", true); 9 var_dump($fd); 10 fclose($fd);
|
H A D | userstreams_005.phpt | 26 function test($name, $fd, $dest_size) { 28 var_dump(ftruncate($fd, $dest_size)); 34 $fd = fopen("test://foo","r"); 39 test("stream_truncate size 0", $fd, 0); 40 test("stream_truncate size 10", $fd, 10); 41 test("stream_truncate negative size", $fd, -1);
|
H A D | bug45303.phpt | 5 $fd = fopen("php://stdout","a"); 6 var_dump($fd); 7 var_dump(fseek($fd, 1024*1024, SEEK_SET));
|
H A D | php_fd_wrapper_01.phpt | 2 php://fd wrapper: basic test 5 $f = fopen("php://fd/1", "wb");
|
H A D | php_fd_wrapper_02.phpt | 2 php://fd wrapper: mode is ignored 5 $f = fopen("php://fd/1", "rkkk");
|
H A D | file_variation7.phpt | 7 $fd = fopen($filepath, "w+"); 8 fwrite($fd, "Line 1\n\n \n \n\Line 3"); 9 fclose($fd);
|
H A D | php_fd_wrapper_04.phpt | 2 php://fd wrapper: invalid file descriptor 14 fopen("php://fd/12", "w"); 18 Warning: fopen(php://fd/12): failed to open stream: Error duping file descriptor 12; possibly it do…
|
/PHP-5.5/sapi/cli/tests/ |
H A D | 022.inc | 6 $fd = fopen("php://stdin","r"); 7 var_dump($fd); 9 $client_socket = stream_socket_accept($fd);
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fastcgi.c | 48 #define FCGI_LOCK(fd) \ argument 60 #define FCGI_UNLOCK(fd) \ argument 128 # define FCGI_LOCK(fd) argument 292 req->fd = -1; in fcgi_init_request() 762 close(req->fd); in fcgi_close() 764 req->fd = -1; in fcgi_close() 814 if (req->fd < 0) { 858 req->fd = -1; 881 fds.fd = req->fd; 931 return req->fd; [all …]
|
H A D | fpm_sockets.h | 31 static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ in fd_set_blocked() argument 33 int flags = fcntl(fd, F_GETFL); in fd_set_blocked() 44 return fcntl(fd, F_SETFL, flags); in fd_set_blocked()
|
/PHP-5.5/ext/gd/libgd/ |
H A D | xbm.c | 33 gdImagePtr gdImageCreateFromXbm(FILE * fd) in gdImageCreateFromXbm() argument 50 rewind(fd); in gdImageCreateFromXbm() 51 while (fgets(fline, MAX_XBM_LINE_SIZE, fd)) { in gdImageCreateFromXbm() 108 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 120 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 124 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 129 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm() 133 if ((ch=getc(fd)) == EOF) { in gdImageCreateFromXbm()
|
/PHP-5.5/ext/standard/ |
H A D | flock_compat.c | 41 PHPAPI int flock(int fd, int operation) in flock() argument 43 return php_flock(fd, operation); in flock() 47 PHPAPI int php_flock(int fd, int operation) in php_flock() argument 67 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock() 124 HANDLE hdl = (HANDLE) _get_osfhandle(fd);
|
H A D | flock_compat.h | 28 PHPAPI int php_flock(int fd, int operation); 35 PHPAPI int flock(int fd, int operation);
|
/PHP-5.5/ext/standard/tests/filters/ |
H A D | bug46164-1.phpt | 16 $fd = fopen('php://memory','w'); 17 $filter = stream_filter_append($fd, 'user_filter'); 19 var_dump(fclose($fd));
|
/PHP-5.5/ext/opcache/ |
H A D | config.m4 | 153 int fd; 157 if (fd == -1) { 210 int fd; 219 if (fd == -1) { 222 if (ftruncate(fd, 4096) < 0) { 223 close(fd); 233 close(fd); 279 int fd; 288 if (fd == -1) { 292 close(fd); [all …]
|
/PHP-5.5/sapi/cgi/ |
H A D | fastcgi.c | 48 #define FCGI_LOCK(fd) \ argument 60 #define FCGI_UNLOCK(fd) \ argument 129 # define FCGI_LOCK(fd) argument 346 int fd; member 746 req->fd = -1; in fcgi_init_request() 1137 close(req->fd); in fcgi_close() 1142 req->fd = -1; in fcgi_close() 1154 if (req->fd < 0) { 1239 fds.fd = req->fd; 1287 return req->fd; [all …]
|
/PHP-5.5/ext/ftp/ |
H A D | ftp.c | 140 if (ftp->fd == -1) { in ftp_open() 162 if (ftp->fd != -1) { in ftp_open() 163 closesocket(ftp->fd); in ftp_open() 185 if (ftp->fd != -1) { in ftp_close() 192 closesocket(ftp->fd); in ftp_close() 1369 int fd = -1; in ftp_getdata() local 1386 data->fd = -1; in ftp_getdata() 1411 data->fd = fd; in ftp_getdata() 1439 data->listener = fd; in ftp_getdata() 1478 if (fd != -1) { in ftp_getdata() [all …]
|
/PHP-5.5/ext/standard/tests/http/ |
H A D | bug43510.phpt | 19 $fd = fopen('http://127.0.0.1:12342/', $mode, false); 20 $meta = stream_get_meta_data($fd); 22 fclose($fd);
|
/PHP-5.5/ext/curl/tests/ |
H A D | bug62839.phpt | 10 $fd = tmpfile(); 11 curl_setopt($curl, CURLOPT_FILE, $fd);
|
/PHP-5.5/ext/fileinfo/libmagic/ |
H A D | elfclass.h | 39 if (dophn_core(ms, clazz, swap, fd, 49 if (dophn_exec(ms, clazz, swap, fd, 58 if (doshn(ms, clazz, swap, fd,
|