Nikita Popov
Nikita Popov
@Trainmaster The idea is to make the matching conceptually simpler (though the matching logic will be more complicated). Doing it this way would allow you to explain how routes are...
Start of the trace: ``` Exception trace: () at /home/nikic/repos/test-3/vendor/nikic/include-interceptor/src/Stream.php:159 Composer\Util\ErrorHandler::handle() at n/a:n/a fseek() at /home/nikic/repos/test-3/vendor/nikic/include-interceptor/src/Stream.php:159 Nikic\IncludeInterceptor\Stream->stream_seek() at n/a:n/a proc_open() at phar:///home/nikic/repos/composer.phar/vendor/symfony/process/Process.php:285 Symfony\Component\Process\Process->start() at phar:///home/nikic/repos/composer.phar/vendor/symfony/process/Process.php:196 Symfony\Component\Process\Process->run() at phar:///home/nikic/repos/composer.phar/src/Composer/Util/ProcessExecutor.php:146 Composer\Util\ProcessExecutor->doExecute() at...
Minimal test case: ```
There seems to be multiple levels of brokenness here. The seeking issue in particular is caused by https://github.com/php/php-src/blob/f0dd79a7e415d8b1d4a3868a27975d6578c87961/main/streams/cast.c#L199-L205, which will not try to seek a non-seekable stream, but as the...
I think this would be out of scope. Effectively this calls for a streaming JSON encoder, as you'd probably want not just the input to be an iterator, but the...
I'm afraid this is not really possible in the case of generators. The issue is that foreach performs an implicit rewind and generators only allow rewinds on generators where no...
@vkurdin The issue here is mainly that iterators are not always rewindable. In particular generators (which is what this library uses) are never rewindable.
I think what @toretto460 is driving at here, is that a "unique" iterator is not really able to operate in a truly streaming fashion. There are essentially two ways to...
Could you give an example of how these would look like for one function (like map() or so)?
Does anyone have an existing GH actions setup for extensions that one can be inspired by?