Created attachment 5084 [details] endian fix PHP crashes with a segfault when compiled do mips64r2 n32. Any function related to timezone gives a segfault, like date(), gettimeofday(), and some other random errors, like microtime() dumping garbage on the screen. I found out that autoconf did not set some macros when configuring, resulting little endian code being compiled to a big endian machine. A simple test can be done on a mips64 machine: php -r 'print_r(date('l'));' Result in segfault instantly. Attached is a patch that solves this issue.
Thanks, I've committed a slightly tweaked patch (use our existing BR2_ENDIAN symbol instead) as 21a4a9003e3.