[PHP-DEV] PHP 4.0 Bug #8478: gdcache.h -- malloc.h From: fang-pin.chang <email protected>
Date: 12/29/00

From: fang-pin.chang <email protected>
Operating system: MacOS X Public Beta
PHP version: 4.0.4
PHP Bug Type: Compile Failure
Bug description: gdcache.h -- malloc.h

In ext/gd/gdcache.h, line 43-47, the code says

#ifndef _OSD_POSIX
#include <malloc.h>
#else
#include <stdlib.h> /* BS2000/OSD defines malloc() &
friends in stdlib.h */
#endif

However, under MacOS X Public Beta, [1] _OSD_POSIX
is not defined by the compiler (at least not to my
knowledge), and [2] there is no /usr/include/malloc.h.
These two conditions lead to a compile failure.

Now, by looking at the configure process, I noticed that
there is a check for the existence of malloc.h Perhaps
this file can be modified to use this check or some
other instead?

-- 
Edit Bug report at: http://bugs.php.net/?id=8478&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>