]> granicus.if.org Git - php/commitdiff
Updating test to reflect the latest and more verbose mysqlnd error messages, updating...
authorUlf Wendel <uw@php.net>
Mon, 31 May 2010 13:56:42 +0000 (13:56 +0000)
committerUlf Wendel <uw@php.net>
Mon, 31 May 2010 13:56:42 +0000 (13:56 +0000)
ext/mysqli/tests/mysqli_poll_kill.phpt
ext/mysqlnd/mysqlnd_wireprotocol.c

index fa70f68cdb8f5d974a4c0d10c2b40c659ce7798b..800521aa7cdc058a57c39673b72aec3c88db0320 100644 (file)
@@ -183,15 +183,16 @@ array(1) {
   %unicode|string%(1) "1"
 }
 
-Warning: mysqli_reap_async_query(): RSET_HEADER %
+Warning: mysqli_reap_async_query(): Premature end of data (mysqlnd_wireprotocol.c:%d) in %s on line %d
 
-Warning: mysqli_reap_async_query(): MySQL server has gone away in %s on line %d
-[014] 2014/%s
+Warning: mysqli_reap_async_query(): RSET_HEADER %s
 
-Warning: Error while sending QUERY packet. PID=%d in %s on line %d
+Warning: mysqli_reap_async_query(): Error reading result set's header in %s on line %d
+
+Warning: Error while sending QUERY packet. %s
 
-Warning: mysqli_reap_async_query(): MySQL server has gone away in %s on line %d
+Warning: mysqli_reap_async_query(): %s
 
 Warning: mysqli_reap_async_query(): Error reading result set's header in %s on line %d
-[018] Error: 2006/%s
-done!
+[018] Error: %d/%s
+done!
\ No newline at end of file
index af8a4a95da2f37da53cc709ee7388f5577f85d88..2896c31280ac726f28a022590e7ed9e8886cb070 100644 (file)
@@ -63,7 +63,7 @@
 
 #define BAIL_IF_NO_MORE_DATA \
        if ((size_t)(p - begin) > packet->header.size) { \
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "At line %d", __LINE__); \
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Premature end of data (mysqlnd_wireprotocol.c:%d)", __LINE__); \
                goto premature_end; \
        } \
 
@@ -826,7 +826,7 @@ php_mysqlnd_rset_header_read(void *_packet, MYSQLND *conn TSRMLS_DC)
                                packet->info_or_local_file_len = len;
                        } else {
                                SET_OOM_ERROR(conn->error_info);
-                               ret = FAIL;     
+                               ret = FAIL;
                        }
                        break;
                case 0x00:
@@ -1026,7 +1026,7 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
                meta->def = mnd_pemalloc(len + 1, packet->persistent_alloc);
                if (!meta->def) {
                        SET_OOM_ERROR(conn->error_info);
-                       DBG_RETURN(FAIL);               
+                       DBG_RETURN(FAIL);
                }
                memcpy(meta->def, p, len);
                meta->def[len] = '\0';
@@ -1038,9 +1038,9 @@ php_mysqlnd_rset_field_read(void *_packet, MYSQLND *conn TSRMLS_DC)
        root_ptr = meta->root = mnd_pemalloc(total_len, packet->persistent_alloc);
        if (!root_ptr) {
                SET_OOM_ERROR(conn->error_info);
-               DBG_RETURN(FAIL);       
+               DBG_RETURN(FAIL);
        }
-       
+
        meta->root_len = total_len;
        /* Now do allocs */
        if (meta->catalog && meta->catalog != mysqlnd_empty_string) {