rogueblade Posted March 31, 2010 Share Posted March 31, 2010 Ok this is driving me nuts. Using Adobe Flex Builder 3. I have a PHP class file which is being called through ZendAMF and the problem is that some combination of Flex and Zend will not accept the php date method in any way shape or form. What happens is that I receive this RPC error: [RPC Fault faultString=Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received] My application works perfectly fine when there is nothing to do with retrieving the date from the server. Even if I do, the functions that involve the 'date' still send and retrieve data but Flex still fires the RPC error. The RPC error, I have discovered, ONLY occurs when I try to get the date stamp. Any of these results in the error: $today = date('Y-m-d'); $today = date(); $today = getdate(); Any of the above, whether declared at the beginning of the class file, in the __construct function or any function (declared as public or private) results in the error (even when not calling the variable $today anywhere): Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/197062-zendamf-and-date-method-rpc-error/ Share on other sites More sharing options...
thehippy Posted April 13, 2010 Share Posted April 13, 2010 You've probably gotten this figured out by now but... Are you setting your timezone? This sounds like the problem given not setting your timezone results in an E_NOTICE on a date() call. And looking at Zend_AMF, it maps php's DateTime class or Zend_Date Quote Link to comment https://forums.phpfreaks.com/topic/197062-zendamf-and-date-method-rpc-error/#findComment-1040756 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.