# HEAD tests broken under Windows

- Thread: https://externals.io/message/38175
- Original archive: https://news-web.php.net/php.internals/38175
- Started by Steph Fox on 2008-06-12T02:32:25+00:00
- Messages: 1
- 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

---

## #38175 — Steph Fox — 2008-06-12T02:32:25+00:00

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

Hi all,

I'm hopeful that run-tests.php will now work as advertised under CVS HEAD in 
most places. However it's still not right under Windows, and I finally 
tracked that down to the fact that `file_put_contents()` in PHP 6 will insist 
on creating a file with DOS line endings. The test files are created from 
.phpt --FILE-- sections using `file_put_contents()`, so there are a vast 
number of fails under doze due to an extra character in output strings 
there.

There's a *closed* PHP bug on this which was raised by Zoe over a year ago, 
see http://bugs.php.net/bug.php?id=41609. For some obscure reason it was 
seen as a documentation problem at the time. This is an extreme change in 
behaviour, not a documentation problem, and needs proper analysis.

Could someone please look into it?

Thanks,

- Steph
