svn: /pecl/mysqlnd_ms/trunk/ mysqlnd_ms_filter_user.c
| From: | Andrey Hristov | Date: | Thu, 08 Dec 2011 16:01:09 +0000 |
| Subject: | svn: /pecl/mysqlnd_ms/trunk/ mysqlnd_ms_filter_user.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-17331@lists.php.net to get a copy of this message | ||
andrey Thu, 08 Dec 2011 16:01:09 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320674
Log:
fix failures on Ubuntu 11.04 - gcc was crazy doing a jump 100 instructions further..
the craziest debugging I ever had
Changed paths:
U pecl/mysqlnd_ms/trunk/mysqlnd_ms_filter_user.c
Modified: pecl/mysqlnd_ms/trunk/mysqlnd_ms_filter_user.c
===================================================================
--- pecl/mysqlnd_ms/trunk/mysqlnd_ms_filter_user.c 2011-12-08 15:59:27 UTC (rev 320673)
+++ pecl/mysqlnd_ms/trunk/mysqlnd_ms_filter_user.c 2011-12-08 16:01:09 UTC (rev 320674)
@@ -456,8 +456,8 @@
retval = mysqlnd_ms_call_handler(filter_data->user_callback, param + 1, args, FALSE /*we
destroy later*/, error_info TSRMLS_CC);
if (retval) {
if (Z_TYPE_P(retval) != IS_ARRAY) {
+ char error_buf[256];
DBG_ERR("The user returned no array");
- char error_buf[256];
snprintf(error_buf, sizeof(error_buf), MYSQLND_MS_ERROR_PREFIX " User multi filter
callback has not returned a list of servers to use. The callback must return an array");
error_buf[sizeof(error_buf) - 1] = '\0';
SET_CLIENT_ERROR((*error_info), CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, error_buf);