update test.sh to use zend php emulated options, and sync up run-tests.sh from zend php-src
coding style