Re: cvs: pecl /zip zip_stream.c /zip/examples fopen.php

From: Date: Sun, 12 Mar 2006 20:58:47 +0000
Subject: Re: cvs: pecl /zip zip_stream.c /zip/examples fopen.php
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3594@lists.php.net to get a copy of this message
Hello, I moved the discussion to pecl-dev, please keep it there. For the record, here is the fragment section of the RFC: *** The fragment identifier component of a URI allows indirect identification of a secondary resource by reference to a primary resource and additional identifying information. The identified secondary resource may be some portion or subset of the primary resource, some view on representations of the primary resource, or some other resource defined or described by those representations. A fragment identifier component is indicated by the presence of a number sign ("#") character and terminated by the end of the URI. *** This is why I agreed with Rob to use "#" to define the entry, the entry is actually a secondary resource, the zip archive being the primary resource. --Pierre On 3/12/06, Marcus Boerger <helly@php.net> wrote: > Hello Rob, > > we were having an interesting discussion with Pierre about that url > layout and he claimed it was your idea to use the '#' as a separator > between archive and entry. Now Pierre is wrong in saying that # denotes > a fragment but the use is quite different from what he is using it for. > > In terms of the RFC the extensions stream handler is the server and > the php script is the client. Now read what the RFC says about fragment: > > "4. URI References > > The term "URI-reference" is used here to denote the common usage of a > resource identifier. A URI reference may be absolute or relative, > and may have additional information attached in the form of a > fragment identifier. However, "the URI" that results from such a > reference includes only the absolute URI after the fragment > identifier (if any) is removed and after any relative URI is resolved > to its absolute form." > [...] > "4.1. Fragment Identifier > > When a URI reference is used to perform a retrieval action on the > identified resource, the optional fragment identifier, separated from > the URI by a crosshatch ("#") character, consists of additional > reference information to be interpreted by the user agent after the > retrieval action has been successfully completed." > [...] > > This means two things: > 1) The fragment is not taken into account on the server side. > 2) The fragment is meant for the client side. > > Thus we (Derick, Greg, myself) suggest the use of '?'. > > "3.4. Query Component > > The query component is a string of information to be interpreted by > the resource." > > Which pretty much matches since the archive is the resource. And from my > opinion we are doing a query into the archive executed by the streams > handler of pecl/zip. > > best regards > marcus

« previous php.pecl.dev (#3594) next »