__PHP_Incomplete_Class_Name wrong

后端 未结 10 1442
小蘑菇
小蘑菇 2020-12-10 04:15

We\'re randomly getting some very strange error logs. They don\'t happen on every page hit, even with the same parameters/actions/etc, and they don\'t seem repeatable, each

10条回答
  •  再見小時候
    2020-12-10 04:42

    Hakre's suggestion to look at session_write_close led me to what appears to be a reliable fix:

    register_shutdown_function('session_write_close');
    

    This forces the session to be written out before any memory cleanup and class unloading occurs. This is important due to a change in PHP that can result in a race condition between APC removing class references and PHP writing out the session data: http://news.php.net/php.internals/46999

提交回复
热议问题