Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 deprecation warnings in administration script #1092

Closed
elrido opened this issue May 21, 2023 · 0 comments · Fixed by #1093
Closed

PHP 8.2 deprecation warnings in administration script #1092

elrido opened this issue May 21, 2023 · 0 comments · Fixed by #1093

Comments

@elrido
Copy link
Contributor

elrido commented May 21, 2023

Steps to reproduce

  1. run the bin/administration script under PHP 8.2

What happens

$ administration -h
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 218
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 267
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 267
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 268
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 269
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 270
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 271
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /srv/bin/administration on line 275
Usage:
  administration [--delete <paste id> | --empty-dirs | --help | --purge | --statistics]

Options:
  -d, --delete      deletes the requested paste ID
  -e, --empty-dirs  removes empty directories (only if Filesystem storage is
                    configured)
  -h, --help        displays this help message
  -p, --purge       purge all expired pastes
  -s, --statistics  reads all stored pastes and comments and reports statistics

What should happen

$ administration -h
Usage:
  administration [--delete <paste id> | --empty-dirs | --help | --purge | --statistics]

Options:
  -d, --delete      deletes the requested paste ID
  -e, --empty-dirs  removes empty directories (only if Filesystem storage is
                    configured)
  -h, --help        displays this help message
  -p, --purge       purge all expired pastes
  -s, --statistics  reads all stored pastes and comments and reports statistics

Basic information

Server address: N/A

Server OS: Alpine 3.18

Webserver: N/A

Browser: N/A

PrivateBin version: 1.5.1

I can reproduce this issue on https://privatebin.net: No (not yet, will be able to once we publish the container image with php 8.2 - doesn't really bother me, though, will just pollute the logs a little)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant