Never Eating the Cookie

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A freelance developer inherits an old PHP project meant to periodically fetch data from other services via cURL. The previous developer copy-pasted the same block of curl_setopt calls throughout the codebase, apparently confusing CURLOPT_TIMEOUT with a recurrence interval. Worse, the fetched response was stored in a variable and never actually used anywhere, meaning the feature never functioned despite looking like it should.

2m read timeFrom thedailywtf.com
Post cover image
5.7K Impressions