summaryrefslogtreecommitdiff
path: root/test/php
diff options
context:
space:
mode:
authorHÃ¥kon Hitland <hakon.hitland@zedge.net>2017-07-25 16:38:26 +0200
committerJames E. King, III <jking@apache.org>2017-09-22 08:00:47 -0700
commit9462edb06eab38a180eb83277d08d377402775d5 (patch)
treee2c681af5764d863276a98fb8580a00b70efb207 /test/php
parent2d8b17890cf67032e9cb0da21eea940a265261ff (diff)
downloadthrift-9462edb06eab38a180eb83277d08d377402775d5.tar.gz
THRIFT-4264: Fix PHP tests requiring sockets.so
Client: php This closes #1315
Diffstat (limited to 'test/php')
-rwxr-xr-xtest/php/Makefile.am13
-rw-r--r--test/php/test_php.ini2
2 files changed, 11 insertions, 4 deletions
diff --git a/test/php/Makefile.am b/test/php/Makefile.am
index ea6eaf3a9..28357f6be 100755
--- a/test/php/Makefile.am
+++ b/test/php/Makefile.am
@@ -23,12 +23,17 @@ stubs: ../ThriftTest.thrift
$(MKDIR_P) gen-php-psr4
$(THRIFT) -out gen-php-psr4 --gen php:psr4 ../ThriftTest.thrift
-precross: stubs
+php_ext_dir:
+ mkdir -p php_ext_dir
+ ln -s ../../../lib/php/src/ext/thrift_protocol/modules/thrift_protocol.so php_ext_dir/
+ ln -s "$$(php-config --extension-dir)/sockets.so" php_ext_dir/
-check: stubs
+precross: stubs php_ext_dir
+
+check: stubs php_ext_dir
clean-local:
- $(RM) -r gen-php gen-phpi gen-php-psr4
+ $(RM) -r gen-php gen-phpi gen-php-psr4 php_ext_dir
-client: stubs
+client: stubs php_ext_dir
php TestClient.php
diff --git a/test/php/test_php.ini b/test/php/test_php.ini
new file mode 100644
index 000000000..3f9bb21e2
--- /dev/null
+++ b/test/php/test_php.ini
@@ -0,0 +1,2 @@
+extension=thrift_protocol.so
+extension=sockets.so