Bug #79467 [Ver->Csd]: data:// wrappers are writable

From: Date: Sun, 03 May 2020 10:19:42 +0000
Subject: Bug #79467 [Ver->Csd]: data:// wrappers are writable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226890@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79467&edit=1 ID: 79467 Updated by: cmb@php.net Reported by: j7ur8 at qq dot com Summary: data:// wrappers are writable -Status: Verified +Status: Closed Type: Bug Package: Streams related Operating System: windows Linux PHP Version: 7.4.4 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=69888c3ff1f2301ead8e37b23ff8481d475e29d2 Log: Fix #79467: data:// wrappers are writable Previous Comments: ------------------------------------------------------------------------ [2020-05-03 10:18:47] cmb@php.net Re-classifying as bug according to @nikic's comment above. ------------------------------------------------------------------------ [2020-05-02 15:39:50] cmb@php.net The following pull request has been associated: Patch Name: Fix #79467: data:// wrappers are writable On GitHub: https://github.com/php/php-src/pull/5511 Patch: https://github.com/php/php-src/pull/5511.patch ------------------------------------------------------------------------ [2020-04-15 10:28:31] nikic@php.net Looks like internally data stream uses temp stream: https://github.com/php/php-src/blob/99084262c3f56dd8a4efa6fa689441966745440f/main/streams/memory.c#L622 I do wonder whether it shouldn't be better to drop write support there than to document it, as it doesn't really make sense to me for data streams. ------------------------------------------------------------------------ [2020-04-11 17:50:48] peehaa@php.net Why would it create a file? ------------------------------------------------------------------------ [2020-04-11 16:13:51] j7ur8 at qq dot com but it dont create a file. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79467 -- Edit this bug report at https://bugs.php.net/bug.php?id=79467&edit=1

« previous php.bugs (#226890) next »