Fixed compile warnings.

This commit is contained in:
Ilia Alshanetsky 2003-10-03 01:07:35 +00:00
parent e53b9a6a6f
commit 763b39cc1d
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ void php_dom_throw_error(int error_code, int strict_error TSRMLS_DC)
if (strict_error == 1) {
zend_throw_exception(dom_domexception_class_entry, error_message, error_code TSRMLS_CC);
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, error_message);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", error_message);
}
}
/* }}} end php_dom_throw_error */

View file

@ -1260,7 +1260,7 @@ static void php_mysql_do_query_general(zval **query, zval **mysql_link, int link
/* check possible error */
if (MySG(trace_mode)){
if (mysql_errno(&mysql->conn)){
php_error_docref("http://www.mysql.com/doc" TSRMLS_CC, E_WARNING, mysql_error(&mysql->conn));
php_error_docref("http://www.mysql.com/doc" TSRMLS_CC, E_WARNING, "%s", mysql_error(&mysql->conn));
}
}
RETURN_FALSE;