<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
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.
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
It relies on a function that was removed in PHP 8.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
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:<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<font color="#00ff00">if</font> (function_exists('get_magic_quotes_gpc') && <font color="#00ff00">
get_magic_quotes_gpc</font>()) <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Please let me know if you encounter any other function-doesn't-exist issues while running on PHP8.
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
best <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Andrew.<br>
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="ms-outlook-android-cursor"></span><br>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> cwb-bounces@sslmit.unibo.it <cwb-bounces@sslmit.unibo.it> on behalf of Simon Meier-Vieracker <simon.meier-vieracker@tu-dresden.de><br>
<b>Sent:</b> Tuesday, February 23, 2021 12:59:58 PM<br>
<b>To:</b> Open source development of the Corpus WorkBench <cwb@sslmit.unibo.it><br>
<b>Subject:</b> Re: [CWB] CQPweb: php error</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
Hi Andrew,<br>
<br>
me again with some bothering php problems :/<br>
<br>
offline-frequencyl-lists.php gives me the following error:<br>
<br>
> PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/html/CQPweb/lib/environment.php:1190<br>
> Stack trace:<br>
> #0 /var/www/html/CQPweb/bin/offline-freqlists.php(97): cqpweb_startup_environment()<br>
> #1 {main}<br>
> thrown in /var/www/html/CQPweb/lib/environment.php on line 1190<br>
<br>
In line 1190 of environment.php I find something about a test with magic quotes, but I do not understand well what happens here.<br>
<br>
Thanks in advance and best regards<br>
Simon</div>
</span></font></div>
</body>
</html>