iliaa Thu Oct 2 21:07:36 2003 EDT Modified files: /php-src/ext/dom domexception.c /php-src/ext/mysql php_mysql.c Log: Fixed compile warnings. Index: php-src/ext/dom/domexception.c diff -u php-src/ext/dom/domexception.c:1.6 php-src/ext/dom/domexception.c:1.7 --- php-src/ext/dom/domexception.c:1.6 Wed Sep 3 06:48:02 2003 +++ php-src/ext/dom/domexception.c Thu Oct 2 21:07:34 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: domexception.c,v 1.6 2003/09/03 10:48:02 rrichards Exp $ */ +/* $Id: domexception.c,v 1.7 2003/10/03 01:07:34 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -103,7 +103,7 @@ 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 */ Index: php-src/ext/mysql/php_mysql.c diff -u php-src/ext/mysql/php_mysql.c:1.200 php-src/ext/mysql/php_mysql.c:1.201 --- php-src/ext/mysql/php_mysql.c:1.200 Mon Sep 22 19:27:51 2003 +++ php-src/ext/mysql/php_mysql.c Thu Oct 2 21:07:35 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mysql.c,v 1.200 2003/09/22 23:27:51 iliaa Exp $ */ +/* $Id: php_mysql.c,v 1.201 2003/10/03 01:07:35 iliaa Exp $ */ /* TODO: * @@ -1260,7 +1260,7 @@ /* 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php