pretty-php icon indicating copy to clipboard operation
pretty-php copied to clipboard

PHP 8.5 beta 3 breaks pretty-php

Open The-Paavo opened this issue 4 months ago • 1 comments

I'm using pretty-php as a VS Code extension and the newest PHP 8.5 beta 3 breaks pretty-php. I know, it's not released or supported yet, but still... 😄

I am not capable of assessing whether this is a bug in PHP 8.5 beta 3, a bug in the pretty-php.phar file, an incompatibility with PHP 8.5, or something else. Previous test versions of PHP worked just fine.

Error message is: pretty-php failed: ! InvalidRuntimeConfigurationException: register_argc_argv must be enabled in phar://C:/Users/paavo/.vscode/extensions/lkrms.pretty-php-0.4.94/bin/pretty-php.phar/vendor/salient/cli/CliApplication.php:60

Image

I tried changing register_argc_argv on and off in php.ini but it didn't make any difference.

This is most likely due this: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_register_argc_argv_ini_directive

VS Code: 1.104.0 / Windows 11 Pretty-PHP ext: 0.4.94 and pretty-php.phar version is what comes bundled with that extension.

The-Paavo avatar Sep 12 '25 07:09 The-Paavo

Thanks for reporting this. Checking in on pretty-php's behaviour on PHP 8.5 has been on my todo list; I'll follow up on this soon.

lkrms avatar Sep 15 '25 09:09 lkrms