facebook / facebook/hhvm

wrong mime type if the first word of a line is "extern"

Open
#8,285 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version

HipHop VM 3.24.7
hh-07ec0d8e77593042b6de0688f9f1fba076ade535-3.24.7 Fri May 4 18:30:01 2018

### Operating System and Version

'Ubuntu 14.04'

### Standalone code, or other way to reproduce the problem

echo mime_content_type ('test_mime.srt');

[test_mime.srt.zip](https://github.com/facebook/hhvm/files/2293280/test_mime.srt.zip)

### Actual result

text/x-c

### Expected result

text/plain or application/x-subrip

If you remove "extern" from line 8 of the attached File it works as expected

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.