./init.sh
make testTo install extension after all tests are passing execute:
sudo make intallTo test extension in interactive mode run:
php -dextension=module/uamqp.so -aBelow you can find couple useful tips about php extensions development.
$PHP_UAMQP_PHP_EXECUTABLE/php -dextension=modules/uamqp.so examples/publish_and_receive_to_service_bus.phpgdb $PHP_UAMQP_PHP_EXECUTABLE/phpThen in gdb
run -dextension=modules/uamqp.so examples/publish_and_receive_to_service_bus.php$PHP_UAMQP_PHP_EXECUTABLE/php --args -dextension=modules/uamqp.so examples/publish_and_receive_to_service_bus.php
By default in vagrant core dumps are saved in /tmp/cores/ directory. In case you
run into "Core Dumped" error list the /tmp/cores location, get latest dump and browse it
using
gdb $PHP_UAMQP_PHP_EXECUTABLE/php /tmp/cores/core.php.8460.vagrant.1568481785
(replace core.php.8460.vagrant.1568481785 with core dump file path)
and then in gdb console type bt.
make test NO_INTERACTION=1make test TESTS=tests/test_sending_message_in_debug_mode.phptThis will change single test timeout from 60 to 10 seconds.
make test TEST_TIMEOUT=10