|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-04-11 15:22 UTC] peehaa@php.net
[2020-04-11 15:49 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
[2020-04-11 15:49 UTC] cmb@php.net
[2020-04-11 16:13 UTC] j7ur8 at qq dot com
[2020-04-11 17:50 UTC] peehaa@php.net
[2020-04-15 10:28 UTC] nikic@php.net
[2020-05-02 15:39 UTC] cmb@php.net
[2020-05-03 10:18 UTC] cmb@php.net
-Type: Documentation Problem
+Type: Bug
-Assigned To:
+Assigned To: cmb
[2020-05-03 10:18 UTC] cmb@php.net
[2020-05-03 10:19 UTC] cmb@php.net
-Summary: file_put_contents can't create file with data://
wrappers
+Summary: data:// wrappers are writable
[2020-05-03 10:19 UTC] cmb@php.net
[2020-05-03 10:19 UTC] cmb@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Description: ------------ file_put_contents ( string $filename , mixed $data [, int $flags = 0 [, resource $context ]] ) : int 1. above is the function details 2. And when the params of `filename` in file_put_contents starts with data:// , php will execute it successful, but create a file. Test script: --------------- <?php echo file_put_contents('data://text/plain,cccc', 'data'); ?> Expected result: ---------------- 4 ; and create a file names 'ccc' Actual result: -------------- 4; and do not create any file.