!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/zendframework/zend-stdlib/src/Hydrator/Strategy/   drwxrwxr-x
Free 15.67 GB of 61.93 GB (25.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SerializableStrategy.php (3.44 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Stdlib\Hydrator\Strategy;

use 
Zend\Stdlib\Exception\InvalidArgumentException;
use 
Zend\Serializer\Adapter\AdapterInterface as SerializerAdapter;
use 
Zend\Serializer\Serializer as SerializerFactory;

class 
SerializableStrategy implements StrategyInterface
{
    
/**
     * @var string|SerializerAdapter
     */
    
protected $serializer;

    
/**
     * @var array
     */
    
protected $serializerOptions = array();

    
/**
     *
     * @param mixed $serializer string or SerializerAdapter
     * @param mixed $serializerOptions
     */
    
public function __construct($serializer$serializerOptions null)
    {
        
$this->setSerializer($serializer);
        if (
$serializerOptions) {
            
$this->setSerializerOptions($serializerOptions);
        }
    }

    
/**
     * Serialize the given value so that it can be extracted by the hydrator.
     *
     * @param mixed $value The original value.
     * @return mixed Returns the value that should be extracted.
     */
    
public function extract($value)
    {
        
$serializer $this->getSerializer();
        return 
$serializer->serialize($value);
    }

    
/**
     * Unserialize the given value so that it can be hydrated by the hydrator.
     *
     * @param mixed $value The original value.
     * @return mixed Returns the value that should be hydrated.
     */
    
public function hydrate($value)
    {
        
$serializer $this->getSerializer();
        return 
$serializer->unserialize($value);
    }

    
/**
     * Set serializer
     *
     * @param  string|SerializerAdapter $serializer
     * @return SerializableStrategy
     */
    
public function setSerializer($serializer)
    {
        if (!
is_string($serializer) && !$serializer instanceof SerializerAdapter) {
            throw new 
InvalidArgumentException(sprintf(
                
'%s expects either a string serializer name or Zend\Serializer\Adapter\AdapterInterface instance; '
                
'received "%s"',
                
__METHOD__,
                (
is_object($serializer) ? get_class($serializer) : gettype($serializer))
            ));
        }
        
$this->serializer $serializer;
        return 
$this;
    }

    
/**
     * Get serializer
     *
     * @return SerializerAdapter
     */
    
public function getSerializer()
    {
        if (
is_string($this->serializer)) {
            
$options $this->getSerializerOptions();
            
$this->setSerializer(SerializerFactory::factory($this->serializer$options));
        } elseif (
null === $this->serializer) {
            
$this->setSerializer(SerializerFactory::getDefaultAdapter());
        }

        return 
$this->serializer;
    }

    
/**
     * Set configuration options for instantiating a serializer adapter
     *
     * @param  mixed $serializerOptions
     * @return SerializableStrategy
     */
    
public function setSerializerOptions($serializerOptions)
    {
        
$this->serializerOptions $serializerOptions;
        return 
$this;
    }

    
/**
     * Get configuration options for instantiating a serializer adapter
     *
     * @return mixed
     */
    
public function getSerializerOptions()
    {
        return 
$this->serializerOptions;
    }
}

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