I encounter this error in an AIR application which uses amfphp for remoting:
The class {Amf3Broker} could not be found under the class path {/var/htdocs/amfphp/services/amfphp/Amf3Broker.php}
I googled and found several links, but their suggestions doesn’t work. I finally find the cause in the error log files of apache:
PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2502231 bytes) in /var/www/html/…/amfphp2/core/amf/io/AMFBaseSerializer.php on line 98
So the cause is not amfphp, but instead my setting in php. So I edited /etc/php.ini
, set memory_limit
to a larger value. The problem solved.
If this doesn’t solve your problem, you may try the following links:
http://www.sephiroth.it/weblog/archives/2007/10/amfphp_and_mbstring.php
http://www.gotoandlearnforum.com/viewtopic.php?f=17&t=23708&p=109112