Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.