Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 18.117.78.59 | Time @ Server : 19 Oct 2024 09:32:45
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/guzzlehttp/ringphp/tests/Client/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/guzzlehttp/ringphp/tests/Client/CurlHandlerTest.php

<?php namespace GuzzleHttp\Tests\Ring\Client; use GuzzleHttp\Ring\Client\CurlHandler; class CurlHandlerTest extends \PHPUnit_Framework_TestCase { protected function setUp() { if (!function_exists('curl_reset')) { $this->markTestSkipped('curl_reset() is not available'); } } protected function getHandler($factory = null, $options = []) { return new CurlHandler($options); } public function testCanSetMaxHandles() { $a = new CurlHandler(['max_handles' => 10]); $this->assertEquals(10, $this->readAttribute($a, 'maxHandles')); } public function testCreatesCurlErrors() { $handler = new CurlHandler(); $response = $handler([ 'http_method' => 'GET', 'uri' => '/', 'headers' => ['host' => ['localhost:123']], 'client' => ['timeout' => 0.001, 'connect_timeout' => 0.001], ]); $this->assertNull($response['status']); $this->assertNull($response['reason']); $this->assertEquals([], $response['headers']); $this->assertInstanceOf( 'GuzzleHttp\Ring\Exception\RingException', $response['error'] ); $this->assertEquals( 1, preg_match('/^cURL error \d+: .*$/', $response['error']->getMessage()) ); } public function testReleasesAdditionalEasyHandles() { Server::flush(); $response = [ 'status' => 200, 'headers' => ['Content-Length' => [4]], 'body' => 'test', ]; Server::enqueue([$response, $response, $response, $response]); $a = new CurlHandler(['max_handles' => 2]); $fn = function () use (&$calls, $a, &$fn) { if (++$calls < 4) { $a([ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]], 'client' => ['progress' => $fn], ]); } }; $request = [ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]], 'client' => [ 'progress' => $fn, ], ]; $a($request); $this->assertCount(2, $this->readAttribute($a, 'handles')); } public function testReusesHandles() { Server::flush(); $response = ['status' => 200]; Server::enqueue([$response, $response]); $a = new CurlHandler(); $request = [ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]], ]; $a($request); $a($request); } }