Home
last modified time | relevance | path

Searched refs:header (Results 76 – 100 of 269) sorted by relevance

1234567891011

/php-src/ext/standard/tests/http/
H A Dbug79265.phpt2 Bug #79265 (Improper injection of Host header when using fopen for http requests)
20 'header'=>"RandomHeader: localhost:8080\r\n" .
H A Dbug79265_2.phpt2 Bug #79265 variation: "host:" not at start of header
20 'header'=>"RandomHeader: host:8080\r\n" .
H A Dbug47021.phpt29 'header' => 'Connection: Close'
44 . "Content-Type\r\n" // Deliberately invalid header
68 // Trailing space at end of header
H A Dbug61548.phpt11 function do_test($header) {
15 'header' => $header,
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitProtExecAllocatorPosix.c166 struct sljit_chunk_header *header = ((struct sljit_chunk_header *)chunk) - 1; in free_chunk() local
168 munmap(header->executable, size); in free_chunk()
169 munmap((void *)header, size); in free_chunk()
/php-src/sapi/fpm/tests/
H A Dresponse.inc191 * Expect header in the response.
391 * Check a specified header.
404 return $this->error("The header $name is not present");
406 $header = $headers[$lcName];
409 if ($header === $value) {
413 return $this->error("The header $name value '$header' is not the same as '$value'");
416 if ( ! preg_match($value, $header)) {
417 return $this->error("The header $name value '$header' does not match RegExp '$value'");
432 return $this->error("The header $name is present");
458 $this->error("Invalid header row (no colon): $headerRow");
/php-src/ext/standard/
H A Dhttp_fopen_wrapper.c109 while ((s = strstr(s, header))) { in check_has_header()
240 smart_str header = {0}; in php_stream_url_wrap_http_ex() local
250 smart_str_appends(&header, ZSTR_VAL(resource->host)); in php_stream_url_wrap_http_ex()
251 smart_str_appendc(&header, ':'); in php_stream_url_wrap_http_ex()
252 smart_str_append_unsigned(&header, resource->port); in php_stream_url_wrap_http_ex()
275 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
299 smart_str_appendl(&header, s, p - s); in php_stream_url_wrap_http_ex()
300 smart_str_appendl(&header, "\r\n", sizeof("\r\n")-1); in php_stream_url_wrap_http_ex()
312 smart_str_appendl(&header, "\r\n", sizeof("\r\n")-1); in php_stream_url_wrap_http_ex()
314 if (php_stream_write(stream, ZSTR_VAL(header.s), ZSTR_LEN(header.s)) != ZSTR_LEN(header.s)) { in php_stream_url_wrap_http_ex()
[all …]
/php-src/ext/phar/tests/files/
H A Dopenssl.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
H A Dopenssl256.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
H A Dopenssl512.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
H A Dinclude_path2.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
H A Dnophar.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
/php-src/ext/phar/tests/cache_list/files/
H A Dnophar.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
H A Dopenssl.phar58 header("Cache-Control: no-cache, must-revalidate");
59 header("Pragma: no-cache");
70 header('HTTP/1.1 301 Moved Permanently');
71 header('Location: ' . $_SERVER['REQUEST_URI'] . '/' . $pt);
76 header('HTTP/1.0 404 Not Found');
82 header('Content-Type: text/plain');
83 header('Content-Length: ' . filesize($a));
96 header('Content-Type: ' .$mimes[$b['extension']]);
97 header('Content-Length: ' . filesize($a));
/php-src/ext/gd/libgd/
H A Dgd_bmp.c38 static int bmp_read_1bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp_hdr_t *header);
39 static int bmp_read_4bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp_hdr_t *header);
40 static int bmp_read_8bit(gdImagePtr im, gdIOCtxPtr infile, bmp_info_t *info, bmp_hdr_t *header);
712 if (gdTell(infile) != header->off) { in bmp_read_direct()
714 if (!gdSeek(infile, header->off)) { in bmp_read_direct()
809 if (gdTell(infile) != header->off) { in bmp_read_1bit()
811 if (!gdSeek(infile, header->off)) { in bmp_read_1bit()
879 if (gdTell(infile) != header->off) { in bmp_read_4bit()
881 if (!gdSeek(infile, header->off)) { in bmp_read_4bit()
966 if (gdTell(infile) != header->off) { in bmp_read_8bit()
[all …]
/php-src/ext/soap/tests/soap12/
H A Dsoap12-test.inc3 public $header;
104 $this->header = $x;
108 return $this->header;
/php-src/ext/tidy/
H A Dconfig.w3216 AC_DEFINE('HAVE_TIDYBUFFIO_H', 1, 'Have tidybuffio.h header file');
21 AC_DEFINE('HAVE_TIDY_H', 1, "tidy include header")
/php-src/ext/soap/tests/bugs/
H A Dbug50762.phpt13 return 'header handler ' . ($this->auth ? 'called' : 'not called');
46 header handler called
/php-src/ext/fileinfo/tests/upstream/
H A Dpcjr.testfile2 Fake PCjr Cartridge containing only a header.
/php-src/ext/standard/tests/general_functions/
H A Dheader_redirection_001.phpt6 header('Location: http://example.com/');
/php-src/ext/date/tests/
H A Dbug61642.phpt12 $header = array();
17 $header[] = $date->format('Y-m-d D');
20 echo '### ', implode(' ', $header), "\n\n";
/php-src/ext/dom/tests/modern/html/encoding/
H A DHTMLDocument_createFromFile_http_header.phpt2 DOM\HTMLDocument::createFromFile() HTTP header Content-Type
62 …$responses = array_map(fn ($header) => "data://text/plain,HTTP/1.1 200 OK\r\nContent-Type: " . $he…
/php-src/ext/standard/tests/streams/
H A Dbug64433_srv.inc7 header("Location: index.php?redir=1");
/php-src/ext/mbstring/tests/
H A Dmb_output_handler_pattern-01.phpt8 header("Content-Type: text/html");
H A Dmb_output_handler_pattern-02.phpt8 header("Content-Type: text/plain");

Completed in 47 milliseconds

1234567891011