Home » File System » File » Bug #5237
Corrupt package archive
Details
| Submitted | 2005-08-29 17:07 UTC |
|---|---|
| From | grayw at mail dot montclair dot edu |
| Status | Bogus |
| Package | File |
| PHP Version | 5.0.4 |
| OS | Solaris 9, Mac OS X 10.3.9 |
| Roadmaps | (Not assigned) |
Comments
[2005-08-29 17:07 UTC] grayw at mail dot montclair dot edu
Description:
------------
Running pear install File creates the following error:
XML error: Undeclared entity warning at line 232
From Solaris 9 and Mac OS X, I've found that if I download the package using pear, and attempt to manually expand the archive, an error is produced (using Sun tar and GNU tar):
gunzip File-1.2.1.tgz
tar -xvf File-1.2.1.tar
package.xml
File-1.2.1/File.php
File-1.2.1/File/Util.php
File-1.2.1/File/CSV.php
File-1.2.1/tests/parser.php
File-1.2.1/tests/test.csv
File-1.2.1/tests/FileTest.php
File-1.2.1/tests/CSV/001.phpt
File-1.2.1/tests/CSV/001.csv
File-1.2.1/tests/CSV/002.phpt
File-1.2.1/tests/CSV/002.csv
File-1.2.1/tests/CSV/003.phpt
File-1.2.1/tests/CSV/003.csv
File-1.2.1/tests/CSV/004.phpt
File-1.2.1/tests/CSV/004.csv
File-1.2.1/tests/CSV/005.phpt
File-1.2.1/tests/CSV/005.csv
File-1.2.1/tests/CSV/006.phpt
File-1.2.1/tests/CSV/006.csv
File-1.2.1/tests/CSV/tests.txt
/usr/local/bin/tar: A lone zero block at 175
Test script:
---------------
pear install File
Expected result:
----------------
The package should be installed automatically.
Actual result:
--------------
Package installation fails.
[2005-08-30 17:26 UTC] olle dot jonsson at gmail dot com
I downloaded the file, unzipped and untarred it, and changed the Þ in Helgi's last name to T. Packed up again, and installed the new file:
C:\DOCUME~1\olle>pear install File-1.2.1.tgz
File already installed
So, no cigar. My package installer did not like the excercise, and just lists 1.2.0 in the "pear list".
[2005-08-30 21:44 UTC] kay at ct-gzsz dot de
I get this message also
xxx:~# PHP_PEAR_PHP_BIN="/usr/local/pd-admin2/bin/php5" pear upgrade file
downloading File-1.2.1.tgz ...
Starting to download File-1.2.1.tgz (15,892 bytes)
......done: 15,892 bytes
XML error: Undeclared entity warning at line 232
xxx:~#
[2005-08-31 13:51 UTC] grayw at mail dot montclair dot edu
mike(at php.net),
I did a search using the bug system to find any existing bugs like this one and I could not, which is why I opened this one. Would you mind providing the link to the existing one?
Perhaps the bug search could be improved? full text indexing can help with things like this.
Thanks,
Bill
[2005-08-31 18:30 UTC] grayw at mail dot montclair dot edu
The link to an actual bug report for this problem is here:
http://pear.php.net/bugs/bug.php?id=5071