We've seen this nasty little issue. The following code
[...]
Thanks for the testcase. Registered as [bug 6062].
will result in
[...]
thought it works fine on
nilsson@khora:~$ pike --dumpversion 7.9.5 nilsson@khora:~$ uname -a Linux khora 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
[...]
Actually it doesn't; the reason it works is that the pike binary is from before April 2011.
According to git bisect (and your testcase), the bug was introduced in commit 90314251db074fc740a2a2b01a9aca1939cd91a4.