# Compile error in PHP5 main/network.c

- Thread: https://externals.io/message/9028
- Original archive: https://news-web.php.net/php.internals/9028
- Started by Mark Spruiell on 2004-04-09T19:15:01+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

---

## #9029 — Sara Golemon — 2004-04-09T19:13:32+00:00

URL: https://externals.io/message/9028#9029 · In reply to: #9028

Sure does look like it.... Probably just a copy/paste mistake.

I want to test it a bit first, but initially I'd say something more like:
if (error_code && *error_code == ....  since we aren't guaranteed that
error_code is non-NULL.

Thanks, I'll get this into CVS and double check PHP4 as well.

-Sara

"Mark Spruiell" <mes@zeroc.com> wrote in message
news:2407.192.168.1.104.1081538101.squirrel@192.168.1.2...
> Line 829 in main/network.c causes a compile error on HP-UX:
>
>             if (err == PHP_TIMEOUT_ERROR_VALUE) {
>
> I believe this line should instead read
>
>             if (*error_code == PHP_TIMEOUT_ERROR_VALUE) {
>
> I verified that this is present in the most recent snapshot.
>
> - Mark

---

## #9028 — Mark Spruiell — 2004-04-09T19:15:01+00:00

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

Line 829 in main/network.c causes a compile error on HP-UX:

            if (err == PHP_TIMEOUT_ERROR_VALUE) {

I believe this line should instead read

            if (*error_code == PHP_TIMEOUT_ERROR_VALUE) {

I verified that this is present in the most recent snapshot.

- Mark
