PHP exec() Error Codes

These are what the exec() error codes mean that are returned in third parameter of exec().

1 – Catchall for general errors.
2 – Misuse of shell builtins.
126 - Command invoked cannot execute. A permission or command not executable problem.
127 - Command not found.
128 - Invalid argument to exit. Exit takes only integer range 0 – 255.
128+n – Fatal error signal “n”.
130 - Script terminated by Control-C.
255* – Exit status out of range. Exit takes only integer range 0 – 255

Leave a comment

2 Comments.

  1. good work, even this is not found in official website

  2. Applying ice to swollen areas and taking anti-inflammatory
    medications may relieve some of the pain. Our
    therapists will provide hands-on therapy to your
    plantar fascia and calf muscles. When insurance companies
    stress preventive health, they always emphasize doctor exams over laboratory tests.