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.c377 if (!hdr || !strlen(hdr)) { in php_mail_detect_multiple_crlf()
383 if (*hdr < 33 || *hdr > 126 || *hdr == ':') { in php_mail_detect_multiple_crlf()
387 while(*hdr) { in php_mail_detect_multiple_crlf()
389 …if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || (*(hdr+1) == '\n' && (*(hdr+2) == '\0' || *(hdr+2) == … in php_mail_detect_multiple_crlf()
393 hdr += 2; in php_mail_detect_multiple_crlf()
396 if (*(hdr+1) == '\0' || *(hdr+1) == '\r' || *(hdr+1) == '\n') { in php_mail_detect_multiple_crlf()
400 hdr += 2; in php_mail_detect_multiple_crlf()
403 hdr++; in php_mail_detect_multiple_crlf()
440 if (hdr) { in php_mail()
484 hdr = ahdr; in php_mail()
[all …]
H A Durl.c685 zval *prev_val, *hdr = NULL; in PHP_FUNCTION() local
710 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&stream->wrapperdata), hdr) { in PHP_FUNCTION()
711 if (Z_TYPE_P(hdr) != IS_STRING) { in PHP_FUNCTION()
716 add_next_index_str(return_value, zend_string_copy(Z_STR_P(hdr))); in PHP_FUNCTION()
721 if ((p = strchr(Z_STRVAL_P(hdr), ':'))) { in PHP_FUNCTION()
729 …v_val = zend_hash_str_find(Z_ARRVAL_P(return_value), Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)))) == N… in PHP_FUNCTION()
730 …ssoc_stringl_ex(return_value, Z_STRVAL_P(hdr), (p - Z_STRVAL_P(hdr)), s, (Z_STRLEN_P(hdr) - (s - Z… in PHP_FUNCTION()
733 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.c208 tar_header *hdr; in phar_parse_tarfile() local
231 hdr = (tar_header*)buf; in phar_parse_tarfile()
257 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
261 memset(hdr->checksum, ' ', sizeof(hdr->checksum)); in phar_parse_tarfile()
274 phar_tar_number(hdr->size, sizeof(hdr->size)); in phar_parse_tarfile()
324 if (((hdr->typeflag == '\0') || (hdr->typeflag == TAR_FILE)) && size > 0) { in phar_parse_tarfile()
349 sum1 = phar_tar_number(hdr->checksum, sizeof(hdr->checksum)); in phar_parse_tarfile()
474 uint32_t entry_mode = phar_tar_number(hdr->mode, sizeof(hdr->mode)); in phar_parse_tarfile()
475 entry.tar_type = ((old & (hdr->typeflag == '\0')) ? TAR_FILE : hdr->typeflag); in phar_parse_tarfile()
479 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/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/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/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.c773 ir_elf_header hdr; local
805 if (read(fd, &hdr, sizeof(hdr)) == sizeof(hdr)
806 && hdr.emagic[0] == '\177'
807 && hdr.emagic[1] == 'E'
808 && hdr.emagic[2] == 'L'
809 && hdr.emagic[3] == 'F'
810 && lseek(fd, hdr.shofs, SEEK_SET) >= 0) {
811 for (i = 0; i < hdr.shnum; i++) {
819 if (lseek(fd, hdr.shofs + sect.link * sizeof(sect), SEEK_SET) >= 0
835 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.c3155 h->hdr = hdr;
3160 if (h->hdr) {
3378 char *hdr_ns = headers->hdr?headers->hdr->ns:NULL;
3400 if (headers->hdr && headers->hdr->headerfaults &&
3401 (hdr = zend_hash_find_ptr(headers->hdr->headerfaults, key.s)) != NULL) {
3402 hdr_enc = hdr->encode;
3403 hdr_use = hdr->use;
3604 char *hdr_ns = h->hdr?h->hdr->ns:NULL;
3633 hdr_use = hdr->use;
3863 hdr_use = hdr->use;
[all …]
H A Dphp_sdl.c3621 if (hdr->name) { in delete_header_int()
3622 efree(hdr->name); in delete_header_int()
3624 if (hdr->ns) { in delete_header_int()
3625 efree(hdr->ns); in delete_header_int()
3627 if (hdr->headerfaults) { in delete_header_int()
3631 efree(hdr); in delete_header_int()
3642 if (hdr->name) { in delete_header_persistent()
3643 free(hdr->name); in delete_header_persistent()
3645 if (hdr->ns) { in delete_header_persistent()
3646 free(hdr->ns); in delete_header_persistent()
[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 83 milliseconds

12