Skip to content

Assertion failure at main/streams/streams.c:1385 #16780

Open
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$file_path = __DIR__;
$fusion = $file_path;
$h = gzopen($fusion, 'r');
var_dump(gzread($h, 10));
var_dump(gzseek( $h, 34, SEEK_CUR ) );
var_dump(gzseek( $h, -27, SEEK_CUR ) );

Resulted in this output:

/php-src/main/streams/streams.c:1385: int _php_stream_seek(php_stream *, zend_off_t, int): Assertion `stream->position >= 0' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions