Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798840 - www-apps/piwigo-11.5.0-r1 with dev-lang/php:8.0 : Call to undefined function get_magic_quotes_gpc()
Summary: www-apps/piwigo-11.5.0-r1 with dev-lang/php:8.0 : Call to undefined function ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-26 23:49 UTC by Karl-Johan Karlsson
Modified: 2021-07-06 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2021-06-26 23:49:00 UTC
Now that dev-php/pecl-imagick supports PHP 8, my Piwigo installation wanted to upgrade to dev-lang/php:8.0, since the Piwigo ebuild has no version restrictions for PHP. However, Piwigo itself very much does not support PHP 8.

The Apache error log is filled with:

PHP Fatal error:  Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/localhost/htdocs/piwigo/creideiki/include/common.inc.php:20
Stack trace:
#0 /var/www/localhost/htdocs/piwigo/creideiki/picture.php(10): include_once()
#1 {main}
  thrown in /var/www/localhost/htdocs/piwigo/creideiki/include/common.inc.php on line 20

There is an open pull request in Piwigo upstream to fix this ( https://github.com/Piwigo/Piwigo/pull/1282 ), but it notices that it is not enough to guarantee PHP 8 support.

Please restrict the RDEPEND in www-apps/piwigo-11.5.0-r1 to <dev-lang/php-8.

Reproducible: Always
Comment 1 Bernard Cafarelli gentoo-dev 2021-07-06 11:45:15 UTC
Thanks for the report, I run piwigo on stable so I did not run into that issue.

Let me update the dependency, nice to see upstream github activity on topic!
Comment 2 Larry the Git Cow gentoo-dev 2021-07-06 11:47:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429b5b99be81862de4155631f440311739d579e9

commit 429b5b99be81862de4155631f440311739d579e9
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2021-07-06 11:46:55 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2021-07-06 11:47:05 +0000

    www-apps/piwigo: does not support php-8 yet
    
    Closes: https://bugs.gentoo.org/798840
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 www-apps/piwigo/piwigo-11.5.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)