Comments (6)
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.
Thanks for reporting the issue. And the reference is available here.
from phpbrew.
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.
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.
Maybe I need to reproduce the issue in the MacOS 13.5
(Ventura).
These outputs I generate in the Ubuntu 20.04
.
from phpbrew.
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)
- When will PHP 8.2 be supported? HOT 6
- Centos8 install php 8 error
- Cannot switch to PHP v8.2.8 HOT 1
- PHP 8.1.11 (or 12) pgsql pg_config... not found … Cannot find libpq-fe.h HOT 2
- "patch for fix readline detection" is broken HOT 3
- Release workflow may have some problems
- Was 2.2.0 retagged? HOT 1
- bad pattern issue with phpbrew in macos HOT 1
- RuntimeException: Can't decode release json, invalid JSON string: [] HOT 2
- Failed to install php 7.4.33 on Mac HOT 7
- Abnormal termination (Segfaults) when running compiled php 8.2 as FPM process HOT 1
- phpbrew ext install redis: Error: Command failed
- PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated
- PHP 8.1 fails with libxml 2.12.0+ HOT 3
- Php 8.3 fails on EL8 (Rocky 8, Alma 8, Centos8)
- Cache file not created correctly HOT 2
- Bump the minimum PHP version supported HOT 1
- Does phpbrew support offline installation of PHP versions? HOT 3
- Failed to install php 7.4 on Arch Linux HOT 9
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 phpbrew.