Zend Amf NetConnection bug resolved w/ Amf3
October 22nd, 2008
If you are testing out Zend Amf and were getting call bad version errors w/ complex amf3 data types check out the latest Zend Framework 1.7 preview release. You really just need to update Zend_Amf_Server in order to get the patch.
Here is the bug tracker if your still having issues.


I think this is what you’re getting at, but just to be crystal clear: to get this patch, you’d have to checkout the latest version of Zend_Amf from standard/trunk in SVN. Great work, Wade!
,Wil
Hi Wade,
I’m still getting a NetConnection.Call.BadVersion when sending more than one custom class instance using the NetConnection class.
It seems that the remote method only gets a single argument, as PHP is throwing a warning, saying something like:
“Missing argument 2 for..”
Everything works great when using RemoteObject, hitting the exact same method with the exact same parameters..!?
Cheers and keep up the great work,
Kim
This is still not working for me… I can’t send more than a parameter to a php function. I’ve downloaded the latest version and I still get the same problem.
Hi Wade,
I’m working with the version 1.8 of ZF and when I’m trying to send a request to the server, I get this error in my faultHandler method :
faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: ‘http://host/php-flex/current/server.php’
Did you already get this error? If yea, how did you fix it?
Thank you very much.
@Joris
Same here, when i try to make my amf server from a controller i get this error, i just can make it work with old plain php and includes for the libraries.
@Joris ; @Surt
I am now getting this same error using ZF 1.8 Flash Player / on Flex does anyone know the cause? The endpoint is there??
One reason for the NetConnection.Call.BadVersion error is PHP files that are encoded in other than ANSI. For example UTF-8 will NOT work. Propably because Zend_AMF is encoded in ANSI.
So if you can connect to the gateway file but the response’s content-type isn’t application/x-amf, then check the encoding of your PHP files.
Hi ,
thank you very much
I wase more then 10 hr to resolve this bug .
nice post.
hello,
same error, how can I fixe ANSI encodage for php return
thank a lot