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

Deprecated php warning #10894

Closed
xf- opened this issue Aug 27, 2018 · 2 comments
Closed

Deprecated php warning #10894

xf- opened this issue Aug 27, 2018 · 2 comments

Comments

@xf-
Copy link

xf- commented Aug 27, 2018

Steps to reproduce

  1. Use nextcloud

Expected behaviour

No Warning/log entry

Actual behaviour

Log entry on every page

Server configuration

Operating system: Debian stretch

Web server: nginx

Database: mariadb

PHP version: 7.3.0 Beta2

Nextcloud version: (see Nextcloud admin page) 14 RC 1

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated at 

PS: PHP 7.3 works really well & fast!

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8265 (php/mcrypt has been deprecated), #5917 (Warning: PHP Opcache not properly configured), #5044 (Security & setup warnings > Which php.ini to edit?), #6784 (Php error?), and #10744 (Update help.php).

@patschi
Copy link
Member

patschi commented Sep 3, 2018

I was able to see same behavior with 14 RC2 as well. Apparently both flags FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED are now deprecated starting with PHP 7.3 and are implied in FILTER_VALIDATE_URL anyway. So it should be save just removing the flags from filter_var() calls.

Some resources to check:

nickvergessen added a commit that referenced this issue Sep 13, 2018
…r-deprecation

Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894
patschi added a commit that referenced this issue Sep 16, 2018
Signed-off-by: Patrik Kernstock <info@pkern.at>
nickvergessen added a commit that referenced this issue Sep 17, 2018
[stable14] Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants