Permalink
Browse files

* Fix minor irritation when running on windows

git-svn-id: http://svn.php.net/repository/pear/packages/Net_URL/trunk@84034 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent eb494ef commit 4d3ffd8fd8d02a2de292b3ea5c6a14c1e34ece91 Richard Heyes committed May 29, 2002
Showing with 46 additions and 7 deletions.
  1. +1 −1 URL.php
  2. +45 −6 package.xml
View
@@ -132,7 +132,7 @@ function Net_URL($url = null)
if ($urlinfo['path'][0] == '/') {
$this->path = $urlinfo['path'];
} else {
- $path = dirname($this->path) == '/' ? '' : dirname($this->path);
+ $path = dirname($this->path) == DIRECTORY_SEPARATOR ? '' : dirname($this->path);
$this->path = sprintf('%s/%s', $path, $urlinfo['path']);
}
} else {
View
@@ -3,30 +3,69 @@
<package version="1.0">
<name>Net_URL</name>
<summary>Easy parsing of Urls</summary>
+ <description>
+ Provides easy parsing of URLs and their constituent parts.
+ </description>
+ <license>BSD</license>
<maintainers>
<maintainer>
- <user>heyesr</user>
+ <user>richard</user>
<name>Richard heyes</name>
- <email>heyesr@php.net</email>
+ <email>richard@php.net</email>
<role>lead</role>
</maintainer>
</maintainers>
<release>
- <version>1.0</version>
- <date>2002-02-17</date>
+ <version>1.0.2</version>
+ <date>2002-04-28</date>
<state>stable</state>
<notes>
- This is the initial release of the Net_URL package.
+ updated to fix a minor irritation when running on windows
</notes>
<filelist>
<dir name="/" baseinstalldir="Net">
<file role="php">URL.php</file>
<dir name="docs" role="doc">
- <file role="doc">example.php</file>
+ <file role="doc">example.php</file>
</dir>
</dir>
</filelist>
</release>
+ <changelog>
+ <release>
+ <version>1.0.1</version>
+ <date>2002-04-28</date>
+ <state>stable</state>
+ <notes>
+ Maintenance release. Bugs fixed with path detection and defaults.
+ </notes>
+ <filelist>
+ <dir name="/" baseinstalldir="Net">
+ <file role="php">URL.php</file>
+ <dir name="docs" role="doc">
+ <file role="doc">example.php</file>
+ </dir>
+ </dir>
+ </filelist>
+ </release>
+
+ <release>
+ <version>1.0</version>
+ <date>2002-02-17</date>
+ <state>stable</state>
+ <notes>
+ This is the initial release of the Net_URL package.
+ </notes>
+ <filelist>
+ <dir name="/" baseinstalldir="Net">
+ <file role="php">URL.php</file>
+ <dir name="docs" role="doc">
+ <file role="doc">example.php</file>
+ </dir>
+ </dir>
+ </filelist>
+ </release>
+ </changelog>
</package>

0 comments on commit 4d3ffd8

Please sign in to comment.