!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/guzzle/tests/   drwxrwxr-x
Free 15.58 GB of 61.93 GB (25.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     QueryParserTest.php (2.98 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace GuzzleHttp\Tests;

use 
GuzzleHttp\Query;
use 
GuzzleHttp\QueryParser;

class 
QueryParserTest extends \PHPUnit_Framework_TestCase
{
    public function 
parseQueryProvider()
    {
        return [
            
// Does not need to parse when the string is empty
            
['', []],
            
// Can parse mult-values items
            
['q=a&q=b', ['q' => ['a''b']]],
            
// Can parse multi-valued items that use numeric indices
            
['q[0]=a&q[1]=b', ['q' => ['a''b']]],
            
// Can parse duplicates and does not include numeric indices
            
['q[]=a&q[]=b', ['q' => ['a''b']]],
            
// Ensures that the value of "q" is an array even though one value
            
['q[]=a', ['q' => ['a']]],
            
// Does not modify "." to "_" like PHP's parse_str()
            
['q.a=a&q.b=b', ['q.a' => 'a''q.b' => 'b']],
            
// Can decode %20 to " "
            
['q%20a=a%20b', ['q a' => 'a b']],
            
// Can parse funky strings with no values by assigning each to null
            
['q&a', ['q' => null'a' => null]],
            
// Does not strip trailing equal signs
            
['data=abc=', ['data' => 'abc=']],
            
// Can store duplicates without affecting other values
            
['foo=a&foo=b&?µ=c', ['foo' => ['a''b'], '?µ' => 'c']],
            
// Sets value to null when no "=" is present
            
['foo', ['foo' => null]],
            
// Preserves "0" keys.
            
['0', ['0' => null]],
            
// Sets the value to an empty string when "=" is present
            
['0=', ['0' => '']],
            
// Preserves falsey keys
            
['var=0', ['var' => '0']],
            
// Can deeply nest and store duplicate PHP values
            
['a[b][c]=1&a[b][c]=2', [
                
'a' => ['b' => ['c' => ['1''2']]]
            ]],
            
// Can parse PHP style arrays
            
['a[b]=c&a[d]=e', ['a' => ['b' => 'c''d' => 'e']]],
            
// Ensure it doesn't leave things behind with repeated values
            // Can parse mult-values items
            
['q=a&q=b&q=c', ['q' => ['a''b''c']]],
        ];
    }

    
/**
     * @dataProvider parseQueryProvider
     */
    
public function testParsesQueries($input$output)
    {
        
$query Query::fromString($input);
        
$this->assertEquals($output$query->toArray());
        
// Normalize the input and output
        
$query->setEncodingType(false);
        
$this->assertEquals(rawurldecode($input), (string) $query);
    }

    public function 
testConvertsPlusSymbolsToSpacesByDefault()
    {
        
$query Query::fromString('var=foo+bar'true);
        
$this->assertEquals('foo bar'$query->get('var'));
    }

    public function 
testCanControlDecodingType()
    {
        
$qp = new QueryParser();
        
$q = new Query();
        
$qp->parseInto($q'var=foo+bar'Query::RFC3986);
        
$this->assertEquals('foo+bar'$q->get('var'));
        
$qp->parseInto($q'var=foo+bar'Query::RFC1738);
        
$this->assertEquals('foo bar'$q->get('var'));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5397 ]--