...
Code Block |
---|
|
$wrapper = (new NetWrapper())->request(['https://test.com']);
$wrapper->getBody('https://test.com');
$wrapper->getParsed('https://test.com'); |
PHP 8.0 Updates
As of PHP 8.0 the curl driver is no longer declared as as resource but a class. Netcurl takes care of this and with netcurl 6.1.2, the internal driver also drops the strict resource checking. To force strict checks, which practically means that netcurl will verify whether the initalized curl driver is really either an object (the class) or a resource (< PHP 8), you can do this as follows:
Code Block |
---|
language | php |
---|
theme | Emacs |
---|
title | strict_resource |
---|
|
use TorneLIB\Config\Flag;
Flag::setFlag('strict_resource', false); |
Different exception executions
...