More changes for extension certification process
This commit is contained in:
parent
8c7622eb0b
commit
625c47ab44
2 changed files with 3 additions and 4 deletions
|
@ -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 . '" }';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue