Re: [PECL-DEV] Endianness in PHP

[email protected] (Johannes Schlüter)
Newsgroups php.pecl.dev
Message-ID <1281614751.974.37.camel@guybrush>
On Thu, 2010-08-12 at 13:50 +0200, Pierre Joye wrote:
> 2010/8/12 Johannes Schlüter <[email protected]>:
> > Hi,
> >
> > On Thu, 2010-08-12 at 11:42 +0100, Melanie Rhianna Lewis wrote:
> >> You can easily detect endianness as follows:
> >>
> >> Either:
> > [...]
> >
> > Please don't reinvent the wheel. As said in my other mail we have a
> > compile time constant for this already.
> >
> > And yes, for all circumstances a compile time value isn't enough.
> > Thinking about cross-compiling and MacOS's binaries which support
> > PowerPC and Intel architectures but using the provided constants gives a
> > consistent behavior.
> 
> But we don't support universal binaries.

... that's why our compile time defines are fine and should be used.

johannes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.