diff options
author | Georg Richter <georg@php.net> | 2005-01-07 14:59:59 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2005-01-07 14:59:59 +0000 |
commit | 0b4c108bd78fff03e49b0be3934dd3c926fed589 (patch) | |
tree | 88ad589275108626383326a4151166524044f366 /ext/mysqli/mysqli_report.c | |
parent | 05adbd51b47b90ebfcfeab7d97f4c2b4d28e4065 (diff) | |
download | php-git-0b4c108bd78fff03e49b0be3934dd3c926fed589.tar.gz |
Added new classes:
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
Diffstat (limited to 'ext/mysqli/mysqli_report.c')
-rw-r--r-- | ext/mysqli/mysqli_report.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli_report.c b/ext/mysqli/mysqli_report.c index a21d21a9f0..e7d5202b71 100644 --- a/ext/mysqli/mysqli_report.c +++ b/ext/mysqli/mysqli_report.c @@ -46,7 +46,7 @@ PHP_FUNCTION(mysqli_report) /* {{{ void php_mysqli_report_error(char *sqlstate, int errorno, char *error) */ void php_mysqli_report_error(char *sqlstate, int errorno, char *error TSRMLS_DC) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error (%s/%d): %s", sqlstate, errorno, error); + php_mysqli_throw_sql_exception(sqlstate, errorno TSRMLS_CC, error); } /* }}} */ @@ -61,7 +61,7 @@ void php_mysqli_report_index(char *query, unsigned int status TSRMLS_DC) { } else { return; } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s used in query/prepared statement %s", index, query); + php_mysqli_throw_sql_exception("00000", 0 TSRMLS_CC, "%s used in query/prepared statement %s", index, query); } /* }}} */ |