Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/php-src/ext/fileinfo/libmagic/
H A Dis_tar.c117 memchr(header->header.name, 0, sizeof(header->header.name))); in is_tar()
118 if (nulp != NULL && nulp >= header->header.name + sizeof(gpkg_match) && in is_tar()
123 recsum = from_oct(header->header.chksum, sizeof(header->header.chksum)); in is_tar()
127 ep = header->charptr + sizeof(*header); in is_tar()
132 for (i = 0; i < sizeof(header->header.chksum); i++) in is_tar()
133 sum -= header->header.chksum[i]; in is_tar()
134 sum += ' ' * sizeof(header->header.chksum); in is_tar()
139 if (strncmp(header->header.magic, GNUTMAGIC, in is_tar()
140 sizeof(header->header.magic)) == 0) in is_tar()
143 if (strncmp(header->header.magic, TMAGIC, in is_tar()
[all …]
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitExecAllocatorCore.c103 struct block_header header; member
181 header->executable_offset = free_block->header.executable_offset; in sljit_malloc_exec()
190 header->size = size; in sljit_malloc_exec()
192 return MEM_START(header); in sljit_malloc_exec()
214 header->prev_size = 0; in sljit_malloc_exec()
222 header->size = size; in sljit_malloc_exec()
235 header->size = chunk_size; in sljit_malloc_exec()
244 return MEM_START(header); in sljit_malloc_exec()
255 header = AS_BLOCK_HEADER(header, -header->executable_offset); in sljit_free_exec()
265 free_block = AS_FREE_BLOCK(header, -(sljit_sw)header->prev_size); in sljit_free_exec()
[all …]
/php-src/ext/standard/tests/general_functions/
H A Dbug60227_1.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR)
5 header("X-Foo1: a");
6 header("X-Foo2: b\n ");
7 header("X-Foo3: c\r\n ");
8 header("X-Foo4: d\r ");
9 header("X-Foo5: e\rSet-Cookie: ID=123");
13 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dhead.phpt2 header() and friends
8 var_dump(header("HTTP 1.0", true, 200));
13 var_dump(header(""));
14 var_dump(header("", true));
17 var_dump(header("HTTP blah"));
18 var_dump(header("HTTP blah", true));
30 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
33 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
39 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
42 Warning: Cannot modify header information - headers already sent by (output started at %s:%d) in %s…
H A Dbug60227_4.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), CRLF
8 header("X-foo: e\r\nfoo");
12 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dbug60227_2.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), \r before \n
8 header("X-foo: e\n foo");
12 Warning: Header may not contain more than a single header, new line detected in %s on line %d
H A Dbug60227_3.phpt2 Bug #60227 (header() cannot detect the multi-line header with CR), \0 before \n
8 header("X-Foo6: e\0Set-Cookie: ID=\n123\n d");
/php-src/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.h61 MYSQLND_PACKET_HEADER header; member
83 MYSQLND_PACKET_HEADER header; member
102 MYSQLND_PACKET_HEADER header; member
124 MYSQLND_PACKET_HEADER header; member
132 MYSQLND_PACKET_HEADER header; member
171 MYSQLND_PACKET_HEADER header; member
196 MYSQLND_PACKET_HEADER header; member
208 MYSQLND_PACKET_HEADER header; member
231 MYSQLND_PACKET_HEADER header; member
238 MYSQLND_PACKET_HEADER header; member
[all …]
H A Dmysqlnd_wireprotocol.c253 header->size = uint3korr(buffer); in mysqlnd_read_header()
256 DBG_INF_FMT("HEADER: prot_packet_no=%u size=%3zu", header->packet_no, header->size); in mysqlnd_read_header()
271 if (header->size > 0) { in mysqlnd_read_header()
285 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
288 pfc->data->packet_no, header->packet_no, header->size); in mysqlnd_read_header()
740 if ((p - buf) > packet->header.size || packet->header.size - (p - buf) < net_len) { in php_mysqlnd_auth_response_read()
963 if (packet->header.size > 1) { in php_mysqlnd_eof_read()
1127 if ((p - buf) > packet->header.size || packet->header.size - (p - buf) < len) { in php_mysqlnd_rset_header_read()
1386 MYSQLND_PACKET_HEADER header; in php_mysqlnd_read_row_ex() local
1418 *data_size += header.size; in php_mysqlnd_read_row_ex()
[all …]
/php-src/ext/gd/libgd/
H A Dgd_tga.c149 unsigned char header[18]; in read_header_tga() local
151 if (gdGetBuf(header, sizeof(header), ctx) < 18) { in read_header_tga()
156 tga->identsize = header[0]; in read_header_tga()
158 tga->imagetype = header[2]; in read_header_tga()
159 tga->colormapstart = header[3] + (header[4] << 8); in read_header_tga()
160 tga->colormaplength = header[5] + (header[6] << 8); in read_header_tga()
162 tga->xstart = header[8] + (header[9] << 8); in read_header_tga()
163 tga->ystart = header[10] + (header[11] << 8); in read_header_tga()
164 tga->width = header[12] + (header[13] << 8); in read_header_tga()
165 tga->height = header[14] + (header[15] << 8); in read_header_tga()
[all …]
/php-src/sapi/cgi/tests/
H A D011.phpt29 header("X-Foo: Bar");
32 header("X-Foo: Bar");
33 header("X-Bar: Baz");
37 header("X-Foo: Bar");
41 header("X-Foo: Bar");
45 header("X-Foo: Bar");
55 header("X-Foo: Bar");
83 header("X-Foo: Bar");
92 header("X-Foo: Bar");
93 header("X-Bar: Baz");
[all …]
H A Dapache_response_headers.phpt18 header( "X-Robots-Tag : noindex,nofollow,noarchive" );
19 header( "Content-type: text/html; charset=UTF-8" );
20 header( "Bad-header" );
21 header( " : " );
22 header( ":" );
H A D010.phpt2 Bug #45860 (header() function fails to correctly replace all Status lines)
18 header("HTTP/1.1 403 Forbidden");
19 header("Status: 403 Also Forbidden");
25 header("HTTP/1.1 403 Forbidden");
31 header("Status: 403 Also Forbidden");
/php-src/ext/sockets/tests/
H A Dsocket_icmp.phpt27 $header = pack('C2n3a*', $type, $code, 0, $identifier, $sequence, $data);
28 $checksum = function($header): int {
29 $bit = unpack('n*', $header);
37 $header = pack('C2n3a*', $type, $code, $checksum($header), $identifier, $sequence, $data);
39 if (!socket_sendto($socket, $header, strlen($header), 0, $host, 0)) {
/php-src/ext/standard/tests/http/
H A Dbug48929.phpt2 Bug #48929 (duplicate \r\n sent after last header line)
33 echo "-- Test: requests with 'header' as array --\n";
35 do_test(array('header' => array('X-Foo: bar', 'Content-Type: text/plain'), 'method' => 'POST', 'con…
37 echo "-- Test: requests with 'header' as string --\n";
39 do_test(array('header' => "X-Foo: bar\r\nContent-Type: text/plain", 'method' => 'POST', 'content' =…
43 -- Test: requests with 'header' as array --
52 -- Test: requests with 'header' as string --
/php-src/ext/mbstring/tests/
H A Dgh8086.phpt15 $header["Mime-Version"] = "1.0";
16 $header["Content-Type"] = "text/html; charset=UTF-8";
17 $header["From"] = "omittedvalidaddress2@example.com";
18 $header["X-Mailer"] = "PHP/" . phpversion();
19 mb_send_mail($to, $subject, $message, $header);
H A Dgh7902.phpt18 $header["Mime-Version"] = "1.0";
19 $header["Content-Type"] = "text/html; charset=UTF-8";
20 $header["From"] = "omittedvalidaddress2@example.com";
21 $header["X-Mailer"] = "PHP/" . phpversion();
22 mb_send_mail($to, $subject, $message, $header);
/php-src/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_createFromFile_createFromString_BOM_buffer_edge.phpt8 $header = "\xEF\xBB\xBF<!doctype html><html><body>";
10 $data = $header . str_repeat("a", 4096 - strlen($header) - strlen($trailer)) . $trailer;
12 $dom = Dom\HTMLDocument::createFromString($header . str_repeat("a", 4096 - strlen($header) - strlen…
/php-src/ext/gd/tests/
H A Dimageloadfont_end_of_file_while_reading_header.phpt2 imageloadfont() "End of file while reading header"
12 // End of file while reading header
19 // Error while reading header
31 Warning: imageloadfont(): End of file while reading header in %s on line %d
33 Warning: imageloadfont(): End of file while reading header in %s on line %d
H A Dbug73155.phpt20 $header = unpack('@10/nchunk_size/nformat/nx_count/ny_count', $buffer);
21 printf("chunk size: %d\n", $header['chunk_size']);
22 printf("x chunk count: %d\n", $header['x_count']);
23 printf("y chunk count: %d\n", $header['y_count']);
/php-src/ext/zlib/tests/
H A Dbug65391.phpt2 Bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
11 header("Vary: Cookie");
14 // run-tests cannot test for a multiple Vary header
/php-src/ext/standard/tests/streams/
H A Dbug71245.phpt2 Bug #71245 (file_get_contents() ignores "header" context option if it's a reference)
10 'header' => &$headers,
28 [header] => Array
/php-src/ext/soap/tests/SoapClient/
H A DsetSoapHeaders-invalid-headers.phpt14 $header = new SoapHeader('namespace', 'name');
16 $header,
28 Fatal error: SoapClient::__setSoapHeaders(): Invalid SOAP header in %s on line %d
H A DsoapCall-invalid-headers.phpt14 $header = new SoapHeader('namespace', 'name');
16 $header,
28 Fatal error: SoapClient::__soapCall(): Invalid SOAP header in %s on line %d
/php-src/ext/libxml/
H A Dmime_sniff.c309 zval *header; in php_libxml_sniff_charset_from_stream() local
311 ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL(s->wrapperdata), header) { in php_libxml_sniff_charset_from_stream()
313 if (Z_TYPE_P(header) == IS_STRING && in php_libxml_sniff_charset_from_stream()
314 …!zend_binary_strncasecmp(Z_STRVAL_P(header), Z_STRLEN_P(header), buf, sizeof(buf)-1, sizeof(buf)-1… in php_libxml_sniff_charset_from_stream()
315 …libxml_sniff_charset_from_string(Z_STRVAL_P(header) + sizeof(buf) - 1, Z_STRVAL_P(header) + Z_STRL… in php_libxml_sniff_charset_from_stream()

Completed in 33 milliseconds

12345678910>>...12