# Zend: malloc.h on OS X is incorrect

- Thread: https://externals.io/message/73789
- Original archive: https://news-web.php.net/php.internals/73789
- Started by Kevin Ingwersen on 2014-04-25T01:23:35+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #73789 — Kevin Ingwersen — 2014-04-25T01:23:35+00:00

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

Hey.

I am currently working on using PHP - atm Zend - with cDetect ( http://github.com/IngwiePhoenix/cDetect ) and I noticed that there is a check to a header, which is not going to be true on  OS X.

Zend checks for

	<malloc.h>

But on OS X, this so happens to be
	
	<malloc/malloc.h>

Please note; this is not always the case. If my memory serves right, Apple changed in one or two OS X major versions ago. An additional check and condition against HAVE_MALLOC_MALLOC_H would possibly suit this.

But then again, I have had no issues using PHP ever, although I thought I’d point this out.

I am taking this information off 5.5.11-github.

Kind regards, Ingwie.
