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 Deprecation Warnings #81

Closed
cogdog opened this issue Sep 13, 2018 · 3 comments
Closed

PHP Deprecation Warnings #81

cogdog opened this issue Sep 13, 2018 · 3 comments

Comments

@cogdog
Copy link

cogdog commented Sep 13, 2018

Started seeing this warning on phpFlickr site I've run since 2008 http://pechaflickr.net

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor in /home/cogdog/public_html/pechaflickr.net/phpFlickr.php on line 25

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor in /home/cogdog/public_html/pechaflickr.net/phpFlickr.php on line 1702

For now, I am suppressing warnings with

error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));

@samwilson
Copy link

I'm attempting to bring this library up to date, in my fork: https://packagist.org/packages/samwilson/phpflickr The issue of constructors is fixed (there are still other bugs though).

@cogdog
Copy link
Author

cogdog commented Sep 14, 2018 via email

@nighrv
Copy link

nighrv commented Jun 7, 2019

I just upgraded my website to 7.1 from 5.6 as recommended by Joomla CMS 3.9. I converted all my old bespoke code that depended on mysql to mysqli.
I wrote several unsigned searches. This is one example. http://www.friendsofsilverbrook.org/site4/photos/photo-search

Now I see the following in my server logs:

[07-Jun-2019 18:22:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor in /home3/frien130/php/FlickrAPI/phpFlickr.php on line 25
[07-Jun-2019 18:22:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor in /home3/frien130/php/FlickrAPI/phpFlickr.php on line 1702

I wasn't brave enough to go up to PHP 7.3 yet. I'll give the samwilson fork a go.

Thanks!

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

No branches or pull requests

4 participants