Skip to content

Commit d3ecf9a

Browse files
author
Dave 'Gizmo' Gymer
committed
Suppress warnings in SMF 1 so we can upgrade to PHP 5.6.
1 parent 5cecc16 commit d3ecf9a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

{etc}/SMF-mods/srou-smf-1/install.xml

+16-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<!-- This information needs to be the same as that in the package-info.xml. -->
2121
<id>gizmo71:srou_smf</id>
22-
<version>1.11</version>
22+
<version>1.12</version>
2323

2424
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
2525

@@ -464,6 +464,21 @@ require_once('Subs-LM2.php'); // Not actually used here but needed for the templ
464464
'LM2R' => array('Subs-LM2.php', 'LM2R'),
465465
]]></add>
466466
</operation>
467+
<!-- To cope with PHP 5.6 -->
468+
<operation>
469+
<search position="replace"><![CDATA[error_reporting(E_ALL)]]></search>
470+
<add><![CDATA[error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE)]]></add>
471+
</operation>
472+
</file>
473+
474+
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
475+
476+
<file name="$boarddir/SSI.php">
477+
<!-- To cope with PHP 5.6 -->
478+
<operation>
479+
<search position="replace"><![CDATA[error_reporting(E_ALL)]]></search>
480+
<add><![CDATA[error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE)]]></add>
481+
</operation>
467482
</file>
468483

469484
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

{etc}/SMF-mods/srou-smf-1/package-info.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<type>modification</type>
3030

3131
<!-- The version of this modification. Keep it numeric so PHP can tell that old < new. -->
32-
<version>1.11</version>
32+
<version>1.12</version>
3333

3434
<install>
3535
<readme>README.txt</readme>

0 commit comments

Comments
 (0)