Open jackzp opened 4 years ago
+1
+1 since upgrade to php 7.4
I just createed a pull request for this one,
If you use composer, you can add/change your composer.json with this :
mashape/unirest-php": "^3.0.5"
, or mashape/unirest-php": "dev-master"
,
then add
"repositories": [
{
"type": "vcs",
"url": "https://github.com/loverg-c/unirest-php"
}
],
and finally composer update
I just createed a pull request for this one,
If you use composer, you can add/change your composer.json with this :
mashape/unirest-php": "^3.0.5"
, ormashape/unirest-php": "dev-master"
, then add"repositories": [ { "type": "vcs", "url": "https://github.com/loverg-c/unirest-php" } ],
and finally composer update
Thank you so much. You're genius
i got this error with php 7.4. Try to downgrade to 7.3
+1
if url have port in it , php will have this error
$url = "http://localhost:3000"; $response = Unirest\Request::get($url, $headers);
A PHP Error was encountered Severity: Notice
Message: Trying to access array offset on value of type int
Filename: Unirest/Request.php
Line Number: 555
Backtrace:
File: /Users/jack/Documents/html/vendor/mashape/unirest-php/src/Unirest/Request.php Line: 555 Function: _error_handler
File: /Users/jack/Documents/html/vendor/mashape/unirest-php/src/Unirest/Request.php Line: 417 Function: encodeUrl
File: /Users/jack/Documents/html/vendor/mashape/unirest-php/src/Unirest/Request.php Line: 236 Function: send