#21402 [NEW]: Critical bug in PEAR::Archive_Tar

From: Date: Sat, 04 Jan 2003 01:24:09 +0000
Subject: #21402 [NEW]: Critical bug in PEAR::Archive_Tar
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12074@lists.php.net to get a copy of this message
From: jmcastagnetto@php.net Operating system: Solaris 8 PHP version: 4.3.0 PHP Bug Type: PEAR related Bug description: Critical bug in PEAR::Archive_Tar There seems to be a problem in line 658 of Tar.php: if (strlen($v_stored_filename) > 99) { $this->_warning("Stored file name is too long (max. 99) : '$v_stored_filename'"); fclose($v_file); return true; } The "$v_file" var is not defined anywhere before that line in the _addFile() method. Trying to generate a tarball release from a phpDocumentor snapshot (phpdoc-20030102.tar.gz from http://developer.phpdoc.org/downloads/), generated the following notices and warnings (many repeated lines): % pear package ... Notice: Undefined variable: v_file in Tar.php on line 658 Warning: fclose(): supplied argument is not a valid stream resource in Tar.php on line 658 ... Notice: Undefined variable: v_file in Tar.php on line 658 Warning: fclose(): supplied argument is not a valid stream resource in Tar.php on line 658 Package /tmp/phpdoc/PhpDocumentor-1.2.0beta1.tgz done The tarball created is clearly fubared, because trying to do an install just bombs again: % pear install PhpDocumentor-1.2.0beta1.tgz warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/Converter.inc warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/DescHTML.inc warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/IntermediateParser.inc warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/Io.inc warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/LinkClasses.inc warning : bad md5sum for file /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/PackagePageElements.inc failed to write /export/dredox1/devel_server/php/lib/php/phpDocumentor/phpDocumentor/Converters/CHM/default/templates/default/templates/.tmpbasicindex.tpl Seems like PEAR::Archive_Tar needs a fix badly. -- Edit bug report at http://bugs.php.net/?id=21402&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21402&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21402&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21402&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21402&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21402&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21402&r=support Expected behavior: http://bugs.php.net/fix.php?id=21402&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21402&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21402&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21402&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21402&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21402&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21402&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21402&r=gnused

« previous php.pear.dev (#12074) next »