|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-21 14:01 UTC] mike@php.net
[2006-02-22 02:36 UTC] chen dot daqi at gmail dot com
[2006-02-22 08:35 UTC] tony2001@php.net
[2006-03-02 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
Description: ------------ Hi, when I set $preferences['line-length'] = -1, iconv_mime_encode will get segmentation fault on linux. Reproduce code: --------------- <?php $preferences = array( "scheme" => "B", "input-charset" => "ISO8859-1", "output-charset" => "UTF-8", "line-length" => 76, "line-break-chars" => "\n" ); $preferences["line-length"] = -1; var_dump(iconv_mime_encode("Subject", "This is encode test ", $preferences)); ?> Expected result: ---------------- Just a warning of line-length can't be less than 0 Actual result: -------------- Segmentation fault