← All docs

pcntl_strerror()

Returns the system message for a PCNTL errno value.

pcntl_strerror()

function pcntl_strerror(int $error_code): string

Returns the system message for a PCNTL errno value.

Parameters:

  • $error_code (int)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable
  • Compiled code can call it on the three executable/release hosts (macOS ARM64, Linux ARM64, and Linux x86_64); calls are refused at compile time for iOS library targets.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how pcntl_strerror is implemented in the compiler, see the internals page.