zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

Frequent PHP errors #231

Open Wallethub opened 6 years ago

Wallethub commented 6 years ago

Hi, we've experienced that every time we would deploy code to our production server (PHP files getting replaced), at times we would get PHP errors saying some error about an invalid character in line X column Y. However, if I go there on that file that character is not there.

This led me to think something was wrong with the cached php code. I cleared opcache by creating a script that calls opcache_reset() and it solves the problem, every time. Could this be a configuration error?

Here are some example PHP errors: PHP Warning: curl_setopt_array(): Curl option contains invalid characters (\\0)