In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to analyze the Invalid binding type problem of PHP, I believe many inexperienced people don't know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Invalid binding type problem of PHP
First of all, explain the environmental problems, the migration of new and old servers. There is no problem with the code running on the old server. The environment is all PHP7.3. As a result, after the traffic on the new server is directed, the following problems are reported:
FastCGI sent in stderr: "PHP message: PHP Fatal error: Invalid binding type in / base.inc.php on line
What is line 221 of this base.inc.php?
221}
Well, that's a little weird. After commenting out the relevant methods, the error message is deferred to the end of the next curly braces. That's amazing. So I went to Google Baidu for a long time, but I didn't have any useful information. The only thing I mentioned was to recompile PHP.
Https://stackoverflow.com/questions/3960323/why-dont-php-attributes-allow-functions
All right, let's recompile, but once the compilation is finished, as soon as the diversion comes, we will hang up again. PHP-FPM works normally, but not all of them will go wrong, so some errors can be reported during test access. Further comparison shows that we have installed the swoole extension for future extensions on the new server. Maybe that's the problem. Delete the swoole extension right away and solve the problem.
No relevant information was found on swoole's official website. It is estimated that there may be incompatibility with swoole in the code or in the configuration of PHP-FPM. Therefore, the normal test will not affect when there is no traffic in the process of running, but this kind of error will occur when the traffic is large. Sometimes a lot of code seems to run well, but the real problem is often reflected in high-traffic and high-concurrency scenarios.
After reading the above, have you mastered how to analyze the Invalid binding type problem of PHP? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.