More changes for extension certification process

This commit is contained in:
privet.fun 2023-10-08 09:46:16 -07:00
parent 8c7622eb0b
commit 625c47ab44
2 changed files with 3 additions and 4 deletions

View file

@ -64,9 +64,7 @@ class scriptexecute extends GenericController
// Make sure that exe is enabled in /etc/php/8.2/fpm/pool.d/phpbb_pool.conf file // Make sure that exe is enabled in /etc/php/8.2/fpm/pool.d/phpbb_pool.conf file
// See line php_admin_value[disable_functions] = // See line php_admin_value[disable_functions] =
unset($output); unset($output);
// Uncomment this line if you are planning to use this controller. // Code removed, see 1.0.5
// If was commented out to pass phpBB extension certification process.
// exec($execute, $output, $result_code);
} catch (\Exception $e) { } catch (\Exception $e) {
$result->response = '{ "error" : "' . $e . '" }'; $result->response = '{ "error" : "' . $e . '" }';
} }

View file

@ -80,7 +80,8 @@ class AIController
$streamedResponse = new StreamedResponse(); $streamedResponse = new StreamedResponse();
$streamedResponse->headers->set('X-Accel-Buffering', 'no'); $streamedResponse->headers->set('X-Accel-Buffering', 'no');
$streamedResponse->setCallback(function () { $streamedResponse->setCallback(function () {
echo 'Processing'; // Uncomment to debug callback response
// echo 'Processing';
flush(); flush();
}); });
$streamedResponse->send(); $streamedResponse->send();