Skip to content

Commit d7e526d

Browse files
committed
Jugurtha45.Changes
GitHubModifications
1 parent c64f4e7 commit d7e526d

File tree

15,851 files changed

+2462010
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,851 files changed

+2462010
-0
lines changed
-6.16 KB
Binary file not shown.

ext/phar/tests/tar/files/Net_URL-1.0.15/Net_URL-1.0.15/URL.php

Lines changed: 485 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
error_reporting(E_ALL);
3+
ini_set('display_errors', 'on');
4+
require_once '../URL.php';
5+
6+
$url = new Net_URL;
7+
$url->setOption('encode_query_keys', true);
8+
print_r($url->querystring);
9+
?>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php
2+
// +-----------------------------------------------------------------------+
3+
// | Copyright (c) 2002-2003, Richard Heyes |
4+
// | All rights reserved. |
5+
// | |
6+
// | Redistribution and use in source and binary forms, with or without |
7+
// | modification, are permitted provided that the following conditions |
8+
// | are met: |
9+
// | |
10+
// | o Redistributions of source code must retain the above copyright |
11+
// | notice, this list of conditions and the following disclaimer. |
12+
// | o Redistributions in binary form must reproduce the above copyright |
13+
// | notice, this list of conditions and the following disclaimer in the |
14+
// | documentation and/or other materials provided with the distribution.|
15+
// | o The names of the authors may not be used to endorse or promote |
16+
// | products derived from this software without specific prior written |
17+
// | permission. |
18+
// | |
19+
// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
20+
// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
21+
// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
22+
// | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
23+
// | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
24+
// | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25+
// | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26+
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27+
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28+
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29+
// | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30+
// | |
31+
// +-----------------------------------------------------------------------+
32+
// | Author: Richard Heyes <richard at php net> |
33+
// +-----------------------------------------------------------------------+
34+
// $Id: example.php,v 1.12 2007/06/28 14:42:42 davidc Exp $
35+
/**
36+
* This example will decode the url given and display its
37+
* constituent parts.
38+
*/
39+
40+
//include('../URL.php');
41+
include('Net/URL.php');
42+
43+
//$url = &new Net_URL('https://www.example.com/foo/bar/index.php?foo=bar');
44+
$url = new Net_URL('https://example.com/pls/portal30/PORTAL30.wwpob_page.changetabs?p_back_url=http%3A%2F%2Fexample.com%2Fservlet%2Fpage%3F_pageid%3D360%2C366%2C368%2C382%26_dad%3Dportal30%26_schema%3DPORTAL30&foo=bar');
45+
?>
46+
<html>
47+
<body>
48+
49+
<pre>
50+
Protocol...: <?php echo $url->protocol?>
51+
52+
Username...: <?php echo $url->user?>
53+
54+
Password...: <?php echo $url->pass?>
55+
56+
Server.....: <?php echo $url->host?>
57+
58+
Port.......: <?php echo $url->port?>
59+
60+
File/path..: <?php echo $url->path?>
61+
62+
Querystring: <?php print_r($url->querystring)?>
63+
64+
Anchor.....: <?php echo $url->anchor?>
65+
66+
67+
Full URL...: <?php echo $url->getUrl()?>
68+
</pre>
69+
70+
</body>
71+
</html>
Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<package packagerversion="1.6.0" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
3+
<name>Net_URL</name>
4+
<channel>pear.php.net</channel>
5+
<summary>Easy parsing of Urls</summary>
6+
<description>Provides easy parsing of URLs and their constituent parts.</description>
7+
<lead>
8+
<name>Richard heyes</name>
9+
<user>richard</user>
10+
<email>[email protected]</email>
11+
<active>no</active>
12+
</lead>
13+
<lead>
14+
<name>David Coallier</name>
15+
<user>davidc</user>
16+
<email>[email protected]</email>
17+
<active>yes</active>
18+
</lead>
19+
<date>2007-06-28</date>
20+
<time>10:57:03</time>
21+
<version>
22+
<release>1.0.15</release>
23+
<api>1.0.15</api>
24+
</version>
25+
<stability>
26+
<release>stable</release>
27+
<api>stable</api>
28+
</stability>
29+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
30+
<notes>- Fixed Bug #11385 $url was defined.
31+
- Fixed Doc #11017 Fixed docblock problem (cweiske)
32+
- Fixed Bug #11008 (Override object properties in initialize())
33+
- Fixed Bug #6338 Wrong query string handling
34+
- Fixed Bug #704 Fixed hardcoded value and use ini_get(arg_separator)
35+
- Fixed Bug #1036 Improper default port number detection
36+
- Fixed Bug #1447 use $_SERVER instead of HTTP_SERVER_VARS
37+
- Fixed Bug #1558 _parseRawQueryString failed if arg_sep.input was more than 1 char.
38+
- Fixed Bug #1682 File was in DOC format rather than Unix
39+
- Fixed Bug #2334 Sqare brackets in var names were encoded
40+
- Fixed Bug #2824 Better error handling support.
41+
- Fixed bug #3159 setProtocol was calling getStandardPort incorrectly</notes>
42+
<contents>
43+
<dir name="/">
44+
<file baseinstalldir="Net" md5sum="af793351a5f00e31a2df697b54cfbc02" name="docs/example.php" role="doc" />
45+
<file baseinstalldir="Net" md5sum="0488b5531c31332113100971be7ba2d9" name="docs/6470.php" role="doc" />
46+
<file baseinstalldir="Net" md5sum="c7e690d656b56cc48a12399331a35b27" name="URL.php" role="php" />
47+
</dir>
48+
</contents>
49+
<dependencies>
50+
<required>
51+
<php>
52+
<min>4.0.0</min>
53+
</php>
54+
<pearinstaller>
55+
<min>1.4.0b1</min>
56+
</pearinstaller>
57+
</required>
58+
</dependencies>
59+
<phprelease />
60+
<changelog>
61+
<release>
62+
<version>
63+
<release>1.0.14</release>
64+
<api>1.0.14</api>
65+
</version>
66+
<stability>
67+
<release>stable</release>
68+
<api>stable</api>
69+
</stability>
70+
<date>2004-06-19</date>
71+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
72+
<notes>Whitespace</notes>
73+
</release>
74+
<release>
75+
<version>
76+
<release>1.0.13</release>
77+
<api>1.0.13</api>
78+
</version>
79+
<stability>
80+
<release>stable</release>
81+
<api>stable</api>
82+
</stability>
83+
<date>2004-06-05</date>
84+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
85+
<notes>Fix bug 1558</notes>
86+
</release>
87+
<release>
88+
<version>
89+
<release>1.0.12</release>
90+
<api>1.0.12</api>
91+
</version>
92+
<stability>
93+
<release>stable</release>
94+
<api>stable</api>
95+
</stability>
96+
<date>2004-05-08</date>
97+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
98+
<notes>Bug fixes release (#704 and #1036)</notes>
99+
</release>
100+
<release>
101+
<version>
102+
<release>1.0.11</release>
103+
<api>1.0.11</api>
104+
</version>
105+
<stability>
106+
<release>stable</release>
107+
<api>stable</api>
108+
</stability>
109+
<date>2004-01-17</date>
110+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
111+
<notes>Bug fixes release (#83 and #471)</notes>
112+
</release>
113+
<release>
114+
<version>
115+
<release>1.0.10</release>
116+
<api>1.0.10</api>
117+
</version>
118+
<stability>
119+
<release>stable</release>
120+
<api>stable</api>
121+
</stability>
122+
<date>2002-04-06</date>
123+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
124+
<notes>Be more flexible in what constitutes a scheme</notes>
125+
</release>
126+
<release>
127+
<version>
128+
<release>1.0.9</release>
129+
<api>1.0.9</api>
130+
</version>
131+
<stability>
132+
<release>stable</release>
133+
<api>stable</api>
134+
</stability>
135+
<date>2002-04-05</date>
136+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
137+
<notes>Fix couple of absolute URL bugs.</notes>
138+
</release>
139+
<release>
140+
<version>
141+
<release>1.0.8</release>
142+
<api>1.0.8</api>
143+
</version>
144+
<stability>
145+
<release>stable</release>
146+
<api>stable</api>
147+
</stability>
148+
<date>2002-03-06</date>
149+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
150+
<notes>Various bugs. Remove auto setting of default url to &apos;/&apos; if a url is supplied
151+
to the constructor. May cause BC issues.</notes>
152+
</release>
153+
<release>
154+
<version>
155+
<release>1.0.7</release>
156+
<api>1.0.7</api>
157+
</version>
158+
<stability>
159+
<release>stable</release>
160+
<api>stable</api>
161+
</stability>
162+
<date>2002-12-07</date>
163+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
164+
<notes>Added method to resolve URL paths of //, ../ and ./</notes>
165+
</release>
166+
<release>
167+
<version>
168+
<release>1.0.6</release>
169+
<api>1.0.6</api>
170+
</version>
171+
<stability>
172+
<release>stable</release>
173+
<api>stable</api>
174+
</stability>
175+
<date>2002-12-07</date>
176+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
177+
<notes>Make usage of [] optional</notes>
178+
</release>
179+
<release>
180+
<version>
181+
<release>1.0.5</release>
182+
<api>1.0.5</api>
183+
</version>
184+
<stability>
185+
<release>stable</release>
186+
<api>stable</api>
187+
</stability>
188+
<date>2002-11-14</date>
189+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
190+
<notes>Allow for URLS such as ...?foo</notes>
191+
</release>
192+
<release>
193+
<version>
194+
<release>1.0.4</release>
195+
<api>1.0.4</api>
196+
</version>
197+
<stability>
198+
<release>stable</release>
199+
<api>stable</api>
200+
</stability>
201+
<date>2002-07-27</date>
202+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
203+
<notes>License change</notes>
204+
</release>
205+
<release>
206+
<version>
207+
<release>1.0.3</release>
208+
<api>1.0.3</api>
209+
</version>
210+
<stability>
211+
<release>stable</release>
212+
<api>stable</api>
213+
</stability>
214+
<date>2002-06-20</date>
215+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
216+
<notes>Now uses HTTP_HOST if available.</notes>
217+
</release>
218+
<release>
219+
<version>
220+
<release>1.0.2</release>
221+
<api>1.0.2</api>
222+
</version>
223+
<stability>
224+
<release>stable</release>
225+
<api>stable</api>
226+
</stability>
227+
<date>2002-04-28</date>
228+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
229+
<notes>updated to fix a minor irritation when running on windows</notes>
230+
</release>
231+
<release>
232+
<version>
233+
<release>1.0.1</release>
234+
<api>1.0.1</api>
235+
</version>
236+
<stability>
237+
<release>stable</release>
238+
<api>stable</api>
239+
</stability>
240+
<date>2002-04-28</date>
241+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
242+
<notes>Maintenance release. Bugs fixed with path detection and defaults.</notes>
243+
</release>
244+
<release>
245+
<version>
246+
<release>1.0</release>
247+
<api>1.0</api>
248+
</version>
249+
<stability>
250+
<release>stable</release>
251+
<api>stable</api>
252+
</stability>
253+
<date>2002-02-17</date>
254+
<license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license>
255+
<notes>This is the initial release of the Net_URL package.</notes>
256+
</release>
257+
</changelog>
258+
</package>

0 commit comments

Comments
 (0)