summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-05-04 14:20:28 +1200
committerOlly Betts <olly@survex.com>2021-05-04 14:20:28 +1200
commit2de563a32e72b1e793fbc308fd1864e9190c1d41 (patch)
tree4bb7e245f7788dd1527f7bb3959653e910565bdb
parent32283991c5d831840e4625007a9e15399d1ff1de (diff)
downloadswig-2de563a32e72b1e793fbc308fd1864e9190c1d41.tar.gz
Update details of PHP undefined constants
Since PHP 8.0 these now give an error.
-rw-r--r--Doc/Manual/Php.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/Doc/Manual/Php.html b/Doc/Manual/Php.html
index 254f05c52..0e900066d 100644
--- a/Doc/Manual/Php.html
+++ b/Doc/Manual/Php.html
@@ -226,14 +226,13 @@ echo "E = " . E . "\n";
</div>
<p>
-There's one peculiarity of how constants work in PHP which it is useful
-to note (this is not specific to SWIG though) - if you try to use an undeclared
-constant, PHP will emit a warning (or a notice in PHP 7.1 and earlier) and then
-expand the constant to a string version of the constant's name. Unfortunately
-it is easy to miss the warning message if you're using PHP in a webserver as
-it will probably end up in error.log or similar. Apparently this will throw
-an Error in a future version of PHP, but until then it's something to be
-aware of.
+There's one peculiarity of how constants work in PHP prior to PHP 8
+which it is useful to note (this is not specific to SWIG though) - if you try
+to use an undeclared constant, PHP will emit a warning (or a notice in PHP 7.1
+and earlier) and then expand the constant to a string version of the constant's
+name. Unfortunately it is easy to miss the warning message if you're using PHP
+in a webserver as it will probably end up in error.log or similar. PHP 8.0
+made this an error.
</p>
<p>