pollita Wed Jul 21 23:26:59 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/mysqli mysqli_api.c
Log:
MFH: This should fix binary safety for bound results.
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.87&r2=1.87.2.1&ty=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.87 php-src/ext/mysqli/mysqli_api.c:1.87.2.1
--- php-src/ext/mysqli/mysqli_api.c:1.87 Tue Jul 13 13:04:16 2004
+++ php-src/ext/mysqli/mysqli_api.c Wed Jul 21 23:26:59 2004
@@ -15,7 +15,7 @@
| Author: Georg Richter <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.87 2004/07/13 17:04:16 georg Exp $
+ $Id: mysqli_api.c,v 1.87.2.1 2004/07/22 03:26:59 pollita Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -629,7 +629,7 @@
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:
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php