summaryrefslogtreecommitdiff
path: root/Examples/Makefile.in
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-04-19 13:17:14 +1200
committerOlly Betts <olly@survex.com>2021-04-19 13:40:46 +1200
commitd6f9f4b6c05dec844db5b18a9c4e374174da9df1 (patch)
tree1b982d2ef8c0744124ccf832109f8c97b3ac717d /Examples/Makefile.in
parente22dd47ff5612c599016421987669d0d488a8b4e (diff)
downloadswig-d6f9f4b6c05dec844db5b18a9c4e374174da9df1.tar.gz
Make examples fail on any PHP diagnostic
Previously we called set_error_handler() in tests.php to do this, but that only sets it for the test-suite. Now we set it in on the PHP command line, which works for both.
Diffstat (limited to 'Examples/Makefile.in')
-rw-r--r--Examples/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/Makefile.in b/Examples/Makefile.in
index 838350921..2d4c6e521 100644
--- a/Examples/Makefile.in
+++ b/Examples/Makefile.in
@@ -1076,7 +1076,7 @@ php_cpp: $(SRCDIR_SRCS)
# -----------------------------------------------------------------
php_run:
- $(RUNTOOL) $(PHP) -n -d extension_dir=. -d display_errors=stderr $(PHP_SCRIPT) $(RUNPIPE)
+ $(RUNTOOL) $(PHP) -n -d extension_dir=. -d display_errors=stderr -r 'set_error_handler(function($$n,$$s,$$f,$$l){if($$f!==Null){print$$f;if($$l!==Null)print":$$l";print": ";}print"$$s\n";exit(1);});include($$argv[1]);' $(PHP_SCRIPT) $(RUNPIPE)
# -----------------------------------------------------------------
# Version display