These functions differ from the PHP standard in that they typically return strings indicating status. For instance, ccvs_new() returns the string OK on success. This means that you can't use normal Boolean tests to check return values; you must compare them against the strings from the following table.
|
OK
|
The function completed successfully.
|
|
bad invoice
|
The attempted operation was not possible for the given invoice.
|
|
comm error
|
There was an error in communication.
|
|
data problem
|
Internal database failure; for instance, data corruption or a full disk.
|
|
duplicate invoice
|
An operation was attempted that would have resulted in an existing invoice being duplicated, or that may only be done once per invoice and has already been done to this invoice.
|
|
invalid request
|
The attempted operation has no meaning in this context.
|
|
syntax error
|
There was a syntax error in the given arguments.
|
|
uninitialized
|
The given session ID does not refer to an initialized session.
|
|
unknown
|
An unknown error occurred.
|