Bug #25364 [Com]: sprintf bug
| From: | lildurk25364 at gmail dot com | Date: | Wed, 01 Sep 2021 18:52:50 +0000 |
| Subject: | Bug #25364 [Com]: sprintf bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236333@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=25364&edit=1
ID: 25364
Comment by: lildurk25364 at gmail dot com
Reported by: reha at bilgiparki dot com
Summary: sprintf bug
Status: No Feedback
Type: Bug
Package: Strings related
Operating System: Windows 2000
PHP Version: 4.3.3
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2003-09-08 09:34:36] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-09-02 12:41:02] sniper@php.net
Please provide shorter example. And without those weird characters.
------------------------------------------------------------------------
[2003-09-02 12:35:42] reha at bilgiparki dot com
Description:
------------
I guess that, sprintf function has a bug. Which command damages inserted values or texts.
Reproduce code:
---------------
$ONAYLAMAMAIL = "
<p><strong>Merhaba %s %s</strong><BR>
<BR>
Cenebaz.Com ?yeli?i i?in ba?vurdunuz. ?yeli?inizin kabul edilebilmesi i?in a?a??daki
link'e t?klaman?z gerekmektedir.<BR>
<BR>
Kullan?c? ad? : %s<BR>
?ifreniz : %s<br>
<br>
<strong>?yelik Onay</strong></p>
<table width=\"130\" border=\"1\" cellpadding=\"0\"
cellspacing=\"0\" bordercolor=\"#000000\">
<tr>
<td align=\"center\"><a href=\"http://www.xxx.com/onay.php?member=onayla&durum=onay&kod=%s&kullanici=%s&mail=%s\">?yeli?imi
onayla</a></td>
</tr>
</table>
<p><strong>?yelik ?ptal</strong></p>
<table width=\"130\" border=\"1\" cellpadding=\"0\"
cellspacing=\"0\" bordercolor=\"#000000\">
<tr>
<td align=\"center\"><a href=\"http://www.xxx.com/onay.php?member=iptal&durum=iptal&kod=%s&kullanici=%s&mail=%s\">?yeli?imi
iptal et</a></td>
</tr>
</table>
<br>
<p><font color=\"#FF0000\">Cenebaz ?yesi oldu?unuzda, ?ye panelinden Canl?
Sohbet
i?in kullan?c? yaratabilir ve sohbete hemen kat?labilirsiniz.</font></p>
<p>Sayg?lar?m?zla,<BR>
Cenebaz.Com<BR>
<A HREF='http://www.xxx.com'>http://www.xxx.com</A></p>
";
$member_securitycode = 34567823;
$member_firstname = "xx";
$member_lastname = "xx";
$username = "xx";
$password = "xx";
$member_username = "xx";
$member_mail = "xx@xx.com";
$mesaj = sprintf($ONAYLAMAMAIL, $member_firstname, $member_lastname, $username, $password,
$member_securitycode, $member_username, $member_email, $member_securitycode, $username,
$member_email);
echo $mesaj;
Expected result:
----------------
there should be get right $member_securitycode like 34567823 but sometimes it could be like 3456782
number.. It randomly crops a digit or a char (sometimes more than one char). I have fixed only
loading php4.3.2 version, and the problem is solved.
Actual result:
--------------
I can show the bug to you if you wish. My server is running on php4.3.2 now. Because php4.3.3 has
this bug.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=25364&edit=1