|
|
|
@ -492,24 +492,18 @@ generate_php_test_proto() { |
|
|
|
|
use_php() { |
|
|
|
|
VERSION=$1 |
|
|
|
|
export PATH=/usr/local/php-${VERSION}/bin:$PATH |
|
|
|
|
export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}/include/php/main:/usr/local/php-${VERSION}/include/php/:$CPLUS_INCLUDE_PATH |
|
|
|
|
export C_INCLUDE_PATH=/usr/local/php-${VERSION}/include/php/main:/usr/local/php-${VERSION}/include/php/:$C_INCLUDE_PATH |
|
|
|
|
generate_php_test_proto |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
use_php_zts() { |
|
|
|
|
VERSION=$1 |
|
|
|
|
export PATH=/usr/local/php-${VERSION}-zts/bin:$PATH |
|
|
|
|
export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}-zts/include/php/main:/usr/local/php-${VERSION}-zts/include/php/:$CPLUS_INCLUDE_PATH |
|
|
|
|
export C_INCLUDE_PATH=/usr/local/php-${VERSION}-zts/include/php/main:/usr/local/php-${VERSION}-zts/include/php/:$C_INCLUDE_PATH |
|
|
|
|
generate_php_test_proto |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
use_php_bc() { |
|
|
|
|
VERSION=$1 |
|
|
|
|
export PATH=/usr/local/php-${VERSION}-bc/bin:$PATH |
|
|
|
|
export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}-bc/include/php/main:/usr/local/php-${VERSION}-bc/include/php/:$CPLUS_INCLUDE_PATH |
|
|
|
|
export C_INCLUDE_PATH=/usr/local/php-${VERSION}-bc/include/php/main:/usr/local/php-${VERSION}-bc/include/php/:$C_INCLUDE_PATH |
|
|
|
|
generate_php_test_proto |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|