CCVS Error Strings

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.

String Description
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 ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.