<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Beware PHP 5.4 specific usage in some libraries]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6647</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6647&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Beware PHP 5.4 specific usage in some libraries.]]></description>
		<lastBuildDate>Sat, 14 Jan 2017 08:28:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Beware PHP 5.4 specific usage in some libraries]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27383#p27383</link>
			<description><![CDATA[<p>From PHP 5.4 onwards, a new type of <a href="http://php.net/manual/en/language.types.array.php">array syntax</a> has been introduced <a href="http://php.net/manual/en/migration54.new-features.php">amongst other changes</a>.<br /></p><div class="codebox"><pre><code>&lt;?php
$array = array(
    &quot;foo&quot; =&gt; &quot;bar&quot;,
    &quot;bar&quot; =&gt; &quot;foo&quot;,
);

// as of PHP 5.4
$array = [
    &quot;foo&quot; =&gt; &quot;bar&quot;,
    &quot;bar&quot; =&gt; &quot;foo&quot;,
];
?&gt;</code></pre></div><p>If these libraries like <a href="https://github.com/phpList/phplist3/commit/8c7f713e706b2f4f820549ee2c82102b943e7bbe#commitcomment-20477098">PHPMailer</a>,&nbsp; <a href="https://github.com/phpList/phplist3/commit/c350151d5ab0b5194300a1709ef3e0c65d717a08">(as fixed in phpList)</a> or other code snippets are going to be ported to FA for use in earlier versions of PHP than v5.4, then we will need to code them back to the earlier <strong>simple array()</strong> syntax.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 14 Jan 2017 08:28:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27383#p27383</guid>
		</item>
	</channel>
</rss>
