You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Call to undefined function cli_set_process_title() #587
It is referring to the PHP official cli-sapi, which FrankenPHP (apparently) does not fully implement, and I'm not sure that it should, IMHO, since it does many slightly interesting things, such as setting different constants for i/o streams, how the working directory is applied, etc.
Laravel probably shouldn't blindly call a function only available in a specific SAPI without checking that it exists first, but FrankenPHP also probably shouldn't impersonate the official CLI SAPI.
I have same problem. The problem is more complex. I have define cli_set_process_title after !function_esists() in helpers with return false; artisan tinker start without errors but i have problem with coding charset
/opt/webserver/bin/frankenphp php-cli artisan tinker
Psy Shell v0.12.9 (PHP 8.4.8 — cli) by Justin Hileman
Error Call to undefined function cli_set_process_title().
if (!\function_exists('cli_set_process_title'))
{
function cli_set_process_title($title)
{
return false;
}
}
Activity
withinboredom commentedon Feb 20, 2024
It is referring to the PHP official cli-sapi, which FrankenPHP (apparently) does not fully implement, and I'm not sure that it should, IMHO, since it does many slightly interesting things, such as setting different constants for i/o streams, how the working directory is applied, etc.
Laravel probably shouldn't blindly call a function only available in a specific SAPI without checking that it exists first, but FrankenPHP also probably shouldn't impersonate the official CLI SAPI.
@dunglas, how do you feel one way or the other?
dunglas commentedon Feb 20, 2024
Copy/pasting this function in FrankenPHP should do the trick.
sawirricardo commentedon Mar 14, 2024
what do you mean by copy/pasting?
dunglas commentedon Mar 14, 2024
Copy/pasting the C implementation of this function coming from the official PHP CLI SAPI.
sawirricardo commentedon Mar 15, 2024
So is there we can do in the userland? or is it done on the library side?
dunglas commentedon Mar 15, 2024
This should be done in
frankenphp.cin this repo.I'm concentrating on hunting down the remaining bugs, but then I'll work on this if no one else does it first!
emkcloud commentedon Jun 28, 2025
I have same problem. The problem is more complex. I have define cli_set_process_title after !function_esists() in helpers with return false; artisan tinker start without errors but i have problem with coding charset
henderkes commentedon May 28, 2026
tracked by php/php-src#21385