# 64 bit compilation warnings (int/unsigned long mismatch) PHP_4_3

- Thread: https://externals.io/message/7119
- Original archive: https://news-web.php.net/php.internals/7119
- Started by magnus@php.net on 2004-01-15T00:48:07+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

---

## #7119 — magnus@php.net — 2004-01-15T00:48:07+00:00

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

Hello!

I just fixed my alpha (running Tru64 UNIX 5.1) so I could compile PHP on it 
again and checked for ptrmismatch'es in PHP_4_3 and found these.. Maybe they 
are safe to ignore or maybe not.

Configure line:
./configure --disable-all


I'll check HEAD too in a few and report my findings for it too..


cc: Warning: /data/cvs/php/php-src/ext/standard/file.c, line 2316: In this 
statement, the referenced type of the pointer value
"(&buf_len)" is "int", which is not compatible with "unsigned long". 
(ptrmismatch)
         if (php_stream_get_line(stream, buf, len, &buf_len) == NULL) {
-------------^

cc: Warning: /data/cvs/php/php-src/ext/standard/file.c, line 2256: In this 
statement, the referenced type of the pointer value
"(&buf_len)" is "int", which is not compatible with "unsigned long". 
(ptrmismatch)
     if (php_stream_get_line(stream, buf, len, &buf_len) == NULL) {
---------^


/Magnus

-- 
The first thing we do, let's kill all the lawyers.
		-- Wm. Shakespeare, "Henry VI", Part IV
