<?php fopen( string $filename, string $mode, bool $use_include_path = false, ?resource $context = null): resource|false
<?php $this->lineDumper = $output; } else { if (\is_string($output)) { $output = fopen($output, 'w'); } $this->outputStream = $output; $this->lineDumper = [$this, 'echoLine'];
<?php } if ($returnDump = true === $output) { $output = fopen('php://memory', 'r+'); } if ($output) { $prevOutput = $this->setOutput($output);
<?php } $h = stream_get_meta_data($this->outputStream) + ['wrapper_type' => null]; $h = 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? fopen('php://stdout', 'w') : $this->outputStream; return static::$defaultColors = $this->hasColorSupport($h); }
<?php public function testClosedResource() { $var = fopen(__FILE__, 'r'); fclose($var); $dumper = new CliDumper('php://output');
<?php public function testThrowingCaster() { $out = fopen('php://memory', 'r+'); require_once __DIR__.'/../Fixtures/Twig.php'; $twig = new \__TwigTemplate_VarDumperFixture_u75a09(new Environment(new FilesystemLoader()));
<?php public function testAppend() { $out = fopen('php://memory', 'r+'); $dumper = new HtmlDumper(); $dumper->setDumpHeader('<foo></foo>');
<?php $foo = new DumbFoo(); $foo->bar = 'bar'; $g = fopen(__FILE__, 'r'); $var = [ 'number' => 1, null,