mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Fix #537: Suggest enabling option to report all PHP errors
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user