Red5 is unable to work with any version of AMFPHP post 1.2.6 due to its inability to decode its AMF. So I made some adjustments for use with PHP 5.4. For more info on AMFPHP see: https://www.silexlabs.org/amfphp/