Troubleshooting of incompatibility between AMFPHP1.4 and PHP5.3 and later

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.