Skip to content

PHP 8.5 compilation issues #1403

Description

@lminost

Hi,

Currently trying to compile v8.5.3 of PHP with PHPBrew v2.2.0 and failed with :

`PHP Deprecated: CLIFramework\Application::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Application.php on line 103

Deprecated: CLIFramework\Application::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Application.php on line 103
PHP Deprecated: CLIFramework\Application::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Application.php on line 103

Deprecated: CLIFramework\Application::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Application.php on line 103
PHP Deprecated: CLIFramework\CommandBase::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/CommandBase.php on line 86

Deprecated: CLIFramework\CommandBase::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/CommandBase.php on line 86
PHP Deprecated: CLIFramework\Logger::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Logger.php on line 75

Deprecated: CLIFramework\Logger::__construct(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Logger.php on line 75
PHP Deprecated: GetOptionKit\OptionResult::create(): Implicitly marking parameter $arguments as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/getoptionkit/src/OptionResult.php on line 145

Deprecated: GetOptionKit\OptionResult::create(): Implicitly marking parameter $arguments as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/getoptionkit/src/OptionResult.php on line 145
PHP Deprecated: CLIFramework\Command::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Command.php on line 30

Deprecated: CLIFramework\Command::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Command.php on line 30
PHP Deprecated: CLIFramework\Command\output(): Implicitly marking parameter $opts as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Command/MetaCommand.php on line 39

Deprecated: CLIFramework\Command\output(): Implicitly marking parameter $opts as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/cliframework/src/Command/MetaCommand.php on line 39
Downloading https://github.com/php/pecl-networking-gearman/archive/master.tar.gz via curl extension
PHP Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/curlkit/src/CurlKit/CurlDownloader.php on line 179

Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/curlkit/src/CurlKit/CurlDownloader.php on line 179
Redirecting to https://codeload.github.com/php/pecl-networking-gearman/tar.gz/refs/heads/master
PHP Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/curlkit/src/CurlKit/CurlDownloader.php on line 186

Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 in phar:///usr/bin/phpbrew-v2.2.0/vendor/corneltek/curlkit/src/CurlKit/CurlDownloader.php on line 186
===> Extracting to /opt/phpbrew/build/php-8.5.3/ext...
===> Rename source directory to /opt/phpbrew/build/php-8.5.3/ext/gearman...
[ ] gearman extension is already disabled for SAPI .
[ ] gearman extension is already disabled for SAPI .
PHP Deprecated: PhpBrew\Extension\ExtensionInstaller::__construct(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/src/PhpBrew/Extension/ExtensionInstaller.php on line 17

Deprecated: PhpBrew\Extension\ExtensionInstaller::__construct(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/src/PhpBrew/Extension/ExtensionInstaller.php on line 17
===> Installing gearman extension...
PHP Deprecated: PhpBrew\Tasks\BaseTask::__construct(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/src/PhpBrew/Tasks/BaseTask.php on line 21

Deprecated: PhpBrew\Tasks\BaseTask::__construct(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in phar:///usr/bin/phpbrew-v2.2.0/src/PhpBrew/Tasks/BaseTask.php on line 21`

Was having the same behaviour with PHP 8.5.2 a few weeks ago, but PHP 8.5.1 compilation was working.

Available for others informations/debug if necessary.

Regards,

Laurent

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions