httpful icon indicating copy to clipboard operation
httpful copied to clipboard

Templating broken with unset

Open sosherof opened this issue 11 months ago • 0 comments

Requests had a statement, at the end of the send method, to unset($this->_ch). $_ch holds the curl object. Under PHP 8.x, accessing/setting undefined class properties throws a warning. So when using the template abilities, subsequent send operations would generate a warning. The fix was to set $this->_ch = null;.

sosherof avatar Mar 13 '24 14:03 sosherof