# [PATCH] Compile head on Win32

- Thread: https://externals.io/message/22913
- Original archive: https://news-web.php.net/php.internals/22913
- Started by Frank M. Kromann on 2006-04-21T20:40:31+00:00
- Messages: 2
- 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

---

## #22913 — Frank M. Kromann — 2006-04-21T20:40:31+00:00

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

Hello Everyone,

Here is a patch that makes it possible to compile HEAD on win32.

http://kromann.info/diff-file.c

php_stream_get_line_ex() and php_stream_get_line() are both defined as
macros where the buf parameter is replaced with ZSTR(buf). Setting buf to
NULL_ZSTR causes the function to be called with ZSTR(NULL_ZSTR) and that
does not make any sence.

Please let me know if it's ok to commit this.

- Frank

---

## #22914 — Rob Richards — 2006-04-21T20:59:07+00:00

URL: https://externals.io/message/22913#22914 · In reply to: #22913

If this patch is used to fix the build, the same change need to be made in:
ext/spl/spl_directory.c
ext/standard/image.c (php_stream_gets)
sapi/cli/php_cli.c (php_stream_gets)

Frank M. Kromann wrote:
> Hello Everyone,
>
> Here is a patch that makes it possible to compile HEAD on win32.
>
> http://kromann.info/diff-file.c
>
> php_stream_get_line_ex() and php_stream_get_line() are both defined as
> macros where the buf parameter is replaced with ZSTR(buf). Setting buf to
> NULL_ZSTR causes the function to be called with ZSTR(NULL_ZSTR) and that
> does not make any sence.
>
> Please let me know if it's ok to commit this.
>
> - Frank
