for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <[email protected]>
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Phalcon\Http\Message\Stream;
use Phalcon\Http\Message\Stream;
* Describes a data stream from "php://memory"
* Typically, an instance will wrap a PHP stream; this interface provides
* a wrapper around the most common operations, including serialization of
* the entire stream to a string.
class Memory extends Stream
{
* Memory constructor.
* @param string $mode
public function __construct(string $mode = "rb")
parent::__construct("php://memory", $mode);
}