<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — The each() function is deprecated TCPDF]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7777&amp;type=atom" />
	<updated>2018-10-26T13:20:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7777</id>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33053#p33053" />
			<content type="html"><![CDATA[<p>Thank you for that tip, I already made the change.</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2018-10-26T13:20:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33053#p33053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33046#p33046" />
			<content type="html"><![CDATA[<p>There are 4 matches in <strong>reporting/includes/tcpdf.php</strong> (<a href="https://github.com/FrontAccountingERP/FA/commit/cefa241faeedaa123418679f6e7adf92dd7409cd">committed</a>) and 1 in <strong>reporting/includes/fpdi/fpdi.</strong> (line 396).</p><p>The <strong>foreach()</strong> construct has been in existence for quite a while, the <strong>each()</strong> was convenient as an all-in-one list() assignment as well. PHP 7.2+ seems to be reducing alternative coding constructs as part of their &quot;standardisation&quot;.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-10-26T01:37:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33046#p33046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33029#p33029" />
			<content type="html"><![CDATA[<p>Now works without errors!</p><p>Thank you...</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2018-10-25T16:27:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33029#p33029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33025#p33025" />
			<content type="html"><![CDATA[<p>I will try to catch these and replace.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-10-25T16:12:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33025#p33025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33024#p33024" />
			<content type="html"><![CDATA[<p>Thank you so much!!!</p><p>Very useful.</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2018-10-25T14:26:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33024#p33024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33022#p33022" />
			<content type="html"><![CDATA[<p>Since php version 7.2 the each() function is deprecated<br />Find all while loop with each() function in the <strong>reporting/includes/tcpdf.php</strong> and modify them to foreach loop.<br />Example:<br /></p><div class="codebox"><pre><code>while (list($id, $name) = each($attr_array[1])) {
    $dom[$key][&#039;attribute&#039;][strtolower($name)] = $attr_array[2][$id];
}</code></pre></div><p>need to be</p><div class="codebox"><pre><code>foreach ($attr_array[1] as $id =&gt; $name) {
    $dom[$key][&#039;attribute&#039;][strtolower($name)] = $attr_array[2][$id];
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-10-25T14:01:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33022#p33022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33021#p33021" />
			<content type="html"><![CDATA[<p>Are you using PHP7 ?</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-10-25T13:51:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33021#p33021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The each() function is deprecated TCPDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33020#p33020" />
			<content type="html"><![CDATA[<p>When I try to create reports, I have the error</p><p>tcpdf.php:4707: The each() function is deprecated. This message will be suppressed on further calls</p><p>I tried to implement new versión of TCPDF, but I failed.&nbsp; Someone have the same problem? or How I fix that.</p><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2018-10-25T13:36:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33020#p33020</id>
		</entry>
</feed>
