Add macros for compatible with PHP 5.3

Make it be compatible with PHP 5.3.X.

But it stll has some problems here,,, If you try to load **simple.so** , php will print out error messages, But if you try to run **simple.php**, the result is wright, but still prints out these error messages.

➜  bullsoft  /home/work/local/php/bin/php -m         
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mcrypt
mysql
mysqlbinlog
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
**simple**
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
standard
tny
tokenizer
xml
xmlreader
xmlwriter
zlib

[Zend Modules]

*** Error in `/home/work/local/php/bin/php': corrupted double-linked list: 0x00000000015dc330 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7ff31)[0x7ff00a5a4f31]
/lib/x86_64-linux-gnu/libc.so.6(+0x807e8)[0x7ff00a5a57e8]
/home/work/local/php/bin/php(zend_mm_shutdown+0x51)[0x779b71]
/home/work/local/php/bin/php(php_module_shutdown+0x54)[0x745f14]
/home/work/local/php/bin/php[0x430c4e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7ff00a546de5]
/home/work/local/php/bin/php[0x431d4c]
======= Memory map: ========
00400000-00e0c000 r-xp 00000000 fc:00 798088                             /home/work/local/php/bin/php
0100b000-0100c000 r--p 00a0b000 fc:00 798088                             /home/work/local/php/bin/php
0100c000-0101c000 rw-p 00a0c000 fc:00 798088                             /home/work/local/php/bin/php
0101c000-01040000 rw-p 00000000 00:00 0 
01545000-017d3000 rw-p 00000000 00:00 0                                  [heap]
7ff004731000-7ff00473d000 r-xp 00000000 fc:00 27003457                   /lib/x86_64-linux-gnu/libnss_files-2.17.so
7ff00473d000-7ff00493c000 ---p 0000c000 fc:00 27003457                   /lib/x86_64-linux-gnu/libnss_files-2.17.so
7ff00493c000-7ff00493d000 r--p 0000b000 fc:00 27003457                   /lib/x86_64-linux-gnu/libnss_files-2.17.so
7ff00493d000-7ff00493e000 rw-p 0000c000 fc:00 27003457                   /lib/x86_64-linux-gnu/libnss_files-2.17.so
7ff004f63000-7ff004f78000 r-xp 00000000 fc:00 27001137                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff004f78000-7ff005177000 ---p 00015000 fc:00 27001137                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff005177000-7ff005178000 r--p 00014000 fc:00 27001137                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff005178000-7ff005179000 rw-p 00015000 fc:00 27001137                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7ff005179000-7ff005211000 r-xp 00000000 fc:00 18219242                   /home/work/local/replication/lib/libreplication.so.0.2.0
7ff005211000-7ff005411000 ---p 00098000 fc:00 18219242                   /home/work/local/replication/lib/libreplication.so.0.2.0
7ff005411000-7ff005413000 r--p 00098000 fc:00 18219242                   /home/work/local/replication/lib/libreplication.so.0.2.0
7ff005413000-7ff005417000 rw-p 0009a000 fc:00 18219242                   /home/work/local/replication/lib/libreplication.so.0.2.0
7ff005417000-7ff0054fd000 r-xp 00000000 fc:00 15859727                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18
7ff0054fd000-7ff0056fc000 ---p 000e6000 fc:00 15859727                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18
7ff0056fc000-7ff005704000 r--p 000e5000 fc:00 15859727                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18
7ff005704000-7ff005706000 rw-p 000ed000 fc:00 15859727                   /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18
7ff005706000-7ff00571b000 rw-p 00000000 00:00 0 
7ff00571b000-7ff005728000 r-xp 00000000 fc:00 786437                     /home/work/local/php/lib/php/extensions/no-debug-non-zts-20090626/mysqlbinlog.so
7ff005728000-7ff005927000 ---p 0000d000 fc:00 786437                     /home/work/local/php/lib/php/extensions/no-debug-non-zts-20090626/mysqlbinlog.so
7ff005927000-7ff005928000 r--p 0000c000 fc:00 786437                     /home/work/local/php/lib/php/extensions/no-debug-non-zts-20090626/mysqlbinlog.so
7ff005928000-7ff005929000 rw-p 0000d000 fc:00 786437                     /home/work/local/php/lib/php/extensions/no-debug-non-zts-20090626/mysqlbinlog.so
7ff005929000-7ff00600e000 r--p 00000000 fc:00 15865809                   /usr/lib/locale/locale-archive
7ff00600e000-7ff006018000 r-xp 00000000 fc:00 27003464                   /lib/x86_64-linux-gnu/libcrypt-2.17.so
7ff006018000-7ff006217000 ---p 0000a000 fc:00 27003464                   /lib/x86_64-linux-gnu/libcrypt-2.17.so
7ff006217000-7ff006218000 r--p 00009000 fc:00 27003464                   /lib/x86_64-linux-gnu/libcrypt-2.17.so
7ff006218000-7ff006219000 rw-p 0000a000 fc:00 27003464                   /lib/x86_64-linux-gnu/libcrypt-2.17.so
7ff006219000-7ff006247000 rw-p 00000000 00:00 0 
7ff006247000-7ff0062f5000 r-xp 00000000 fc:00 15860562                   /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff0062f5000-7ff0064f5000 ---p 000ae000 fc:00 15860562                   /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff0064f5000-7ff0064f7000 r--p 000ae000 fc:00 15860562                   /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff0064f7000-7ff0064f9000 rw-p 000b0000 fc:00 15860562                   /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7ff0064f9000-7ff0064fa000 rw-p 00000000 00:00 0 
7ff0064fa000-7ff00653f000 r-xp 00000000 fc:00 15867144                   /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff00653f000-7ff00673e000 ---p 00045000 fc:00 15867144                   /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff00673e000-7ff006740000 r--p 00044000 fc:00 15867144                   /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff006740000-7ff006742000 rw-p 00046000 fc:00 15867144                   /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7ff006742000-7ff00674f000 r-xp 00000000 fc:00 15866744                   /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff00674f000-7ff00694e000 ---p 0000d000 fc:00 15866744                   /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff00694e000-7ff00694f000 r--p 0000c000 fc:00 15866744                   /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff00694f000-7ff006950000 rw-p 0000d000 fc:00 15866744                   /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7ff006950000-7ff006977000 r-xp 00000000 fc:00 15867142                   /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff006977000-7ff006b77000 ---p 00027000 fc:00 15867142                   /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff006b77000-7ff006b78000 r--p 00027000 fc:00 15867142                   /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff006b78000-7ff006b79000 rw-p 00028000 fc:00 15867142                   /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7ff006b79000-7ff006b8c000 r-xp 00000000 fc:00 15873088                   /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff006b8c000-7ff006d8c000 ---p 00013000 fc:00 15873088                   /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff006d8c000-7ff006d8d000 r--p 00013000 fc:00 15873088                   /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff006d8d000-7ff006d8e000 rw-p 00014000 fc:00 15873088                   /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7ff006d8e000-7ff006dbf000 r-xp 00000000 fc:00 15867384                   /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff006dbf000-7ff006fbf000 ---p 00031000 fc:00 15867384                   /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff006fbf000-7ff006fc0000 r--p 00031000 fc:00 15867384                   /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff006fc0000-7ff006fc1000 rw-p 00032000 fc:00 15867384                   /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7ff006fc1000-7ff006fc2000 rw-p 00000000 00:00 0 
7ff006fc2000-7ff007059000 r-xp 00000000 fc:00 15871174                   /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff007059000-7ff007258000 ---p 00097000 fc:00 15871174                   /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff007258000-7ff00725a000 r--p 00096000 fc:00 15871174                   /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff00725a000-7ff00725c000 rw-p 00098000 fc:00 15871174                   /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7ff00725c000-7ff0072d9000 r-xp 00000000 fc:00 15867528                   /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff0072d9000-7ff0074d9000 ---p 0007d000 fc:00 15867528                   /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff0074d9000-7ff0074db000 r--p 0007d000 fc:00 15867528                   /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff0074db000-7ff0074de000 rw-p 0007f000 fc:00 15867528                   /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7ff0074de000-7ff0074df000 rw-p 00000000 00:00 0 
7ff0074df000-7ff0074e5000 r-xp 00000000 fc:00 15867152                   /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff0074e5000-7ff0076e4000 ---p 00006000 fc:00 15867152                   /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff0076e4000-7ff0076e5000 r--p 00005000 fc:00 15867152                   /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff0076e5000-7ff0076e6000 rw-p 00006000 fc:00 15867152                   /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7ff0076e6000-7ff0076e8000 r-xp 00000000 fc:00 27000885                   /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7ff0076e8000-7ff0078e8000 ---p 00002000 fc:00 27000885                   /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7ff0078e8000-7ff0078e9000 r--p 00002000 fc:00 27000885                   /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7ff0078e9000-7ff0078ea000 rw-p 00003000 fc:00 27000885                   /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7ff0078ea000-7ff0078ee000 r-xp 00000000 fc:00 27001144                   /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0
7ff0078ee000-7ff007aed000 ---p 00004000 fc:00 27001144                   /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0
7ff007aed000-7ff007aee000 r--p 00003000 fc:00 27001144                   /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0
7ff007aee000-7ff007aef000 rw-p 00004000 fc:00 27001144                   /lib/x86_64-linux-gnu/libgpg-error.so.0.10.0
7ff007aef000-7ff007b0d000 r-xp 00000000 fc:00 15860293                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7ff007b0d000-7ff007d0c000 ---p 0001e000 fc:00 15860293                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7ff007d0c000-7ff007d0e000 r--p 0001d000 fc:00 15860293                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7ff007d0e000-7ff007d0f000 rw-p 0001f000 fc:00 15860293                   /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
7ff007d0f000-7ff007d1f000 r-xp 00000000 fc:00 15860295                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0
7ff007d1f000-7ff007f1e000 ---p 00010000 fc:00 15860295                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0
7ff007f1e000-7ff007f1f000 r--p 0000f000 fc:00 15860295                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0
7ff007f1f000-7ff007f20000 rw-p 00010000 fc:00 15860295                   /usr/lib/x86_64-linux-gnu/libtasn1.so.3.2.0
7ff007f20000-7ff007f5a000 r-xp 00000000 fc:00 15867201                   /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff007f5a000-7ff00815a000 ---p 0003a000 fc:00 15867201                   /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff00815a000-7ff00815b000 r--p 0003a000 fc:00 15867201                   /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff00815b000-7ff00815d000 rw-p 0003b000 fc:00 15867201                   /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7ff00815d000-7ff00815e000 rw-p 00000000 00:00 0 [1]    5484 abort (core dumped)  /home/work/local/php/bin/php -m