What does PHP exit status 255 stand for?

1149245 pts.
Tags:
PHP
We have a PHP binary and we've been trying to execute several PHP scripts but most of them don't go through without any errors. Here's the returned status code for my process: 255. Does anyone know what this means? Thanks!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    It can mean anything, or it can mean that an error happened but wasn't reported because error reporting was disabled.

    '255' is a valid value for a PHP exit status, so the first thing to do is verify whether any part of the script sets it. It's pretty bad practice to use '255' since it's documented as 'reserved', so any script that uses it should be modified to use a different value.

    If it's not explicitly set, then PHP configuration should be checked to see if error reporting is disabled, e.g., your php.ini has display_errors = Off.

    There are other possibilities such as redirection of error output.

    Unless we know more about the environment (Windows? Linux? distro? etc.), and unless we can see the script itself, there's not much that can be said about what '255' means.
    35,970 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: