modphp: enable endian check
modphp: enable endian check

Previously, modphp estimates endian on host rather than checks it on
target. If the host is little-endian and the target is big-endian,
modphp claims that endian is little. As a result, a memory location
that it is not allowed to access when calling libphp5.so module on
target. It will occur segmentation fault.
This patch enables endian check support for modphp.

Signed-off-by: Chong Lu <a184fd94204b33e92041f8bdf4cc18886c495134@windriver.com>
Signed-off-by: Paul Eggleton <737d4dae46a541673d7bf4e0d5b32714b16528d8@linux.intel.com>

WindRiver-OpenSourceLabs/meta-webserver