diff options
author | Olly Betts <olly@survex.com> | 2021-04-19 13:17:14 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-19 13:40:46 +1200 |
commit | d6f9f4b6c05dec844db5b18a9c4e374174da9df1 (patch) | |
tree | 1b982d2ef8c0744124ccf832109f8c97b3ac717d /Examples/Makefile.in | |
parent | e22dd47ff5612c599016421987669d0d488a8b4e (diff) | |
download | swig-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.in | 2 |
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 |