We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you execute Artisan::call('migrate') from web, on AlterVista (shared hosting)
Artisan::call('migrate')
Route::get('/CatLink/artisan/migrate', function () { Artisan::call('migrate'); return Artisan::output(); });
because the PHP 8.2 function proc_open exists and returns false (was all ok with PHP 7.3)
proc_open
false
PHP 7.3 function_exists('proc_open') --> FALSE PHP 8.2 function_exists('proc_open') --> TRUE
but this is a problem here:
// vendor/symfony/console/Terminal.php:220 private static function readFromProcess(string|array $command): ?string { if (!\function_exists('proc_open')) { return null; } $descriptorspec = [ 1 => ['pipe', 'w'], 2 => ['pipe', 'w'], ]; $cp = \function_exists('sapi_windows_cp_set') ? sapi_windows_cp_get() : 0; $process = proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]); if (!\is_resource($process)) { return null; } $info = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); if ($cp) { sapi_windows_cp_set($cp); } return $info; }
The text was updated successfully, but these errors were encountered:
💡 Note: a possible **workaround** for the issue #1
17bfc48
No branches or pull requests
When you execute
Artisan::call('migrate')
from web, on AlterVista (shared hosting)because the PHP 8.2 function
proc_open
exists and returnsfalse
(was all ok with PHP 7.3)but this is a problem here:
The text was updated successfully, but these errors were encountered: