Troubleshooting of incompatibility between AMFPHP1.4 and PHP5.3 and later is recently being upgraded to PHP5.4. the compatibility problem occurs in AMFPHP. the resolution process is recorded as follows.
1. change ereg-related functions to preg-related functions.
2. add the static keyword to all class functions called in static mode through the error log output prompt.
3. modify the PHP configuration file and add the default time zone to data. timezone.
Try to output errors to logs. this is generally caused by incompatibility issues. if the error logs are not output, you can use the Charles Proxy software to view the HTTP transmission content.
NetConnection. Call. BadVersion is mainly caused by the problem of the bytecode transmitted to the Client. Generally, there are two reasons:
1. an error occurs. This can be viewed in the PHP log or through the Charles tool, Chrome debugging, etc. to check whether the HTTP content shows an error message.
2. unknown output. If there is no problem above, check whether each file related to AMFPHP has output, a special example is that the UTF-8 encoding file carries the BOM identifier, this will not generate errors, however, the AMFPHP CLient decoding is affected.