]> granicus.if.org Git - php/commitdiff
MFH: This should fix binary safety for bound results.
authorSara Golemon <pollita@php.net>
Thu, 22 Jul 2004 03:26:59 +0000 (03:26 +0000)
committerSara Golemon <pollita@php.net>
Thu, 22 Jul 2004 03:26:59 +0000 (03:26 +0000)
ext/mysqli/mysqli_api.c

index 231d231109a39c809a11bab10ff248a614065a12..ac5f0b80cd95df234017ee01833a7b8c56263e08 100644 (file)
@@ -629,7 +629,7 @@ PHP_FUNCTION(mysqli_stmt_fetch)
                                                                ZVAL_LONG(stmt->result.vars[i], llval);
                                                        }
                                                } else {
-                                                       ZVAL_STRING(stmt->result.vars[i], stmt->result.buf[i].val, 1); 
+                                                       ZVAL_STRINGL(stmt->result.vars[i], stmt->result.buf[i].val, stmt->result.buf[i].buflen, 1); 
                                                }
                                                break;
                                        default: