# parse_date.c needs zend.h

- Thread: https://externals.io/message/21182
- Original archive: https://news-web.php.net/php.internals/21182
- Started by Sebastian Bergmann on 2005-12-12T05:53:28+00:00
- Messages: 5
- 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

---

## #21182 — Sebastian Bergmann — 2005-12-12T05:53:28+00:00

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

After updating my PHP_5_1 checkout and the libxml2/libxslt libraries
 today, the ext/date/lib/parse_date.c source file seems to need an
 #include "zend.h" to find `strncasecmp()`.

 I know that this change has to be made to the corresponding .re file and
 since I do not want to mess with it it would be great if someone else
 could look into this. Thanks!

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #21183 — Jani Taskinen — 2005-12-12T07:02:30+00:00

URL: https://externals.io/message/21182#21183 · In reply to: #21182

What it really needs is strings.h to be included.
     (zend.h is included via php.h anyway)

     --Jani



>
> After updating my PHP_5_1 checkout and the libxml2/libxslt libraries
> today, the ext/date/lib/parse_date.c source file seems to need an
> #include "zend.h" to find `strncasecmp()`.
>
> I know that this change has to be made to the corresponding .re file and
> since I do not want to mess with it it would be great if someone else
> could look into this. Thanks!

---

## #21194 — Sebastian Bergmann — 2005-12-12T19:00:28+00:00

URL: https://externals.io/message/21182#21194 · In reply to: #21183

Jani Taskinen schrieb:
> What it really needs is strings.h to be included.

 It seems to need zend_config.w32.h on Windows, as that is where
 strncasecmp gets #defined.

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #21195 — Jani Taskinen — 2005-12-12T19:55:11+00:00

URL: https://externals.io/message/21182#21195 · In reply to: #21194

>
> Jani Taskinen schrieb:
> > […]
>
> It seems to need zend_config.w32.h on Windows, as that is where
> strncasecmp gets #defined.

     Actually not. This is separate code from PHP/Zend.
     I just committed a potential fix, can you test please?

     --Jani

---

## #21200 — Sebastian Bergmann — 2005-12-12T20:46:20+00:00

URL: https://externals.io/message/21182#21200 · In reply to: #21195

Jani Taskinen schrieb:
> I just committed a potential fix, can you test please?

 Works, thanks.

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
