# One fail test in 5.5 branch

- Thread: https://externals.io/message/70406
- Original archive: https://news-web.php.net/php.internals/70406
- Started by Julien Pauli on 2013-11-26T15:49:38+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #70406 — Julien Pauli — 2013-11-26T15:49:38+00:00

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

Hi,

I got one fail test in 5.5, while I was tagging 5.5.7RC1

sapi/cli/tests/php_cli_server_019.phpt

The diff is :

022+   string(12) "PHP/5.5.7RC1"
022-   string(13) "P%s"


Seems like %s does not catch the version number or something like that ?
Not blocking to tag RC1 though, but should be checked and fixed.

Thx.


Julien PAULI

---

## #70407 — Michael Wallner — 2013-11-26T15:53:26+00:00

URL: https://externals.io/message/70406#70407 · In reply to: #70406

> Hi,
>
> I got one fail test in 5.5, while I was tagging 5.5.7RC1
>
> sapi/cli/tests/php_cli_server_019.phpt
>
> The diff is :
>
> 022+   string(12) "PHP/5.5.7RC1"
> 022-   string(13) "P%s"
>
>
> Seems like %s does not catch the version number or something like that ?
> Not blocking to tag RC1 though, but should be checked and fixed.

String length is 12 vs 13.


-- 
Regards,
Mike

---

## #70408 — Julien Pauli — 2013-11-26T16:05:48+00:00

URL: https://externals.io/message/70406#70408 · In reply to: #70407

> 
> > […]
>
> String length is 12 vs 13.
>

Great catch.
However, version string has a variable size, depending on the presence of
extra version (aka : RCx) or not.
I guess something like string(%d) is better then ?

Julien Pauli

---

## #70411 — Julien Pauli — 2013-11-26T17:07:51+00:00

URL: https://externals.io/message/70406#70411 · In reply to: #70408

> 
>
> > […]
>
> Great catch.
> However, version string has a variable size, depending on the presence of
> extra version (aka : RCx) or not.
> I guess something like string(%d) is better then ?
>
> Julien Pauli
>

I patched it and commited it.

Perhaps my pushes on git have not been done the right way, I'm just a
beginner about that. I asked on IRC. Everything seems all right

Julien Pauli

---

## #70431 — Andrea Faulds — 2013-11-26T23:50:45+00:00

URL: https://externals.io/message/70406#70431 · In reply to: #70406

>
> I got one fail test in 5.5, while I was tagging 5.5.7RC1
>
> sapi/cli/tests/php_cli_server_019.phpt
>
> The diff is :
>
> 022+   string(12) "PHP/5.5.7RC1"
> 022-   string(13) "P%s"
>
>
> Seems like %s does not catch the version number or something like that ?
> Not blocking to tag RC1 though, but should be checked and fixed.
>

_019? That sounds awfully familiar. In fact, without checking, I'm 
pretty sure that's my fault. I didn't consider a different string length 
at the time, which was pretty silly of me. My apologies :)

-- 
Andrea Faulds
http://ajf.me/

---

## #70432 — Yasuo Ohgaki — 2013-11-27T04:24:18+00:00

URL: https://externals.io/message/70406#70432 · In reply to: #70406

Hi all,



> sapi/cli/tests/php_cli_server_019.phpt
>
> The diff is :
>
> 022+   string(12) "PHP/5.5.7RC1"
> 022-   string(13) "P%s"
>

Any reason "P%s" instead of "PHP/%s"?
Just curious.

Regards,

--
Yasuo Ohgaki
yohgaki@ohgaki.net
