Fix #537: Suggest enabling option to report all PHP errors

This commit is contained in:
Zach Borboa
2018-08-09 21:06:15 -07:00
parent e08391bb4a
commit 0c6ff28c8a
+9
View File
@@ -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);