/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | funcs.c | 75 efree(ms->o.buf); in file_printf() 78 ms->o.buf = buf; in file_printf() 97 efree(ms->o.buf); in file_error_core() 138 file_error_core(ms, 0, f, va, ms->line); in file_magerror() 336 if (ms->o.buf) { in file_reset() 345 ms->error = -1; in file_reset() 424 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer() 441 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem() 442 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem() 461 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); in file_printedlen() [all …]
|
H A D | magic.c | 120 if (ms == NULL) in magic_close() 131 if (ms == NULL) in magic_load() 139 if (ms == NULL) in magic_compile() 148 if (ms == NULL) in magic_list() 190 if (ms == NULL) in magic_descriptor() 201 if (ms == NULL) in magic_file() 209 if (ms == NULL) in magic_stream() 292 if (ms == NULL) in magic_buffer() 309 if (ms == NULL) in magic_error() 311 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error() [all …]
|
H A D | fsmagic.c | 85 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime() 100 int mime = ms->flags & MAGIC_MIME; in file_fsmagic() 114 if (ms->flags & MAGIC_ERROR) { in file_fsmagic() 123 if (ms->flags & MAGIC_ERROR) { in file_fsmagic() 159 if ((ms->flags & MAGIC_DEVICES) != 0) { in file_fsmagic() 190 if((ms->flags & MAGIC_DEVICES) != 0) in file_fsmagic() 193 if (handle_mime(ms, mime, "fifo") == -1) in file_fsmagic() 202 if (handle_mime(ms, mime, "door") == -1) in file_fsmagic() 211 if (ms->flags & MAGIC_ERROR) { in file_fsmagic() 222 if (handle_mime(ms, mime, "socket") == -1) in file_fsmagic() [all …]
|
H A D | softmagic.c | 458 if (file_printf(ms, F(ms, m, "%d"), in mprint() 480 if (file_printf(ms, F(ms, m, "%u"), in mprint() 536 if (file_printf(ms, F(ms, m, "%s"), in mprint() 564 if (file_printf(ms, F(ms, m, "%s"), in mprint() 577 if (file_printf(ms, F(ms, m, "%s"), in mprint() 587 if (file_printf(ms, F(ms, m, "%s"), in mprint() 596 if (file_printf(ms, F(ms, m, "%s"), in mprint() 605 if (file_printf(ms, F(ms, m, "%s"), in mprint() 614 if (file_printf(ms, F(ms, m, "%s"), in mprint() 666 rval = file_printf(ms, F(ms, m, "%s"), in mprint() [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 | readcdf.c | 50 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument 158 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info() 163 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info() 168 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info() 173 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 178 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info() 222 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 236 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info() 406 if (NOTMIME(ms)) { in cdf_check_summary_info() 520 if (NOTMIME(ms)) { in cdf_file_dir_info() [all …]
|
H A D | ascmagic.c | 105 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding() 137 file_oomem(ms, mlen); in file_ascmagic_with_encoding() 189 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding() 207 if (file_printedlen(ms)) { in file_ascmagic_with_encoding() 213 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding() 259 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding() 266 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding() 270 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding() 273 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding() 277 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 | 468 if (ms == NULL) in file_ms_free() 478 if (ms->c.li) { in file_ms_free() 481 efree(ms); in file_ms_free() 499 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc() 500 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc() 510 ms->line = 0; in file_ms_alloc() 518 return ms; in file_ms_alloc() 520 efree(ms); in file_ms_alloc() 598 file_oomem(ms, sizeof(*ms->mlist[i])); in file_apprentice() 613 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() 258 offs += ms->offset + m->offset; in der_offs() 262 printf("cont_level[%zu] = %u\n", i, ms->c.li[i].off); in der_offs() 269 ms->c.li[m->cont_level - 1].off)); in der_offs() 275 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument 279 size_t offs = 0, len = ms->search.s_len; in der_cmp() 292 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() 317 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() 327 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp() [all …]
|
H A D | compress.c | 153 int mime = ms->flags & MAGIC_MIME; in file_zmagic() 158 if ((ms->flags & MAGIC_COMPRESS) == 0) in file_zmagic() 186 ms->flags &= ~MAGIC_COMPRESS; in file_zmagic() 188 prv = file_printf(ms, "%s ERROR: %s", in file_zmagic() 199 if ((file_printf(ms, in file_zmagic() 202 if ((pb = file_push_buffer(ms)) == NULL) in file_zmagic() 211 if (file_printf(ms, "%s", rbuf) == -1) { in file_zmagic() 217 if (!mime && file_printf(ms, ")") == -1) in file_zmagic() 238 ms->flags |= MAGIC_COMPRESS; in file_zmagic() 363 file_error(ms, errno, in file_pipe2file() [all …]
|
H A D | is_tar.c | 63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument 70 int mime = ms->flags & MAGIC_MIME; in file_is_tar() 72 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) in file_is_tar() 79 if (file_printf(ms, "%s", mime ? "application/x-tar" : in file_is_tar()
|
H A D | print.c | 59 file_magwarn(struct magic_set *ms, const char *f, ...) in file_magwarn() argument
|
/PHP-7.2/main/streams/ |
H A D | memory.c | 57 if (ms->fpos + count > ms->fsize) { in php_stream_memory_write() 66 ms->fsize = ms->fpos + count; in php_stream_memory_write() 86 if (ms->fpos == ms->fsize) { in php_stream_memory_read() 91 count = ms->fsize - ms->fpos; in php_stream_memory_read() 143 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 150 ms->fpos = ms->fsize; in php_stream_memory_seek() 154 ms->fpos = ms->fpos + offset; in php_stream_memory_seek() 162 ms->fpos = ms->fsize; in php_stream_memory_seek() 173 ms->fpos = ms->fsize; in php_stream_memory_seek() 181 ms->fpos = ms->fsize + offset; in php_stream_memory_seek() [all …]
|
/PHP-7.2/ext/standard/tests/streams/ |
H A D | proc_open_bug69900.phpt | 37 echo "fgets() took ", (($t1 - $t0)*1000 > $max_ms ? 'more' : 'less'), " than $max_ms ms\n"; 54 fgets() took more than %d ms 56 fgets() took less than %d ms 58 fgets() took less than %d ms 60 fgets() took less than %d ms 62 fgets() took less than %d ms 64 fgets() took less than %d ms 66 fgets() took less than %d ms 68 fgets() took less than %d ms 70 fgets() took less than %d ms [all …]
|
/PHP-7.2/ext/fileinfo/ |
H A D | libmagic.patch | 171 - free(ms); 181 + efree(ms); 195 ms->o.buf = ms->o.pbuf = NULL; 196 len = (ms->c.len = 10) * sizeof(*ms->c.li); 205 return ms; 207 - free(ms); 297 - file_oomem(ms, sizeof(*ms->mlist[i])); 347 + file_oomem(ms, sizeof(*ms->mlist[i])); 2060 - if (ms->o.buf && *ms->o.buf) 3312 - file_oomem(ms, ms->search.rm_len); [all …]
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_events.c | 375 struct timeval ms; in fpm_event_loop() local 387 timerclear(&ms); in fpm_event_loop() 392 if (!timerisset(&ms)) { in fpm_event_loop() 393 ms = q->ev->timeout; in fpm_event_loop() 395 if (timercmp(&q->ev->timeout, &ms, <)) { in fpm_event_loop() 396 ms = q->ev->timeout; in fpm_event_loop() 403 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop() 406 timersub(&ms, &now, &tmp); in fpm_event_loop()
|
/PHP-7.2/ext/standard/tests/ |
H A D | bug64370_var1.phpt | 10 echo "created in $d ms\n"; 19 created in %f ms
|
/PHP-7.2/ext/standard/tests/image/ |
H A D | image_type_to_mime_type.phpt | 30 string(14) "image/x-ms-bmp" 34 string(14) "image/x-ms-bmp" 36 string(14) "image/x-ms-bmp"
|
H A D | getimagesize.phpt | 40 string(14) "image/x-ms-bmp" 70 string(14) "image/x-ms-bmp" 85 string(14) "image/x-ms-bmp"
|
H A D | image_type_to_mime_type_basic.phpt | 52 string(14) "image/x-ms-bmp"
|
/PHP-7.2/ext/fileinfo/tests/ |
H A D | finfo_file_002.phpt | 27 string(14) "image/x-ms-bmp" 39 string(29) "application/vnd.ms-powerpoint"
|
/PHP-7.2/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.2/ext/snmp/tests/ |
H A D | snmp_include.inc | 6 Default timeout is 1000ms and there will be one request performed.
|