From 0c6ff28c8a344ff2b3b0089d817c9ef696921611 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 9 Aug 2018 21:06:15 -0700 Subject: [PATCH] Fix #537: Suggest enabling option to report all PHP errors --- TROUBLESHOOTING.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 50e4c77..8325400 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -1,8 +1,15 @@ # Troubleshooting +### Turn on error reporting + +```php +error_reporting(E_ALL); +``` + ### Turn on verbose mode ```php +error_reporting(E_ALL); $curl = new Curl(); $curl->verbose(); $curl->get('https://www.example.com/'); @@ -12,12 +19,14 @@ var_dump($curl); ### Compare request with and without the library ```php +error_reporting(E_ALL); $curl = new Curl(); $curl->get('https://www.example.com/'); var_dump($curl); ``` ```php +error_reporting(E_ALL); $ch = curl_init(); curl_setopt($ch, CURLINFO_HEADER_OUT, true); curl_setopt($ch, CURLOPT_HEADER, false);