add some error logging
authorMichael Wallner <mike@php.net>
Mon, 3 Aug 2015 07:09:05 +0000 (09:09 +0200)
committerMichael Wallner <mike@php.net>
Mon, 3 Aug 2015 07:09:05 +0000 (09:09 +0200)
gen_travis_yml.php
tests/helper/server.inc

index 0267094962d3dab2ada6d95003f51cc731c6fc94..89ab0b208b9b9e0883f271508cf419e7d93080da 100755 (executable)
@@ -39,4 +39,7 @@ script:
  - make -f travis/pecl/Makefile ext PECL=http
  - make -f travis/pecl/Makefile test
 
+after_script:
+ - test -e tests/helper/server.log && cat tests/helper/server.log
+
 sudo: false
index 506e08313b2c70f71a97f494bb5097171bc7a1f0..1bf5eb8f1978e9005c8ed57e62be48f95ece144e 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+ini_set("log_errors", true);
+ini_set("error_log", __DIR__."/server.log");
+
 $php = getenv('TEST_PHP_EXECUTABLE');
 if ($php) {
        define('PHP_BIN', $php);