<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — array_combine() object issue]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6653&amp;type=atom" />
	<updated>2017-01-18T15:03:01Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6653</id>
		<entry>
			<title type="html"><![CDATA[Re: array_combine() object issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27409#p27409" />
			<content type="html"><![CDATA[<p>All fixed in repository. Both 2.3 and 2.4.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-01-18T15:03:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27409#p27409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: array_combine() object issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27408#p27408" />
			<content type="html"><![CDATA[<p>There is also an instance in includes/main.inc on line 421 in 2.4.</p><p>I will fix this asap.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-01-18T14:21:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27408#p27408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[array_combine() object issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27406#p27406" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>array_combine() now returns array() instead of FALSE when two empty arrays are provided as parameters.</p></blockquote></div><p> in <a href="http://php.net/manual/en/migration54.incompatible.php">later versions of PHP</a>.</p><p>To ensure compatibility with later versions of PHP whilst retaining backward compatibility, most instances of <strong>array_combine(...</strong> have been replaced with <strong>(object)(array_combine(...</strong> except in <strong>includes/ui/ui_lists.inc</strong> which may be set right now in both branches.</p><p>Line 2370 in FA 2.3.25+ and line 2538 in FA 2.4RC1+:<br /></p><div class="codebox"><pre><code>    $services = array_combine(array_keys($payment_services), array_keys($payment_services));</code></pre></div><p>should now become:<br /></p><div class="codebox"><pre><code>    $services = (object)array_combine(array_keys($payment_services), array_keys($payment_services));</code></pre></div><p>Fixed in <a href="https://github.com/apmuthu/frontaccounting/commit/5365d98984d1ddc7567a84c0979357a4e15b3926">my FA 2.3.x repo</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-01-18T10:04:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27406#p27406</id>
		</entry>
</feed>
