Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lordsimal/php8.4-mimetype-bug
https://github.com/lordsimal/php8.4-mimetype-bug
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lordsimal/php8.4-mimetype-bug
- Owner: LordSimal
- Created: 2024-09-18T17:35:47.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T17:44:11.000Z (5 months ago)
- Last Synced: 2025-01-29T10:52:10.557Z (14 days ago)
- Language: PHP
- Size: 707 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP 8.4 Mimetype Bug
This repository should demonstrate a bug in current PHP 8.4 Beta 5 related to mime_type detection.
In this particular case the method `mime_content_type` returns `application/javascript` instead of `text/x-php`.
To test this with Docker run the following commands:
```bash
docker compose up
```In a separate terminal
```bash
docker exec -ti cakephp_app /bin/bash
php composer.phar install
php vendor/bin/phpunit tests/SimpleTest.php
```