Zend Amf data type mapping & free book from Apress
September 15th, 2008
Flex data types are round tripped to an PHP class where there native type is manipulated. This program was written to help me test all the different AMF3 data types and how they will be sent to and received from PHP. Check out the video to see almost all data types round tripping. Be the first to post what data type didn’t work and still needs to be fixed before Zend Amf is ready and win a copy of the Essential Guide To Open Source Flash


Seemed to me like the Boolean data type didn’t come back properly.
Right on Shaun. I will email you to get your address!
I can’t send arrays or generic objects from Flash to PHP, but strings work fine. The other way around, I can receive associative arrays from PHP to Flash without problems.
I am using Zend AMF from Zend Framework 1.7 full release and ActionScript 3.0 (Flash CS3).
These data types have been working since the initially release. Do the unit tests pass on your server?
Where do I find the unit tests?
@David They are in the zend framework full download. http://framework.zend.com/
Thanks — I also found them in the AMF 1.7.2 download, but am having some difficulty in configuring them. My installation of the Zend Framework followed Lee Brimlow’s Amf tutorial, so I have the Zend library located in WAMP/www/Project1/frameworks/Zend/”. Where should I put the tests directory and do I need to specify an includes_path somewhere, like I did in the Amf_gateway.php file for Flash?
@David Look at testhelper.php in the tests directory. That is where you specific the path to your /library/ that has the Zend folder.
Thanks, I think my problem with running the tests is that I don’t have the PHPUnit installed in my WampServer installation (default install). When I run AllTests.php, I get:
Warning: require_once(PHPUnit/Framework.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\Project1\frameworks\tests\TestHelper.php on line 30
Fatal error: require_once() [function.require]: Failed opening required ‘PHPUnit/Framework.php’ (include_path=’.;C:\php5\pear’)
Any help in installing PHPUnit with Wamp is appreciated (I don’t see PHPUnit in the PEAR directory in WAMP/bin/php/php5.2.6/PEAR directory (only thing there is a “go-pear.phar” file). I apologize for the newb questions– I am new to server configurations. The wiki on PHPUnit installation is a bit confusing to me…
@David http://www.phpunit.de/manual/current/en/installation.html
Okay, I can get it to work if I change my NetConnection.objectEncoding = 0. I suppose that means my WampServer needs to be configured to allow AMF3 format. How does one accomplish that?
I’ve never been able to send my array collections back to php in any way or form. I’ll try setting objectecoding to 0, I hope this helps!
No Dice
so frustrating, I’ve been looking for an answer for months. I’m getting the count on my array now on the PHP side, but I’m not able to treat each index as an Object like I need to.
I really need help on this, it seems like I should be able to do this, right??