« People | Main | Blog Spam »

October 28, 2003

Panther and PHP

To those wondering or worried, it seems that the next PHP 4.x release will allow the building of Panther out of the tarball. As will future release of PHP 5 snapshots (I don't believe that Beta2 was able to get the fix in time).

Regardless the fix is pretty easy for those of you who want to try it. Set the CPPFLAGS variable before configuring, giving it the option "-DBIND_8_COMPAT" (minus the quotes) and you should see it compile. This should also work for older versions of PHP and Panther mixed.

Other points of note on Panther based builds of PHP to realize include the fact that IPv6 support does not exist in the 4.x release tree. There should be support for it in the PHP 5 branch though. The main reason this isn't being included in the PHP 4.x branch at this time is we are unable to assure that this change won't break things on other platforms. The issue at hand was, under Jaguar (and earlier) the system would verify that it had a IPv6 system, but when there were attempts to use it, the inet_pton() function was missing. The simple solution was to limit OS X to IPv4 until Apple fixed this. They did in Panther. Unfortunately to now fix this in the PHP source requires changing the code from a #if /***/ && !defined(__MacOSX__) to a #if /****/ && defined(HAVE_INET_PTON), it's the configure test that we're unsure of (and it's mostly under Solaris that we're not sure about). If you can test the PHP5 head snapshots on Solaris we might even be able to port this patch back, that is if we can convince Ilia it's safe.

Posted by Dan at October 28, 2003 01:45 PM

Comments