cvs: php4 /ext/standard filters.c
| From: | Moriyoshi Koizumi | Date: | Wed, 15 Jan 2003 15:05:18 +0000 |
| Subject: | cvs: php4 /ext/standard filters.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17927@lists.php.net to get a copy of this message | ||
moriyoshi Wed Jan 15 10:05:18 2003 EDT
Modified files:
/php4/ext/standard filters.c
Log:
Fixed a qp encoder bug that the constructor sometimes fails if
line-breaking mode is off.
Index: php4/ext/standard/filters.c
diff -u php4/ext/standard/filters.c:1.18 php4/ext/standard/filters.c:1.19
--- php4/ext/standard/filters.c:1.18 Tue Jan 14 11:42:18 2003
+++ php4/ext/standard/filters.c Wed Jan 15 10:05:17 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filters.c,v 1.18 2003/01/14 16:42:18 moriyoshi Exp $ */
+/* $Id: filters.c,v 1.19 2003/01/15 15:05:17 moriyoshi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -838,7 +838,7 @@
static php_conv_err_t php_conv_qprint_encode_ctor(php_conv_qprint_encode *inst, unsigned int
line_len, const char *lbchars, size_t lbchars_len, int lbchars_dup, int opts, int persistent)
{
- if (line_len < 4) {
+ if (line_len < 4 && lbchars != NULL) {
return PHP_CONV_ERR_TOO_BIG;
}
inst->_super.convert_op = (php_conv_convert_func) php_conv_qprint_encode_convert;