Return Values
Most of the library functions return a value indicating success or the type of error occurred. The following integer constants can be returned :
- UURET_OK : The action completed successfully.
- UURET_IOERR : An I/O error occurred.
- UURET_NOMEM : Memory resources are exhausted.
- UURET_ILLVAL : You tried to call some operation with invalid parameters.
- UURET_NODATA : An attempt was made to decode a file, but no encoded data was found within its parts.
- UURET_NOEND : A decoding operation was attempted, but the decoded data didn’t have a proper “end” line.
- UURET_UNSUP : You tried to encode using an unsupported communications channel.
- UURET_EXISTS : The target file already exists and overwriting existing files is not allowed.
- UURET_CONT : This is a special return code, indicating that the current operation must be continued.
This return value is used only by two encoding functions (php_uuencodepartial and php_uue_preppartial).
- UURET_CANCEL : The current operation was canceled.