Req #80195 [NEW]: WASM mimetype is not supported in php internal sever
| From: | yarco at 139 dot com | Date: | Wed, 07 Oct 2020 10:14:26 +0000 |
| Subject: | Req #80195 [NEW]: WASM mimetype is not supported in php internal sever | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229439@lists.php.net to get a copy of this message | ||
From: yarco at 139 dot com
Operating system: Mac OS / Homebrew
PHP version: Irrelevant
Package: Built-in web server
Bug Type: Feature/Change Request
Bug description:WASM mimetype is not supported in php internal sever
Description:
------------
WASM (*.wasm) is the webassembly program. And it seems will be the
future for at least it runs fine in modern browser environment.
I'm trying to run it by using
php -S 127.0.0.1:8000 -t . , and local
directory contains "main.html", "main.js", "main.wasm" (those
generated
by emcc which is a warm compiler). The script "main.js" (or maybe
main.html) will load "main.wasm" somewhere. And the browser tells me
under the console:
wasm streaming compile failed: TypeError: Failed to execute 'compile' on
'WebAssembly': Incorrect response MIME type. Expected
'application/wasm'.
It seems when sending "main.wasm", it didn't set the header
application/wasm.
(I think PHP should take care of those modern features...)
--
Edit bug report at https://bugs.php.net/bug.php?id=80195&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80195&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80195&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80195&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80195&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80195&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80195&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80195&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80195&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80195&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80195&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80195&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80195&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80195&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80195&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80195&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80195&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80195&r=mysqlcfg