# [PATCH] Fix Bug #46145

- Thread: https://externals.io/message/40675
- Original archive: https://news-web.php.net/php.internals/40675
- Started by Ilia Cheishvili on 2008-09-25T05:20:14+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #40675 — Ilia Cheishvili — 2008-09-25T05:20:14+00:00

URL: https://externals.io/message/40675#40675

Hey all,

This patch addresses the *printf() bug when dealing with exponents (%e).
See http://bugs.php.net/bug.php?id=46145 for more details.

The patch is large because there were a lot of unit tests written to expect
the wrong behavior, so I had to update them.  I realize that there is the
possibility that we might decide to label this as a "won't fix", but I
figured I might as well put forth the effort :)

Ilia

---

## #40678 — Jani Taskinen — 2008-09-25T06:27:44+00:00

URL: https://externals.io/message/40675#40678 · In reply to: #40675

Ilia Cheishvili wrote:
> Hey all,
> 
> This patch addresses the *printf() bug when dealing with exponents 
> (%e).  See http://bugs.php.net/bug.php?id=46145 for more details.
> 
> The patch is large because there were a lot of unit tests written to 
> expect the wrong behavior, so I had to update them.  I realize that 
> there is the possibility that we might decide to label this as a "won't 
> fix", but I figured I might as well put forth the effort :)

You can always make separate patches (preferred) for tests and code 
changes. :)

When did it start misbehaving anyway? If it was like that all the time 
-> wont fix, depending of course how long %e has existed..

--Jani

---

## #40686 — Ilia Cheishvili — 2008-09-25T15:59:54+00:00

URL: https://externals.io/message/40675#40686 · In reply to: #40678

According to CVS, it has been that way since at least April of 2002.  The
last time anyone touched it was a year and a half ago to clean up
whitespace.
So you're right, this very well may be a "won't fix".  In that case, let's
mark it as such.

Ilia

On Thu, Sep 25, 2008 at 12:27 AM, Jani Taskinen <jani.taskinen@sci.fi>wrote:

> Ilia Cheishvili wrote:
>
> > […]
>
> You can always make separate patches (preferred) for tests and code
> changes. :)
>
> When did it start misbehaving anyway? If it was like that all the time ->
> wont fix, depending of course how long %e has existed..
>
> --Jani
