Comments (3)
This is because of Big Sur which changed how PHP is compiled and added their own deprecation warning to php --version
.
Check out this article which explains the problem: https://bbqsoftwares.com/blog/phpunit-big-sur
I'm not gonna add a workaround in Rymfony just for this specific case. Since Apple is doing things wrong and breaks everyone's workflow with PHP, I suggest you use Homebrew to install proper PHP versions, and possibly remove the built-in one.
from rymfony.
I don't use the system version. When I try to start the server, it takes the system version.
Am I doing something wrong?
❯ brew-php-switcher 8.0 -s=valet,apache
Switching to [email protected]
Switching your shell
Unlinking /usr/local/Cellar/[email protected]/7.3.27_1... 0 symlinks removed.
Unlinking /usr/local/Cellar/[email protected]/7.4.16... 49 symlinks removed.
Unlinking /usr/local/Cellar/php/8.0.3... 0 symlinks removed.
Linking /usr/local/Cellar/php/8.0.3... 49 symlinks created.
All done!
❯ rymfony serve
2021-06-26T14:34:56.502Z INFO > Starting PHP...
thread 'main' panicked at 'Version "WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: May 8 2021 09:40:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
" for PHP binary "/usr/bin/php" is invalid.', src/php/binaries.rs:260:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Moreover MacOS prevents the removal of the default version.
from rymfony.
Interesting, that's indeed something we might investigate, considering the error you currently have 🤔
from rymfony.
Related Issues (20)
- [PHP] CGI server healthcheck HOT 1
- Forks cannot build with Github actions HOT 2
- [DOC] How to select the SAPI on serve comand HOT 2
- Error on request HOT 9
- [Windows] Unable to build HOT 4
- [windows] how to provide directory to find PHP HOT 2
- Issues with POST requests HOT 1
- Add RYMFONY_PATH information on command php:list HOT 4
- Rymfony with PHP7.3 cli on Linux HOT 15
- Error on PNG assets access HOT 2
- Autodetect app_dev.php entry_point
- Do not launch PHP if no entrypoint found HOT 2
- Check if PHP Binary exist before launch
- Unable to download binary file from PHP HOT 1
- Detect Systemd presence for php-fpm on *nix systems HOT 1
- PHP does not receive all Cookies sent in HTTP query
- Set-Cookie header lost in response HOT 1
- Handle root user HOT 3
- Tail logs to a file when server is run in the background HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rymfony.