/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | funcs.c | 72 efree(ms->o.buf); in file_printf() 75 ms->o.buf = buf; in file_printf() 94 efree(ms->o.buf); in file_error_core() 95 ms->o.buf = NULL; in file_error_core() 135 file_error_core(ms, 0, f, va, ms->line); in file_magerror() 401 ms->error = -1; in file_reset() 480 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer() 497 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem() 498 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem() 517 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); in file_printedlen() [all …]
|
H A D | magic.c | 117 if (ms == NULL) in magic_close() 128 if (ms == NULL) in magic_load() 136 if (ms == NULL) in magic_compile() 144 if (ms == NULL) in magic_check() 152 if (ms == NULL) in magic_list() 199 if (ms == NULL) in magic_descriptor() 210 if (ms == NULL) in magic_file() 218 if (ms == NULL) in magic_stream() 302 if (ms == NULL) in magic_buffer() 321 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error() [all …]
|
H A D | fsmagic.c | 78 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime() 93 int mime = ms->flags & MAGIC_MIME; in file_fsmagic() 103 if (ms->flags & MAGIC_ERROR) { in file_fsmagic() 107 if (file_printf(ms, "cannot open `%s' (%s)", in file_fsmagic() 141 if ((ms->flags & MAGIC_DEVICES) != 0) { in file_fsmagic() 172 if((ms->flags & MAGIC_DEVICES) != 0) in file_fsmagic() 175 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic() 185 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic() 195 if (ms->flags & MAGIC_ERROR) { in file_fsmagic() 206 if (handle_mime(ms, mime, "socket") == -1) in file_fsmagic() [all …]
|
H A D | apptype.c | 57 file_error(ms, errno, "cannot create tempnam"); in file_os2_apptype() 109 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype() 119 if (file_printf(ms, "protected ") == -1) in file_os2_apptype() 121 if (file_printf(ms, "DLL") == -1) in file_os2_apptype() 124 if (file_printf(ms, "Windows executable") == -1) in file_os2_apptype() 134 if (file_printf(ms, "DOS executable") == -1) in file_os2_apptype() 138 if (file_printf(ms, ", magic(4)-> ") == -1) in file_os2_apptype() 143 if (file_printf(ms, "bound executable") == -1) in file_os2_apptype() 146 if (file_printf(ms, "PM executable") == -1) in file_os2_apptype() 159 if (file_printf(ms, " [WINDOWCOMPAT]") == -1) in file_os2_apptype() [all …]
|
H A D | softmagic.c | 578 if (file_printf(ms, F(ms, desc, "%d"), in mprint() 600 if (file_printf(ms, F(ms, desc, "%u"), in mprint() 623 if (file_printf(ms, F(ms, desc, "%u"), in mprint() 658 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 686 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 700 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 710 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 719 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 728 if (file_printf(ms, F(ms, desc, "%s"), in mprint() 737 if (file_printf(ms, F(ms, desc, "%s"), in mprint() [all …]
|
H A D | readcdf.c | 46 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument 160 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info() 165 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info() 170 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info() 175 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 180 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 224 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 235 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 265 if (NOTMIME(ms)) { in cdf_file_catalog() 299 if (NOTMIME(ms)) { in cdf_file_summary_info() [all …]
|
H A D | ascmagic.c | 115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding() 148 file_oomem(ms, mlen); in file_ascmagic_with_encoding() 205 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding() 212 len = file_printedlen(ms); in file_ascmagic_with_encoding() 242 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding() 288 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding() 295 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding() 299 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding() 302 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding() 306 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding() [all …]
|
H A D | elfclass.h | 35 notecount = ms->elf_notes_max; 40 if (phnum > ms->elf_phnum_max) 43 if (dophn_core(ms, clazz, swap, fd, 53 if (phnum > ms->elf_phnum_max) 54 return toomany(ms, "program", phnum); 56 if (shnum > ms->elf_shnum_max) 57 return toomany(ms, "section", shnum); 58 if (dophn_exec(ms, clazz, swap, fd, 66 if (shnum > ms->elf_shnum_max) 68 if (doshn(ms, clazz, swap, fd, [all …]
|
H A D | apprentice.c | 471 if (ms == NULL) in file_ms_free() 481 if (ms->c.li) { in file_ms_free() 484 efree(ms); in file_ms_free() 502 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc() 503 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc() 513 ms->line = 0; in file_ms_alloc() 521 return ms; in file_ms_alloc() 523 efree(ms); in file_ms_alloc() 605 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice() 620 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice() [all …]
|
H A D | der.c | 246 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs() 247 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs() 260 offs += ms->offset + m->offset; in der_offs() 265 ms->c.li[i].off); in der_offs() 272 ms->c.li[m->cont_level - 1].off)); in der_offs() 278 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument 282 size_t offs = 0, len = ms->search.s_len; in der_cmp() 295 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() 320 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() 331 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() [all …]
|
H A D | compress.c | 203 int mime = ms->flags & MAGIC_MIME; in format_decompression_error() 224 int mime = ms->flags & MAGIC_MIME; in file_zmagic() 231 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic() 265 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic() 277 if ((file_printf(ms, in file_zmagic() 280 if ((pb = file_push_buffer(ms)) == NULL) in file_zmagic() 287 if (file_pop_buffer(ms, pb) != NULL) in file_zmagic() 298 if (!mime && file_printf(ms, ")") == -1) in file_zmagic() 319 ms->flags |= MAGIC_COMPRESS; in file_zmagic() 445 file_error(ms, errno, in file_pipe2file() [all …]
|
H A D | is_tar.c | 63 file_is_tar(struct magic_set *ms, const struct buffer *b) in file_is_tar() argument 72 int mime = ms->flags & MAGIC_MIME; in file_is_tar() 74 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_tar() 84 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
|
H A D | is_json.c | 387 file_is_json(struct magic_set *ms, const struct buffer *b) in file_is_json() argument 392 int mime = ms->flags & MAGIC_MIME; in file_is_json() 395 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_json() 406 if (file_printf(ms, "application/json") == -1) in file_is_json() 410 if (file_printf(ms, "JSON data") == -1) in file_is_json() 414 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT in file_is_json()
|
/PHP-7.4/main/streams/ |
H A D | memory.c | 55 ms->fpos = ms->fsize; in php_stream_memory_write() 57 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write() 65 ms->fsize = ms->fpos + count; in php_stream_memory_write() 85 if (ms->fpos == ms->fsize) { in php_stream_memory_read() 90 count = ms->fsize - ms->fpos; in php_stream_memory_read() 142 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 149 ms->fpos = ms->fsize; in php_stream_memory_seek() 153 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 161 ms->fpos = ms->fsize; in php_stream_memory_seek() 172 ms->fpos = ms->fsize; in php_stream_memory_seek() [all …]
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 172 - free(ms); 182 + efree(ms); 196 ms->o.buf = ms->o.pbuf = NULL; 197 len = (ms->c.len = 10) * sizeof(*ms->c.li); 206 return ms; 208 - free(ms); 299 - file_oomem(ms, sizeof(*ms->mlist[i])); 349 + file_oomem(ms, sizeof(*ms->mlist[i])); 2330 - if (ms->o.buf && *ms->o.buf) 3371 - file_oomem(ms, ms->search.rm_len); [all …]
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_events.c | 387 struct timeval ms; in fpm_event_loop() local 399 timerclear(&ms); in fpm_event_loop() 404 if (!timerisset(&ms)) { in fpm_event_loop() 405 ms = q->ev->timeout; in fpm_event_loop() 407 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop() 408 ms = q->ev->timeout; in fpm_event_loop() 415 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop() 418 timersub(&ms, &now, &tmp); in fpm_event_loop()
|
/PHP-7.4/ext/standard/tests/ |
H A D | bug64370_var1.phpt | 10 echo "created in $d ms\n"; 19 created in %f ms
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | finfo_file_002.phpt | 27 string(14) "image/x-ms-bmp" 41 string(29) "application/vnd.ms-powerpoint"
|
H A D | bug79756.phpt | 16 application/vnd.ms-excel; charset=binary
|
H A D | bug74170.phpt | 21 string(29) "application/vnd.ms-powerpoint"
|
/PHP-7.4/ext/date/tests/ |
H A D | bug64887.phpt | 8 '+1 ms',
|
H A D | date_time_fractions.phpt | 8 $ms = date_create()->format('u'); 9 echo ($ms = 0) ? "microseconds = false\n" : "microseconds = true\n";
|
/PHP-7.4/ext/pdo_firebird/tests/ |
H A D | payload_server.inc | 16 usleep(50000); // 50ms per try 45 usleep(50000); // 50ms per try
|
/PHP-7.4/ext/snmp/tests/ |
H A D | snmp_include.inc | 6 Default timeout is 1000ms and there will be one request performed.
|
/PHP-7.4/ext/opcache/tests/ |
H A D | php_cli_server.inc | 26 usleep(50000); // 50ms per try
|