From 62e3752573eb0baae293eaccb1a8e6a0114c3c0c Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Fri, 6 Mar 2015 12:03:57 -0300 Subject: [PATCH 1/2] Verify if is a string --- src/Httpful/Request.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Httpful/Request.php b/src/Httpful/Request.php index f0cb789..ca1fac4 100755 --- a/src/Httpful/Request.php +++ b/src/Httpful/Request.php @@ -950,7 +950,9 @@ public function _curlPrep() public function _determineLength($str) { if (function_exists('mb_strlen')) { - return mb_strlen($str, '8bit'); + if (is_string($str)) { + return mb_strlen($str, '8bit'); + } } else { return strlen($str); } From 927a7dd91ba9f26442f5dbaf627521904da4007e Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Tue, 7 Apr 2015 14:42:45 -0300 Subject: [PATCH 2/2] Update to put on packagist --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 734bee9..7dfe4f8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "nategood/httpful", + "name": "michelwilhelm/httpful", "description": "A Readable, Chainable, REST friendly, PHP HTTP Client", "homepage": "http://github.com/nategood/httpful", "license": "MIT",