Jump to content

ZendAMF and date method (RPC error)


rogueblade

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/197062-zendamf-and-date-method-rpc-error/
Share on other sites

  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.