Skip to content

Commit b2f49c6

Browse files
committed
Add a dl() test to Travis
Compile the zend_test extension as shared and try loading it with dl() to test for obvious issues. Doing this as a standalone call because this is very specific to the CI setup.
1 parent e9aa033 commit b2f49c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ before_script:
6767

6868
# Run PHPs run-tests.php
6969
script:
70-
- ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120
70+
- ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120
71+
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
7172

7273
after_success:
7374
- ccache --show-stats

travis/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $TS \
7676
--with-xpm-dir=/usr \
7777
--with-kerberos \
7878
--enable-sysvmsg \
79-
--enable-zend-test \
79+
--enable-zend-test=shared \
8080
> "$CONFIG_LOG_FILE"
8181

8282
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"

0 commit comments

Comments
 (0)