|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-07 17:16 UTC] scottmac@php.net
[2009-01-07 17:22 UTC] felipe@php.net
[2009-01-07 19:19 UTC] wharmby at uk dot ibm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
Description: ------------ Duplicate warning messages issued by quoted_printable_decode () when invalid input supplied: Problem only on 5.3; PHP 5.2 and 6 code OK. Fix is to remove the call to WRONG_PARAM_COUNT on line 206 of quot_print.c and replace with a "return" as in following patch. ### Eclipse Workspace Patch 1.0 #P php-5.3 Index: ext/standard/quot_print.c =================================================================== RCS file: /repository/php-src/ext/standard/quot_print.c,v retrieving revision 1.29.2.2.2.1.2.5 diff -u -r1.29.2.2.2.1.2.5 quot_print.c --- ext/standard/quot_print.c 31 Dec 2008 11:15:45 -0000 1.29.2.2.2.1.2.5 +++ ext/standard/quot_print.c 7 Jan 2009 16:53:40 -0000 @@ -203,7 +203,7 @@ int arg1_len, i = 0, j = 0, k; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg1, &arg1_len) == FAILURE) { - WRONG_PARAM_COUNT; + return; } if (arg1_len == 0) { Reproduce code: --------------- <?php quoted_printable_decode("", true); ?> Expected result: ---------------- Warning: quoted_printable_decode() expects exactly 1 parameter, 2 given in <script path> on line 3 Actual result: -------------- Warning: quoted_printable_decode() expects exactly 1 parameter, 2 given in <script path> on line 3 Warning: Wrong parameter count for quoted_printable_decode() in <script path> on line 3