Mailing List Archive

PHP 8 - removed function get_magic_quotes_gpc()
Hi,
I've got Davical with PHP 8.
When I triy to access to Configuration of the Administration menu of the
web adminnistration page.
PHP return me the error :

Exception [0] Call to undefined function get_magic_quotes_gpc()
At line 154 of /usr/share/webapps/davical/htdocs/setup.php
================= Stack Trace ===================
/usr/share/webapps/davical/htdocs/setup.php[390] build_dependencies_table()
/usr/share/webapps/davical/htdocs/setup.php[359] check_magic_quotes_gpc()

It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and
*REMOVED* as of PHP 8.0.0 as it said here :
https://www.php.net/manual/en/function.get-magic-quotes-gpc.php

A way to solve this problem?

Thanks very much
Re: PHP 8 - removed function get_magic_quotes_gpc() [ In reply to ]
Some comments here:
https://thephp.cc/articles/why-magic-quotes-are-gone-in-php7

And recommendation here:
https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative

El 18/9/21 a les 5:11, Laurent Hoareau ha escrit:
> Hi,
> I've got Davical with PHP 8.
> When I triy to access to Configuration of the Administration menu of the
> web adminnistration page.
> PHP return me the error :
>
> Exception [0] Call to undefined function get_magic_quotes_gpc()
> At line 154 of /usr/share/webapps/davical/htdocs/setup.php
> ================= Stack Trace ===================
> /usr/share/webapps/davical/htdocs/setup.php[390] build_dependencies_table()
> /usr/share/webapps/davical/htdocs/setup.php[359] check_magic_quotes_gpc()
>
> It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and /REMOVED/ as of PHP 8.0.0 as it said here :
> https://www.php.net/manual/en/function.get-magic-quotes-gpc.php <https://www.php.net/manual/en/function.get-magic-quotes-gpc.php>
>
> A way to solve this problem?
>
> Thanks very much
>
>
>
> _______________________________________________
> Davical-general mailing list
> Davical-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/davical-general
>

--


__________
I'm using this express-made address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: PHP 8 - removed function get_magic_quotes_gpc() [ In reply to ]
Some comments here:
https://thephp.cc/articles/why-magic-quotes-are-gone-in-php7

And recommendation here:
https://stackoverflow.com/questions/61054418/php-7-4-deprecated-get-magic-quotes-gpc-function-alternative

El 18/9/21 a les 5:11, Laurent Hoareau ha escrit:
> Hi,
> I've got Davical with PHP 8.
> When I triy to access to Configuration of the Administration menu of the
> web adminnistration page.
> PHP return me the error :
>
> Exception [0] Call to undefined function get_magic_quotes_gpc()
> At line 154 of /usr/share/webapps/davical/htdocs/setup.php
> ================= Stack Trace ===================
> /usr/share/webapps/davical/htdocs/setup.php[390] build_dependencies_table()
> /usr/share/webapps/davical/htdocs/setup.php[359] check_magic_quotes_gpc()
>
> It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and /REMOVED/ as of PHP 8.0.0 as it said here :
> https://www.php.net/manual/en/function.get-magic-quotes-gpc.php <https://www.php.net/manual/en/function.get-magic-quotes-gpc.php>
>
> A way to solve this problem?
>
> Thanks very much
>
>
>
> _______________________________________________
> Davical-general mailing list
> Davical-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/davical-general
>

--


__________
I'm using this express-made address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: PHP 8 - removed function get_magic_quotes_gpc() [ In reply to ]
Hi Laurent,

Migrating to Davical 1.1.10 comes to mind... if possible for you...
https://wiki.davical.org/index.php/Release_Notes/1.1.10

"...eliminate a few instances of syntax deprecated or obsoleted by PHP 8..."

or

Use again PHP 7.x for your current install of Davical...

Those are just suggestions...

Regards,

On 18 September 2021 05:11:19 CEST, Laurent Hoareau <laurent.waro@gmail.com> wrote:
>Hi,
>I've got Davical with PHP 8.
>When I triy to access to Configuration of the Administration menu of the
>web adminnistration page.
>PHP return me the error :
>
>Exception [0] Call to undefined function get_magic_quotes_gpc()
>At line 154 of /usr/share/webapps/davical/htdocs/setup.php
>================= Stack Trace ===================
>/usr/share/webapps/davical/htdocs/setup.php[390] build_dependencies_table()
>/usr/share/webapps/davical/htdocs/setup.php[359] check_magic_quotes_gpc()
>
>It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and
>*REMOVED* as of PHP 8.0.0 as it said here :
>https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
>
>A way to solve this problem?
>
>Thanks very much


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: PHP 8 - removed function get_magic_quotes_gpc() [ In reply to ]
FYI a bug has already been registered about this issue...
https://gitlab.com/davical-project/davical/-/issues/234

On 18 September 2021 09:28:26 CEST, Richard Leger <richard.leger@gmail.com> wrote:
>
>
>Hi Laurent,
>
>Migrating to Davical 1.1.10 comes to mind... if possible for you...
> https://wiki.davical.org/index.php/Release_Notes/1.1.10
>
>"...eliminate a few instances of syntax deprecated or obsoleted by PHP 8..."
>
>or
>
>Use again PHP 7.x for your current install of Davical...
>
>Those are just suggestions...
>
>Regards,
>
>On 18 September 2021 05:11:19 CEST, Laurent Hoareau <laurent.waro@gmail.com> wrote:
>>Hi,
>>I've got Davical with PHP 8.
>>When I triy to access to Configuration of the Administration menu of the
>>web adminnistration page.
>>PHP return me the error :
>>
>>Exception [0] Call to undefined function get_magic_quotes_gpc()
>>At line 154 of /usr/share/webapps/davical/htdocs/setup.php
>>================= Stack Trace ===================
>>/usr/share/webapps/davical/htdocs/setup.php[390] build_dependencies_table()
>>/usr/share/webapps/davical/htdocs/setup.php[359] check_magic_quotes_gpc()
>>
>>It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and
>>*REMOVED* as of PHP 8.0.0 as it said here :
>>https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
>>
>>A way to solve this problem?
>>
>>Thanks very much


_______________________________________________
Davical-general mailing list
Davical-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/davical-general
Re: PHP 8 - removed function get_magic_quotes_gpc() [ In reply to ]
Hey,

The logic is in place to check that magic_quotes is turned off, as for
early versions of DAViCal it was required.

Quick fix is to comment out the two calls to the check_magic_quotes
functions and replace them with:

return new CheckResult(true);

I have pushed a commit which resolves this issue:
https://gitlab.com/davical-project/davical/-/commit/9d520ab56dba5346a88cbf9511e5edb6587d4e22

Thank you for letting us know!

Cheers,
Andrew

On Sat, 2021-09-18 at 07:11 +0400, Laurent Hoareau wrote:
> Hi,
> I've got Davical with PHP 8.
> When I triy to access to Configuration of the Administration menu of
> the web adminnistration page.
> PHP return me the error :
> Exception [0] Call to undefined function get_magic_quotes_gpc()
> At line 154 of /usr/share/webapps/davical/htdocs/setup.php
> ================= Stack Trace ===================
> /usr/share/webapps/davical/htdocs/setup.php[390]
> build_dependencies_table()
> /usr/share/webapps/davical/htdocs/setup.php[359]
> check_magic_quotes_gpc()
>
> It seems that magic_quotes_gpc() was deprecated since PHP 7.4.0, and
> REMOVED as of PHP 8.0.0 as it said here :
> https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
>
> A way to solve this problem?
>
> Thanks very much
> _______________________________________________
> Davical-general mailing list
> Davical-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/davical-general

--
Andrew Ruthven, Wellington, New Zealand
andrew@etc.gen.nz |
Catalyst Cloud: | This space intentionally left blank
https://catalystcloud.nz |