Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 25 of 27) sorted by relevance

12

/php-src/ext/standard/
H A Dmail.c404 if (!hdr || !strlen(hdr)) { in php_mail_detect_multiple_crlf()
410 if (*hdr < 33 || *hdr > 126 || *hdr == ':') { in php_mail_detect_multiple_crlf()
414 while(*hdr) { in php_mail_detect_multiple_crlf()
416 …if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || (*(hdr+1) == '\n' && (*(hdr+2) == '\0' || *(hdr+2) == … in php_mail_detect_multiple_crlf()
420 hdr += 2; in php_mail_detect_multiple_crlf()
423 if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || *(hdr+1) == '\n') { in php_mail_detect_multiple_crlf()
427 hdr += 2; in php_mail_detect_multiple_crlf()
430 hdr++; in php_mail_detect_multiple_crlf()
462 if (hdr) { in php_mail()
506 hdr = ahdr; in php_mail()
[all …]
H A Durl.c672 zval *prev_val, *hdr = NULL; in PHP_FUNCTION() local
697 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&stream->wrapperdata), hdr) { in PHP_FUNCTION()
698 if (Z_TYPE_P(hdr) != IS_STRING) { in PHP_FUNCTION()
703 add_next_index_str(return_value, zend_string_copy(Z_STR_P(hdr))); in PHP_FUNCTION()
708 if ((p = strchr(Z_STRVAL_P(hdr), ':'))) { in PHP_FUNCTION()
716 …v_val = zend_hash_str_find(Z_ARRVAL_P(return_value), Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)))) == N… in PHP_FUNCTION()
717 …ssoc_stringl_ex(return_value, Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)), s, (Z_STRLEN_P(hdr) - (s - Z… in PHP_FUNCTION()
720 add_next_index_stringl(prev_val, s, (Z_STRLEN_P(hdr) - (s - Z_STRVAL_P(hdr)))); in PHP_FUNCTION()
/php-src/ext/phar/
H A Dtar.c210 tar_header *hdr; in phar_parse_tarfile() local
233 hdr = (tar_header*)buf; in phar_parse_tarfile()
258 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
262 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
275 phar_tar_number(hdr->size, sizeof(hdr->size)); in phar_parse_tarfile()
325 if (((hdr->typeflag == '\0') || (hdr->typeflag == TAR_FILE)) && size > 0) { in phar_parse_tarfile()
350 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
475 uint32_t entry_mode = phar_tar_number(hdr->mode, sizeof(hdr->mode)); in phar_parse_tarfile()
476 entry.tar_type = ((old & (hdr->typeflag == '\0')) ? TAR_FILE : hdr->typeflag); in phar_parse_tarfile()
480 entry.timestamp = phar_tar_number(hdr->mtime, sizeof(hdr->mtime)); in phar_parse_tarfile()
[all …]
/php-src/main/
H A Dfastcgi.c150 fcgi_header hdr; member
164 fcgi_header hdr; member
996 hdr->type = type; in fcgi_make_header()
1038 fcgi_header hdr; in fcgi_read_request() local
1059 len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; in fcgi_read_request()
1068 len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; in fcgi_read_request()
1076 req->id = (hdr.requestIdB1 << 8) + hdr.requestIdB0; in fcgi_read_request()
1118 len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; in fcgi_read_request()
1141 len = (hdr.contentLengthB1 << 8) | hdr.contentLengthB0; in fcgi_read_request()
1207 fcgi_header hdr; in fcgi_read() local
[all …]
/php-src/ext/iconv/tests/
H A Dbug78069.phpt7 $hdr = iconv_mime_decode_headers(file_get_contents(__DIR__ . "/bug78069.data"),2);
8 var_dump(count($hdr));
/php-src/win32/build/
H A Dmkdist.php194 …$hdr = unpack("a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link/a6m…
196 $hdr['checksum'] = octdec(trim($hdr['checksum']));
198 if ($hdr['checksum'] != $checksum) {
199 echo "Checksum for $tarball $hdr[filename] is invalid\n";
200 print_r($hdr);
204 $hdr['size'] = octdec(trim($hdr['size']));
205 echo "File: $hdr[filename] $hdr[size]\n";
207 if ($filename == $hdr['filename']) {
210 $x = stream_copy_to_stream($fp, $dest, $hdr['size']);
217 $size = 512 * ceil((int)$hdr['size'] / 512);
/php-src/ext/gd/libgd/
H A Dgd_bmp.c440 bmp_hdr_t *hdr; in gdImageCreateFromBmpCtx() local
449 if (bmp_read_header(infile, hdr)) { in gdImageCreateFromBmpCtx()
450 gdFree(hdr); in gdImageCreateFromBmpCtx()
454 if (hdr->magic != 0x4d42) { in gdImageCreateFromBmpCtx()
455 gdFree(hdr); in gdImageCreateFromBmpCtx()
460 gdFree(hdr); in gdImageCreateFromBmpCtx()
465 gdFree(hdr); in gdImageCreateFromBmpCtx()
484 gdFree(hdr); in gdImageCreateFromBmpCtx()
513 gdFree(hdr); in gdImageCreateFromBmpCtx()
528 !gdGetIntLSB(&hdr->size, infile) || in bmp_read_header()
[all …]
/php-src/ext/soap/tests/interop/Round4/GroupI/
H A Dr4_groupI_xsd_031w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/","echoMeStringRequest", array(), 1);
11 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
H A Dr4_groupI_xsd_030w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/","echoMeStringRequest", array("varString"=>"Hello Wo…
11 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
H A Dr4_groupI_xsd_033w.phpt10 $hdr = new SoapHeader("http://soapinterop.org/","echoMeComplexTypeRequest", array("varInt"=>34,"var…
12 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
H A Dr4_groupI_xsd_034w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/","echoMeStringRequest", array("varString"=>"Hello Wo…
11 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
H A Dr4_groupI_xsd_032w.phpt10 $hdr = new SoapHeader("http://soapinterop.org/","echoMeComplexTypeRequest", array("varInt"=>34,"var…
12 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
H A Dr4_groupI_xsd_035w.phpt10 $hdr = new SoapHeader("http://soapinterop.org/","echoMeComplexTypeRequest", array("varInt"=>34,"var…
12 $client->__soapCall("echoVoidSoapHeader",array(),null,$hdr);
/php-src/ext/opcache/jit/ir/
H A Dir_perf.c79 ir_perf_jitdump_record hdr; member
233 rec.hdr.event = IR_PERF_JITDUMP_RECORD_LOAD; in ir_perf_jitdump_register()
234 rec.hdr.size = sizeof(rec) + len + 1 + size; in ir_perf_jitdump_register()
235 rec.hdr.time_stamp = ir_perf_timestamp(); in ir_perf_jitdump_register()
H A Dir_disasm.c777 ir_elf_header hdr; local
809 if (read(fd, &hdr, sizeof(hdr)) == sizeof(hdr)
810 && hdr.emagic[0] == '\177'
811 && hdr.emagic[1] == 'E'
812 && hdr.emagic[2] == 'L'
813 && hdr.emagic[3] == 'F'
814 && lseek(fd, hdr.shofs, SEEK_SET) >= 0) {
815 for (i = 0; i < hdr.shnum; i++) {
823 if (lseek(fd, hdr.shofs + sect.link * sizeof(sect), SEEK_SET) >= 0
839 if (lseek(fd, hdr.shofs + (i + 1) * sizeof(sect), SEEK_SET) < 0) {
H A Dir_gdb.c120 ir_elf_header hdr; member
465 memcpy(&obj->hdr, &ir_elfhdr_template, sizeof(ir_elf_header)); in ir_gdbjit_buildobj()
/php-src/ext/soap/tests/interop/Round3/GroupF/
H A Dr3_groupF_headers_002w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/xsd","Header1", array("int"=>34,"string"=>"arg"));
11 $client->__soapCall("echoString",array("Hello World"),null,$hdr);
H A Dr3_groupF_headers_003w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/xsd","Header2", array("int"=>34,"string"=>"arg"));
11 $client->__soapCall("echoString",array("Hello World"),null,$hdr);
H A Dr3_groupF_headers_004w.phpt9 $hdr = array(
14 $client->__soapCall("echoString",array("Hello World"),null,$hdr);
/php-src/ext/soap/tests/interop/Round4/GroupH/
H A Dr4_groupH_soapfault_004w.phpt9 $hdr = new SoapHeader("http://soapinterop.org/wsdl", "UnknownHeaderRequest", "Hello World", 1);
11 $client->__soapCall("echoVersionMismatchFault",array(), null, $hdr);
/php-src/ext/soap/
H A Dphp_packet_soap.c399 sdlSoapBindingFunctionHeaderPtr hdr; in parse_packet_soap() local
407 if ((hdr = zend_hash_find_ptr(hdrs, key.s)) != NULL) { in parse_packet_soap()
408 enc = hdr->encode; in parse_packet_soap()
H A Dsoap.c3364 h->hdr = hdr; in deserialize_function_call()
3369 if (h->hdr) { in deserialize_function_call()
3587 char *hdr_ns = headers->hdr?headers->hdr->ns:NULL; in serialize_response_call()
3609 if (headers->hdr && headers->hdr->headerfaults && in serialize_response_call()
3610 (hdr = zend_hash_find_ptr(headers->hdr->headerfaults, key.s)) != NULL) { in serialize_response_call()
3611 hdr_enc = hdr->encode; in serialize_response_call()
3612 hdr_use = hdr->use; in serialize_response_call()
3813 char *hdr_ns = h->hdr?h->hdr->ns:NULL; in serialize_response_call()
3842 hdr_use = hdr->use; in serialize_response_call()
4073 hdr_use = hdr->use; in serialize_function_call()
[all …]
H A Dphp_sdl.c3525 if (hdr->name) { in delete_header_int_ex()
3526 pefree(hdr->name, persistent); in delete_header_int_ex()
3528 if (hdr->ns) { in delete_header_int_ex()
3529 pefree(hdr->ns, persistent); in delete_header_int_ex()
3531 if (hdr->headerfaults) { in delete_header_int_ex()
3532 zend_hash_destroy(hdr->headerfaults); in delete_header_int_ex()
3533 pefree(hdr->headerfaults, persistent); in delete_header_int_ex()
3535 pefree(hdr, persistent); in delete_header_int_ex()
3540 delete_header_int_ex(hdr, false); in delete_header_int()
3546 delete_header_int_ex(hdr, false); in delete_header()
[all …]
/php-src/ext/fileinfo/libmagic/
H A Dapprentice.c3364 } hdr; in apprentice_compile() local
3378 memset(&hdr, 0, sizeof(hdr)); in apprentice_compile()
3379 hdr.h[0] = MAGICNO; in apprentice_compile()
3380 hdr.h[1] = VERSIONNO; in apprentice_compile()
3381 memcpy(hdr.h + 2, map->nmagic, nm); in apprentice_compile()
3383 if (php_stream_write(stream,(const char *)&hdr, sizeof(hdr)) != (ssize_t)sizeof(hdr)) { in apprentice_compile()
/php-src/ext/fileinfo/
H A Dlibmagic.patch794 hdr.h[1] = VERSIONNO;
795 memcpy(hdr.h + 2, map->nmagic, nm);
797 - if (write(fd, &hdr, sizeof(hdr)) != CAST(ssize_t, sizeof(hdr))) {
798 + if (php_stream_write(stream,(const char *)&hdr, sizeof(hdr)) != (ssize_t)sizeof(hdr)) {

Completed in 69 milliseconds

12