mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed compile warnings.
This commit is contained in:
parent
e53b9a6a6f
commit
763b39cc1d
2 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue