Menu

#31 [PHP]Support more detailed error message

open
nobody
None
5
2011-12-06
2011-12-06
Jira Trac
No

PHP driver support error messages mainly by CCI. However, it can't give a detailed description about what error happens sometimes even though we have defined some custom error messages. For example:
?php
$conn = cubrid_connect($host, $port, $db, $user, $passwd);

$req = cubrid_query('SELECT * FROM UNKNOWN');

cubrid_close($conn);
?

If the table UNKNOWN is not exist, it will thrown out the error message: Warning: Error: DBMS, -493, Syntax: Unknown class UNKNOWN. SELECT * FROM UNKNOWN in test.php on line 3. But if the program is very long, UNKNOWN table appears many times and in certain condition, UNKNOWN class are created, it is not clear to find the error.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.