/php-src/Zend/tests/ |
H A D | output_started_at_eval.phpt | 6 header('Foo: Bar'); 11 Warning: Cannot modify header information - headers already sent by (output started at %s(2) : eval…
|
/php-src/ext/phar/ |
H A D | tar.c | 103 uint32_t checksum = phar_tar_number(header->checksum, sizeof(header->checksum)); in phar_is_tar() 112 memcpy(save, header->checksum, sizeof(header->checksum)); in phar_is_tar() 113 memset(header->checksum, ' ', sizeof(header->checksum)); in phar_is_tar() 115 memcpy(header->checksum, save, sizeof(header->checksum)); in phar_is_tar() 710 tar_header header; in phar_tar_writeheaders_int() local 729 memset((char *) &header, 0, sizeof(header)); in phar_tar_writeheaders_int() 755 phar_tar_octal(header.mode, entry->flags & PHAR_ENT_PERM_MASK, sizeof(header.mode)-1); in phar_tar_writeheaders_int() 764 if (FAILURE == phar_tar_octal(header.mtime, entry->timestamp, sizeof(header.mtime)-1)) { in phar_tar_writeheaders_int() 775 if (strlcpy(header.linkname, entry->link, sizeof(header.linkname)) >= sizeof(header.linkname)) { in phar_tar_writeheaders_int() 786 entry->crc32 = phar_tar_checksum((char *)&header, sizeof(header)); in phar_tar_writeheaders_int() [all …]
|
/php-src/ext/standard/tests/general_functions/ |
H A D | header_redirection_014.phpt | 6 header('HTTP/1.1 399 Choose Your Own Adventure'); 7 header('Location: http://example.com/');
|
/php-src/ext/ |
H A D | ext_skel.php | 249 static $header; 251 if (!$header) { 256 $header = <<<"HEADER" 275 …$header = sprintf('/* %s extension for PHP (c) %d %s */', $options['ext'], date('Y'), $options['au… 277 $header = sprintf('/* %s extension for PHP */', $options['ext']); 282 $source = str_replace('%HEADER%', $header, $source);
|
/php-src/sapi/cli/tests/ |
H A D | bug64878.phpt | 2 Bug #64878 (304 responses return Content-Type header) 12 php_cli_server_start('header("HTTP/1.1 304 Not Modified")', null);
|
H A D | bug66830.phpt | 2 Bug #66830 (Empty header causes PHP built-in web server to hang) 11 header(' ');
|
H A D | gh12363.phpt | 2 Ensure a single Date header is present 11 header('Date: Mon, 25 Mar 1985 00:20:00 GMT');
|
/php-src/ext/gd/tests/ |
H A D | bug73159.phpt | 19 $header = unpack('@12/nformat', $buffer); 20 printf("format: %d\n", $header['format']);
|
H A D | bug73157.phpt | 20 $header = unpack('@10/nchunk_size', $buffer); 21 printf("chunk size: %d\n", $header['chunk_size']);
|
H A D | bug81739.phpt | 8 // header without character data 21 Warning: imageloadfont(): Error reading font, invalid font header in %s on line %d
|
/php-src/ext/ffi/tests/ |
H A D | callconv.phpt | 12 $header = <<<HEADER 20 $ffi1 = FFI::cdef($header, $dllname); 25 file_put_contents($headername, "#define FFI_LIB \"$dllname\"\n$header");
|
H A D | trampoline_reset.phpt | 25 $header = ' 31 $ffi = FFI::cdef($header, 'libc.so.6');
|
/php-src/ext/standard/tests/mail/ |
H A D | gh13415.phpt | 43 Header "Reply-To" contains LF character that is not allowed in the header 46 Header "Reply-To" contains CR character that is not allowed in the header 49 …ly-To" contains CRLF characters that are used as a line separator and are not allowed in the header 52 Header "Reply-To" contains NULL character that is not allowed in the header
|
H A D | bug80751.phpt | 56 echo "Cc header is as expected.\n\n"; 74 Cc header is as expected. 78 Cc header is as expected. 82 Cc header is as expected.
|
/php-src/ext/standard/tests/http/ |
H A D | gh11274.phpt | 14 header("Location: $uri/"); 31 …t$suffix", false, stream_context_create(['http' => ['method' => 'POST', 'header' => 'Content-type:… 32 …$suffix", false, stream_context_create(['http' => ['method' => 'PATCH', 'header' => 'Content-type:… 33 …/$suffix", false, stream_context_create(['http' => ['method' => 'POST', 'header' => 'Content-type:… 34 …$suffix", false, stream_context_create(['http' => ['method' => 'PATCH', 'header' => 'Content-type:…
|
H A D | gh9316.phpt | 12 …e to test that this is properly handled by our code without adding a new header like Bad: Header\… 39 …reason-phrase to test that this is properly handled by our code without adding a new header like " 46 …reason-phrase to test that this is properly handled by our code without adding a new header like " 53 …reason-phrase to test that this is properly handled by our code without adding a new header like "
|
/php-src/main/ |
H A D | SAPI.c | 109 efree(sapi_header->header); in sapi_free_header() 600 sapi_header_struct *header; in sapi_remove_header() local 607 if (header->header_len > len && header->header[len] == ':' in sapi_remove_header() 608 && !strncasecmp(header->header, name, len)) { in sapi_remove_header() 619 sapi_free_header(header); in sapi_remove_header() 655 … sapi_remove_header(&SG(sapi_headers).headers, sapi_header->header, strlen(sapi_header->header)); in sapi_header_add_op() 731 sapi_header.header = header_line; in sapi_header_op() 757 sapi_header.header = header_line; in sapi_header_op() 794 sapi_header.header = newheader; in sapi_header_op() 829 if (sapi_header.header==header_line) { in sapi_header_op() [all …]
|
/php-src/ext/soap/tests/bugs/ |
H A D | bug31755.phpt | 2 Bug #31755 (Cannot create SOAP header in no namespace) 23 $header = new SOAPHeader('namespace', 'foo', 'bar'); 24 $response= $client->__soapCall('function', array(), null, $header);
|
/php-src/ext/session/tests/ |
H A D | gh9200.phpt | 14 foreach (headers_list() as $header) { 15 …|Dec) 2[0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] GMT; Max-Age=3600; path=\\/$/', $header)) {
|
/php-src/ext/standard/tests/network/ |
H A D | setcookie.phpt | 48 $header = current($headers); 49 if (strncmp($header, 'Set-Cookie:', 11) !== 0) { 55 $header = str_replace('Max-Age=4', 'Max-Age=5', $header); 56 if ($header === current($expected)) {
|
/php-src/sapi/fpm/tests/ |
H A D | bug80849-fpm.phpt | 2 Bug #80849 (HTTP Status header truncation) 23 header('HTTP/1.1 201 ' . str_repeat('A', 1014), true);
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_log.c | 324 char *header; in fpm_log_write() local 329 if (!strstr(h->header, format)) { in fpm_log_write() 340 if (h->header[format_len] != ':' || h->header[format_len + 1] != ' ') { in fpm_log_write() 345 header = h->header + format_len + 2; in fpm_log_write() 346 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%s", header && *header ? header : "-"); in fpm_log_write()
|
/php-src/ext/phar/tests/ |
H A D | phar_createdefaultstub.phpt | 94 header("Pragma: no-cache"); 105 header('HTTP/1.1 301 Moved Permanently'); 111 header('HTTP/1.0 404 Not Found'); 117 header('Content-Type: text/plain'); 118 header('Content-Length: ' . filesize($a)); 388 header("Pragma: no-cache"); 405 header('HTTP/1.0 404 Not Found'); 411 header('Content-Type: text/plain'); 690 header("Pragma: no-cache"); 707 header('HTTP/1.0 404 Not Found'); [all …]
|
H A D | phar_setdefaultstub.phpt | 114 header("Pragma: no-cache"); 125 header('HTTP/1.1 301 Moved Permanently'); 131 header('HTTP/1.0 404 Not Found'); 137 header('Content-Type: text/plain'); 138 header('Content-Length: ' . filesize($a)); 409 header("Pragma: no-cache"); 426 header('HTTP/1.0 404 Not Found'); 432 header('Content-Type: text/plain'); 704 header("Pragma: no-cache"); 721 header('HTTP/1.0 404 Not Found'); [all …]
|
/php-src/ext/zlib/tests/ |
H A D | gzencode_variation2.phpt | 2 Test gzencode() function : variation - verify header contents with all encoding modes 15 print "skip - OS is encoded in headers, tested header is non Darwin";
|