Testing for this blog post was done with PHP version 8.2.1 During a recent code review I learned about CURLOPT_FAILONERROR for the first time. I read through both the libcurl documentation as well as the PHP documentation and in the end was still unclear exactly what this option does. In this post I’ll share my findings from some experimentation.