<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Beware PHP 5.4 specific usage in some libraries]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6647&amp;type=atom" />
	<updated>2017-01-14T08:28:02Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6647</id>
		<entry>
			<title type="html"><![CDATA[Beware PHP 5.4 specific usage in some libraries]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27383#p27383" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-14T08:28:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27383#p27383</id>
		</entry>
</feed>
