[CWB] CQPweb: php error
Hardie, Andrew
a.hardie at lancaster.ac.uk
Tue Feb 23 17:00:40 CET 2021
This is a bit of code present in CQPweb 3.2 but not 3.3 that counteracts ancient PHP security measures that didn't actually work.
It relies on a function that was removed in PHP 8.
I'll patch the 3.2 branch when I get a moment, but if you need it to work quicker, just replace the test on line 1190 of environment.php with this:
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
Please let me know if you encounter any other function-doesn't-exist issues while running on PHP8.
best
Andrew.
________________________________
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> on behalf of Simon Meier-Vieracker <simon.meier-vieracker at tu-dresden.de>
Sent: Tuesday, February 23, 2021 12:59:58 PM
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] CQPweb: php error
Hi Andrew,
me again with some bothering php problems :/
offline-frequencyl-lists.php gives me the following error:
> PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/html/CQPweb/lib/environment.php:1190
> Stack trace:
> #0 /var/www/html/CQPweb/bin/offline-freqlists.php(97): cqpweb_startup_environment()
> #1 {main}
> thrown in /var/www/html/CQPweb/lib/environment.php on line 1190
In line 1190 of environment.php I find something about a test with magic quotes, but I do not understand well what happens here.
Thanks in advance and best regards
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210223/4eb9f4c7/attachment.html>
More information about the CWB
mailing list