Doc #74944 [Opn->Csd]: Document Error About "Zip context options"
| From: | peehaa@php.net | Date: | Tue, 18 Jul 2017 13:11:09 +0000 |
| Subject: | Doc #74944 [Opn->Csd]: Document Error About "Zip context options" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14849@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74944&edit=1
ID: 74944
Updated by: peehaa@php.net
Reported by: wangyihanger at gmail dot com
Summary: Document Error About "Zip context options"
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: ALL
PHP Version: Irrelevant
-Assigned To:
+Assigned To: peehaa
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2017-07-18 13:10:06] peehaa@php.net
Automatic comment from SVN on behalf of peehaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=342676
Log: Fixed non matching quotes. Fixes #74944
------------------------------------------------------------------------
[2017-07-18 06:24:27] wangyihanger at gmail dot com
Description:
------------
The single quotation marks in the instance program do not match the double quotation marks,
resulting in syntax errors
Test script:
---------------
<?php
// Read encrypted archie
$opts = array(
'zip' => array(
'password' => 'secret',
),
);
// create the context...
$context = stream_context_create($opts);
// ...and use it to fetch the data
echo file_get_contents('zip://test.zip#test.txt", false, $ctx); // The Bug is at here.
?>
Expected result:
----------------
NULL
Actual result:
--------------
PHP Parse error: syntax error, unexpected end of file in /root/zip.php on line 15
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74944&edit=1