summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-12-18 14:41:06 +1300
committerOlly Betts <olly@survex.com>2021-12-18 15:00:56 +1300
commitdee8b65823a9468288e37585ce9482a51bb98a13 (patch)
tree4f03b44965c7bcbc25b1ed53855306c242f961e2
parentcc5395a669588f7c9b6347dfc65ed69e0f5221d0 (diff)
downloadswig-dee8b65823a9468288e37585ce9482a51bb98a13.tar.gz
[php] Always use <?php to start .php file
A few files had just <? which only works when the short_open_tag option is on. It is on by default (at least in current PHP versions) and we explicitly tell PHP not to read php.ini, but the PHP docs recommended to avoid it, and PHP can be built with --disable-short-tags.
-rw-r--r--Examples/test-suite/php/exception_order_runme.php2
-rw-r--r--Examples/test-suite/php/virtual_vs_nonvirtual_base_runme.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Examples/test-suite/php/exception_order_runme.php b/Examples/test-suite/php/exception_order_runme.php
index fb9870659..fafa88483 100644
--- a/Examples/test-suite/php/exception_order_runme.php
+++ b/Examples/test-suite/php/exception_order_runme.php
@@ -1,4 +1,4 @@
-<?
+<?php
require "tests.php";
check::functions(array('is_python_builtin'));
diff --git a/Examples/test-suite/php/virtual_vs_nonvirtual_base_runme.php b/Examples/test-suite/php/virtual_vs_nonvirtual_base_runme.php
index 183825971..8d8d40560 100644
--- a/Examples/test-suite/php/virtual_vs_nonvirtual_base_runme.php
+++ b/Examples/test-suite/php/virtual_vs_nonvirtual_base_runme.php
@@ -1,4 +1,4 @@
-<?
+<?php
require "tests.php";