/** * {@inheritdoc} */ public function close() { if (!$this->getContext()) { return; } $this->shutdown(); parent::close(); }
public function __construct($mode = null, $maxMemory = null) { $context = 'php://temp'; if ($maxMemory) { $context .= "/maxmemory:{$maxMemory}"; } parent::__construct($context, $mode); }
public function __construct() { parent::__construct('php://input', 'rb'); }
public function __construct($mode = null) { parent::__construct('php://memory', $mode); }
public function __construct() { parent::__construct('php://output', 'wb'); }