File tree Expand file tree Collapse file tree 5 files changed +53
-12
lines changed Expand file tree Collapse file tree 5 files changed +53
-12
lines changed Original file line number Diff line number Diff line change 73
73
if (getenv ('PHP_PEAR_EXTENSION_DIR ' )) {
74
74
define ('PEAR_CONFIG_DEFAULT_EXT_DIR ' , getenv ('PHP_PEAR_EXTENSION_DIR ' ));
75
75
} else {
76
- if (! ini_get ('extension_dir ' )) {
76
+ if (ini_get ('extension_dir ' )) {
77
77
define ('PEAR_CONFIG_DEFAULT_EXT_DIR ' , ini_get ('extension_dir ' ));
78
78
} elseif (defined ('PEAR_EXTENSION_DIR ' ) && @is_dir (PEAR_EXTENSION_DIR )) {
79
79
define ('PEAR_CONFIG_DEFAULT_EXT_DIR ' , PEAR_EXTENSION_DIR );
Original file line number Diff line number Diff line change @@ -155,7 +155,23 @@ function _assertStateDir()
155
155
*/
156
156
function _packageFileName ($ package )
157
157
{
158
- return "{$ this ->statedir }/ {$ package }.reg " ;
158
+ if (is_file ("{$ this ->statedir }/ {$ package }.reg " )) {
159
+ return "{$ this ->statedir }/ {$ package }.reg " ;
160
+ }
161
+ /**
162
+ * Iterate through the directory to find the matching
163
+ * registry file, even if it has been provided in
164
+ * another case (foobar vs. FooBar)
165
+ */
166
+ $ package = strtolower ($ package );
167
+ if ($ handle = opendir ($ this ->statedir )) {
168
+ while (false !== ($ file = readdir ($ handle ))) {
169
+ if (strtolower ($ file ) == $ package . ".reg " ) {
170
+ return "{$ this ->statedir }/ {$ file }" ;
171
+ }
172
+ }
173
+ closedir ($ handle );
174
+ }
159
175
}
160
176
161
177
// }}}
Original file line number Diff line number Diff line change 6
6
<description >This class provides handling of tar files in PHP.
7
7
It supports creating, listing, extracting and adding to tar files.
8
8
Gzip support is available if PHP has the zlib extension built-in or
9
- loaded.
9
+ loaded. Bz2 compression is also supported with the bz2 extension loaded.
10
10
</description >
11
11
<license >PHP License</license >
12
12
<maintainers >
@@ -24,11 +24,12 @@ loaded.
24
24
</maintainer >
25
25
</maintainers >
26
26
<release >
27
- <version >0.9</version >
28
- <date >2002-05-27</date >
29
- <notes >
30
- * Auto-detect gzip'ed files
31
- </notes >
27
+ <version >1.1</version >
28
+ <date >2003-05-28</date >
29
+ <notes >* Add support for BZ2 compression
30
+ * Add support for add and extract without using temporary files : methods addString() and extractInString()
31
+
32
+ </notes >
32
33
<state >stable</state >
33
34
<filelist >
34
35
<dir name =" Archive" >
@@ -38,6 +39,30 @@ loaded.
38
39
</filelist >
39
40
</release >
40
41
<changelog >
42
+ <release >
43
+ <version >1.0</version >
44
+ <date >2003-01-24</date >
45
+ <notes >Change status to stable</notes >
46
+ <state >stable</state >
47
+ <filelist >
48
+ <dir name =" Archive" >
49
+ <file role =" php" name =" Tar.php" />
50
+ </dir >
51
+ <file role =" doc" name =" docs/Archive_Tar.txt" baseinstalldir =" /" />
52
+ </filelist >
53
+ </release >
54
+ <release >
55
+ <version >0.10-b1</version >
56
+ <date >2003-01-08</date >
57
+ <notes >Add support for long filenames (greater than 99 characters)</notes >
58
+ <state >beta</state >
59
+ </release >
60
+ <release >
61
+ <version >0.9</version >
62
+ <date >2002-05-27</date >
63
+ <notes >Auto-detect gzip'ed files</notes >
64
+ <state >stable</state >
65
+ </release >
41
66
<release >
42
67
<version >0.4</version >
43
68
<date >2002-05-20</date >
Original file line number Diff line number Diff line change 1
1
<!--
2
- $Id: package.dtd,v 1.27.4.5 2003-06-17 17:13 :17 pajoye Exp $
2
+ $Id: package.dtd,v 1.27.4.5.2.1 2003-06-24 01:59 :17 sas Exp $
3
3
4
4
This is the PEAR package description, version 1.0.
5
5
It should be used with the informal public identifier:
Original file line number Diff line number Diff line change @@ -5,18 +5,18 @@ REM PHP version 4.0
5
5
REM ----------------------------------------------------------------------
6
6
REM Copyright (c) 1997-2002 The PHP Group
7
7
REM ----------------------------------------------------------------------
8
- REM This source file is subject to version 2.02 of the PHP license,
8
+ REM This source file is subject to version 3.0 of the PHP license,
9
9
REM that is bundled with this package in the file LICENSE, and is
10
10
REM available at through the world-wide-web at
11
- REM http://www.php.net/license/2_02 .txt.
11
+ REM http://www.php.net/license/3_0 .txt.
12
12
REM If you did not receive a copy of the PHP license and are unable to
13
13
REM obtain it through the world-wide-web, please send a note to
14
14
REM license@php.net so we can mail you a copy immediately.
15
15
REM ----------------------------------------------------------------------
16
16
REM Authors: Alexander Merz (alexmerz@php.net)
17
17
REM ----------------------------------------------------------------------
18
18
REM
19
- REM $Id: pear.bat,v 1.14 2003/04/03 23:21:30 ssb Exp $
19
+ REM $Id$
20
20
21
21
REM change this lines to match the paths of your system
22
22
REM -------------------
You can’t perform that action at this time.
0 commit comments