<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: AMFPHP issue referencing ByteArray	</title>
	<atom:link href="https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Mon, 21 Jun 2010 10:27:02 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: David Priest		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1276</link>

		<dc:creator><![CDATA[David Priest]]></dc:creator>
		<pubDate>Mon, 07 Sep 2009 10:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1276</guid>

					<description><![CDATA[Alessandro,
Thanks for the informative post and patch, it appears to resolve my problem which had slightly different symptoms.
In my case, I was returning an array of objects, each with several vars; the bytearray being roughly the middle var. The bytearrays were all returned properly, but the vars after the bytearray were garbled.
Anyways, thanks again!
Of note, this patch requires you to disable php_amf.dll as the bug appears to be resident in there as well.
I&#039;ll ping Wade Daly (of amfphp.org) to see if this is relevant in his Zend work and any plans to update php_amf.dll
dp
]]></description>
			<content:encoded><![CDATA[<p>Alessandro,<br />
Thanks for the informative post and patch, it appears to resolve my problem which had slightly different symptoms.<br />
In my case, I was returning an array of objects, each with several vars; the bytearray being roughly the middle var. The bytearrays were all returned properly, but the vars after the bytearray were garbled.<br />
Anyways, thanks again!<br />
Of note, this patch requires you to disable php_amf.dll as the bug appears to be resident in there as well.<br />
I&#8217;ll ping Wade Daly (of amfphp.org) to see if this is relevant in his Zend work and any plans to update php_amf.dll<br />
dp</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Will Perone		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1275</link>

		<dc:creator><![CDATA[Will Perone]]></dc:creator>
		<pubDate>Sat, 17 Jan 2009 06:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1275</guid>

					<description><![CDATA[Wow looks like someone didn&#039;t do a code review before committing :P  I kept wondering why my Flash devs could only cast the return to a String and not a ByteArray!  You just saved me from a LOT of pain; thanks!
]]></description>
			<content:encoded><![CDATA[<p>Wow looks like someone didn&#8217;t do a code review before committing 😛  I kept wondering why my Flash devs could only cast the return to a String and not a ByteArray!  You just saved me from a LOT of pain; thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: daivd		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1274</link>

		<dc:creator><![CDATA[daivd]]></dc:creator>
		<pubDate>Tue, 02 Dec 2008 23:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1274</guid>

					<description><![CDATA[hello,
i have one trouble,  when  php5 is running the error &quot;Fatal error: Class &#039;ByteArray&#039; not found &quot; always appears on browser.
where can be downloaded ByteArray class or if i  miss some php setting?
thx lot :)
]]></description>
			<content:encoded><![CDATA[<p>hello,<br />
i have one trouble,  when  php5 is running the error &#8220;Fatal error: Class &#8216;ByteArray&#8217; not found &#8221; always appears on browser.<br />
where can be downloaded ByteArray class or if i  miss some php setting?<br />
thx lot 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: pierre		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1273</link>

		<dc:creator><![CDATA[pierre]]></dc:creator>
		<pubDate>Mon, 18 Aug 2008 20:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1273</guid>

					<description><![CDATA[&lt;p&gt;Hi Alessandro,&lt;/p&gt;
&lt;p&gt;I&#039;m trying to send an array of objects contaning a ByteArray from amfphp to flex and it doesn&#039;t work, i tried to patch the AMFSerializer.php file but nothing changes, do you have any clue?&lt;/p&gt;
&lt;p&gt;I&#039;m trying something like that:&lt;/p&gt;
&lt;p&gt;[php] &lt;br /&gt;
/////object Employe&lt;br /&gt;
class Employe{&lt;br /&gt;
&lt;br /&gt;
var $photo;&lt;br /&gt;
&lt;br /&gt;
function Employe(){&lt;/p&gt;
&lt;p&gt; }&lt;/p&gt;
&lt;p&gt; function getPhoto()&lt;br /&gt;
{&lt;br /&gt;
$this-&#062;photo = new ByteArray(file_get_contents(&#034;image.jpeg&#034;));&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;//// the service class&lt;br /&gt;
class Service{&lt;/p&gt;
&lt;p&gt; function getAllEmploye()&lt;br /&gt;
{&lt;br /&gt;
$a = array();&lt;br /&gt;
for($i=0;$i&#060;10;$i++){&lt;br /&gt;
$e  = new Employe();&lt;br /&gt;
$e-&#062;getPhoto( );&lt;br /&gt;
array_push($a, $e);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return $a;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;
[/php]&lt;/p&gt;
&lt;p&gt;Flex keep showing me the same error : &#034;didn&#039;t receive an acknowledge message&#034;&lt;/p&gt;
&lt;p&gt;If you have any idea :)&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>Hi Alessandro,</p>
<p>I&#8217;m trying to send an array of objects contaning a ByteArray from amfphp to flex and it doesn&#8217;t work, i tried to patch the AMFSerializer.php file but nothing changes, do you have any clue?</p>
<p>I&#8217;m trying something like that:</p>
<p>[php] <br />
/////object Employe<br />
class Employe{</p>
<p>var $photo;</p>
<p>function Employe(){</p>
<p> }</p>
<p> function getPhoto()<br />
{<br />
$this-&gt;photo = new ByteArray(file_get_contents(&quot;image.jpeg&quot;));<br />
}</p>
<p>}
</p>
<p>//// the service class<br />
class Service{</p>
<p> function getAllEmploye()<br />
{<br />
$a = array();<br />
for($i=0;$i&lt;10;$i++){<br />
$e  = new Employe();<br />
$e-&gt;getPhoto( );<br />
array_push($a, $e);<br />
}</p>
<p>return $a;<br />
}</p>
<p>}<br />
[/php]</p>
<p>Flex keep showing me the same error : &quot;didn&#8217;t receive an acknowledge message&quot;</p>
<p>If you have any idea 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Danny Miller		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1272</link>

		<dc:creator><![CDATA[Danny Miller]]></dc:creator>
		<pubDate>Sat, 12 Jul 2008 05:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1272</guid>

					<description><![CDATA[Doh!
]]></description>
			<content:encoded><![CDATA[<p>Doh!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alessandro		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1271</link>

		<dc:creator><![CDATA[Alessandro]]></dc:creator>
		<pubDate>Sat, 12 Jul 2008 04:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1271</guid>

					<description><![CDATA[When calling amfphp from an actionscript only project (not flex) using NetConnection you must force AMFPHP to use the amf3 encoding otherwise you cannot receive a ByteArray class instance.
]]></description>
			<content:encoded><![CDATA[<p>When calling amfphp from an actionscript only project (not flex) using NetConnection you must force AMFPHP to use the amf3 encoding otherwise you cannot receive a ByteArray class instance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Danny Miller		</title>
		<link>https://blog.sephiroth.it/2008/07/11/amfphp-issue-referencing-bytearray/comment-page-1/#comment-1270</link>

		<dc:creator><![CDATA[Danny Miller]]></dc:creator>
		<pubDate>Sat, 12 Jul 2008 01:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=258#comment-1270</guid>

					<description><![CDATA[Hey! So you did my problem that I posted on the forums.
So you were able to return a single ByteArray too? I had to do the Base64 thing...
]]></description>
			<content:encoded><![CDATA[<p>Hey! So you did my problem that I posted on the forums.<br />
So you were able to return a single ByteArray too? I had to do the Base64 thing&#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
