Doc #70927 [Opn->Csd]: stream_filter_append() doesn't work for handles opened in 'x' mode

From: Date: Thu, 09 Apr 2020 17:04:09 +0000
Subject: Doc #70927 [Opn->Csd]: stream_filter_append() doesn't work for handles opened in 'x' mode
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17478@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70927&edit=1 ID: 70927 Updated by: cmb@php.net Reported by: jon at tjs dot co dot uk Summary: stream_filter_append() doesn't work for handles opened in 'x' mode -Status: Open +Status: Closed Type: Documentation Problem Package: Streams related PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: But it is possible to append stream filters to streams opened in 'x' mode, e.g. <?php $filename = __DIR__ . '/70927.txt'; $stream = fopen($filename, 'x'); stream_filter_append($stream, 'string.rot13', STREAM_FILTER_WRITE); fwrite($stream, 'hello world'); fclose($stream); echo file_get_contents($filename); ?> outputs: ryyb jbeyq Previous Comments: ------------------------------------------------------------------------ [2015-11-17 09:30:15] jon at tjs dot co dot uk Description: ------------ stream_filter_append() doesn't work for handles opened in 'x' mode, it would be helpful if the documentation was explicit about this (and any other modes it doesn't work with). --- From manual page: http://www.php.net/function.stream-filter-append --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70927&edit=1

« previous php.doc.bugs (#17478) next »