GithubHelp home page GithubHelp logo

Comments (3)

Pierstoval avatar Pierstoval commented on August 25, 2024

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.

antiseptikk avatar antiseptikk commented on August 25, 2024

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.

Pierstoval avatar Pierstoval commented on August 25, 2024

Interesting, that's indeed something we might investigate, considering the error you currently have 🤔

from rymfony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.