GithubHelp home page GithubHelp logo

Problems with 2.2.0 about phpbrew HOT 6 OPEN

s22-tech avatar s22-tech commented on July 29, 2024
Problems with 2.2.0

from phpbrew.

Comments (6)

s22-tech avatar s22-tech commented on July 29, 2024 1

It finally makes sense now! 🙂 I didn't realize you could turn off deprecated warnings.

I look forward to the next release. Thanks!

from phpbrew.

peter279k avatar peter279k commented on July 29, 2024

Thanks for reporting the issue. And the reference is available here.

from phpbrew.

peter279k avatar peter279k commented on July 29, 2024

I cannot reproduce the issue with the PHP8.2.17 version:

$ php -v
PHP 8.2.17 (cli) (built: Mar 16 2024 08:41:44) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.17, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.17, Copyright (c), by Zend Technologies
$ phpbrew -v
  ______ _   _ ____________
  | ___ \ | | || ___ \ ___ \
  | |_/ / |_| || |_/ / |_/ /_ __ _____      __
  |  __/|  _  ||  __/| ___ \ '__/ _ \ \ /\ / /
  | |   | | | || |   | |_/ / | |  __/\ V  V /
  \_|   \_| |_/\_|   \____/|_|  \___| \_/\_/

Brew your latest php!

SYNOPSIS
        phpbrew [options] <command>

OPTIONS
        -v, --verbose
                Print verbose message.

        -d, --debug
                Print debug message.

        -q, --quiet
                Be quiet.

        -h, --help
                Show help.

        --version
                Show version.

        -p, --profile
                Display timing and memory usage information.

        --log-path=[<value>]
                The path of a log file.

        --no-interact
                Do not ask any interactive question.

        --no-progress
                Do not display progress bar.


COMMANDS
                help    Show help message of a command
                init    Initialize phpbrew config file.
               known    List known PHP versions
             install    Install php
                list    List installed PHPs
                 use    Use php, switch version temporarily
              switch    Switch default php version.
                each    Iterate and run a given shell command over all php versions managed by PHPBrew.
              config    Edit your current php.ini in your favorite $EDITOR
                info    Show current PHP information
                 env    Export environment variables
           extension    List extensions or execute extension subcommands
            variants    List php variants
                path    Show paths of the current PHP.
                  cd    Change to directories
            download    Download php
               clean    Clean up the source directory of a PHP distribution
              update    Update PHP release source file
               ctags    Run ctags at current php source dir for extension development.
                 fpm    fpm commands
            list-ini    List loaded ini config files.
         self-update    Self-update, default to master version
              remove    Remove installed php build.
               purge    Remove installed php version and config files.
                 off    Temporarily go back to the system php
          switch-off    Definitely go back to the system php
              system    Get or set the internally used PHP binary
          system-off    Use the currently effective PHP binary internally

HELP
        'phpbrew help' lists available subcommands and some topics. See
        'phpbrew help <command>' or 'phpbrew help <topic>' to read about a
        specific subcommand or phpbrew.

phpbrew 2.2.0           powered by https://github.com/c9s/CLIFramework

It will not effect with the PHP 8.3.4 version:

$ php -v
PHP 8.3.4 (cli) (built: Mar 16 2024 08:39:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies
$ phpbrew -v
  ______ _   _ ____________
  | ___ \ | | || ___ \ ___ \
  | |_/ / |_| || |_/ / |_/ /_ __ _____      __
  |  __/|  _  ||  __/| ___ \ '__/ _ \ \ /\ / /
  | |   | | | || |   | |_/ / | |  __/\ V  V /
  \_|   \_| |_/\_|   \____/|_|  \___| \_/\_/

Brew your latest php!

SYNOPSIS
        phpbrew [options] <command>

OPTIONS
        -v, --verbose
                Print verbose message.

        -d, --debug
                Print debug message.

        -q, --quiet
                Be quiet.

        -h, --help
                Show help.

        --version
                Show version.

        -p, --profile
                Display timing and memory usage information.

        --log-path=[<value>]
                The path of a log file.

        --no-interact
                Do not ask any interactive question.

        --no-progress
                Do not display progress bar.


COMMANDS
                help    Show help message of a command
                init    Initialize phpbrew config file.
               known    List known PHP versions
             install    Install php
                list    List installed PHPs
                 use    Use php, switch version temporarily
              switch    Switch default php version.
                each    Iterate and run a given shell command over all php versions managed by PHPBrew.
              config    Edit your current php.ini in your favorite $EDITOR
                info    Show current PHP information
                 env    Export environment variables
           extension    List extensions or execute extension subcommands
            variants    List php variants
                path    Show paths of the current PHP.
                  cd    Change to directories
            download    Download php
               clean    Clean up the source directory of a PHP distribution
              update    Update PHP release source file
               ctags    Run ctags at current php source dir for extension development.
                 fpm    fpm commands
            list-ini    List loaded ini config files.
         self-update    Self-update, default to master version
              remove    Remove installed php build.
               purge    Remove installed php version and config files.
                 off    Temporarily go back to the system php
          switch-off    Definitely go back to the system php
              system    Get or set the internally used PHP binary
          system-off    Use the currently effective PHP binary internally

HELP
        'phpbrew help' lists available subcommands and some topics. See
        'phpbrew help <command>' or 'phpbrew help <topic>' to read about a
        specific subcommand or phpbrew.

phpbrew 2.2.0           powered by https://github.com/c9s/CLIFramework

from phpbrew.

s22-tech avatar s22-tech commented on July 29, 2024

Well, that's strange. I just ran % phpbrew -v again under PHP 8.3.3 and got the same output. These are deprecated warnings - not errors that could be caused by a missing extension or something. 🫤 However, I did update all listed dependencies for phpbrew, but that didn't change anything for me.

I wonder what could be causing this?

from phpbrew.

peter279k avatar peter279k commented on July 29, 2024

Maybe I need to reproduce the issue in the MacOS 13.5(Ventura).

These outputs I generate in the Ubuntu 20.04.

from phpbrew.

peter279k avatar peter279k commented on July 29, 2024

I cannot use the MacOS 13.5 and I try to reproduce this issue in the MacOS 12.2.

It seems that this will be verified because of this reason I found.

The deprecated notice message is not presented in the Ubuntu 20.04 because my PHP package I install turn off the deprecated warning message in the php.ini file by default.

Here are my running command logs:

% sw_vers
ProductName:    macOS
ProductVersion: 12.6.6
BuildVersion:   21G646
% brew tap shivammathur/php
% brew install [email protected]
% brew link --overwrite --force [email protected]
% php -v
PHP 8.2.17 (cli) (built: Mar 14 2024 18:17:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.17, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.17, Copyright (c), by Zend Technologies
% curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar
% chmod +x phpbrew.phar
% sudo mv phpbrew.phar /usr/local/bin/phpbrew
% phpbrew init
%  source /Users/cloudxmac/.phpbrew/bashrc
% phpbrew -v
  ______ _   _ ____________
  | ___ \ | | || ___ \ ___ \
  | |_/ / |_| || |_/ / |_/ /_ __ _____      __
  |  __/|  _  ||  __/| ___ \ '__/ _ \ \ /\ / /
  | |   | | | || |   | |_/ / | |  __/\ V  V /
  \_|   \_| |_/\_|   \____/|_|  \___| \_/\_/

PHP Deprecated:  Callables of the form ["PhpBrew\Command\HelpCommand", "parent::execute"] are deprecated in phar:///usr/local/bin/phpbrew/src/PhpBrew/Command/HelpCommand.php on line 28

Deprecated: Callables of the form ["PhpBrew\Command\HelpCommand", "parent::execute"] are deprecated in phar:///usr/local/bin/phpbrew/src/PhpBrew/Command/HelpCommand.php on line 28
Brew your latest php!

PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/phpbrew/vendor/corneltek/cliframework/src/Command/HelpCommand.php on line 156

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/phpbrew/vendor/corneltek/cliframework/src/Command/HelpCommand.php on line 156

I plan to fix this issue in the next released version. And thanks for your reporting issue.

from phpbrew.

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.