php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8478 gdcache.h -- malloc.h
Submitted: 2000-12-29 11:01 UTC Modified: 2001-01-07 04:23 UTC
From: fang-pin dot chang at cyberdude dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4 OS: MacOS X Public Beta
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fang-pin dot chang at cyberdude dot com
New email:
PHP Version: OS:

 

 [2000-12-29 11:01 UTC] fang-pin dot chang at cyberdude dot com
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 04:23 UTC] sniper@php.net
Fixed in CVS. 

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 22 11:00:01 2026 UTC