|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-18 13:10 UTC] peehaa@php.net
[2017-07-18 13:11 UTC] peehaa@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: peehaa
[2017-07-18 13:11 UTC] peehaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 20:00:02 2026 UTC |
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