Re: [PEPr] +1 for File Formats::File_CAB

From: Date: Wed, 06 Feb 2008 11:48:18 +0000
Subject: Re: [PEPr] +1 for File Formats::File_CAB
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49101@lists.php.net to get a copy of this message
Yes I know about bin_dir but it would skip my /usr/bin/cabextract installation ;) Also, bin_dir may not necessarily point to /usr/local/bin. For someone wanting to install pear without sudo access, they need to make it something like ~/pear/bin.
True, maybe @bin_dir@ is not the right solution, I was just pointing that cabextract was not necessary installed in /usr/bin, and that your package should handle this better, atm there's *no* way to override the hardcoded path. Oh btw, I installed the pkg (http://www.assessments.com.au/pear/File_CAB/File_CAB-0.1.0.tgz) and did a simple test: <?php require_once 'File/CAB.php'; $cab = new File_CAB('tmp.cab'); $cab->listFiles(); ?> $ php test.php PHP Notice: Use of undefined constant OS_WINDOWS - assumed 'OS_WINDOWS' in /usr/local/lib/php/File/CAB.php on line 109 Notice: Use of undefined constant OS_WINDOWS - assumed 'OS_WINDOWS' in /usr/local/lib/php/File/CAB.php on line 109 PHP Notice: Use of undefined constant OS_WINDOWS - assumed 'OS_WINDOWS' in /usr/local/lib/php/File/CAB.php on line 110 Notice: Use of undefined constant OS_WINDOWS - assumed 'OS_WINDOWS' in /usr/local/lib/php/File/CAB.php on line 110 PHP Fatal error: Uncaught File_CAB_Exception: Cabinet extraction command not available in /home/izi/test.php on line 5 #0 /home/izi/test.php(5): File_CAB->__construct('tmp.cab') #1 {main} thrown in /usr/local/lib/php/File/CAB.php on line 118 Fatal error: Uncaught File_CAB_Exception: Cabinet extraction command not available in /home/izi/test.php on line 5 #0 /home/izi/test.php(5): File_CAB->__construct('tmp.cab') #1 {main} thrown in /usr/local/lib/php/File/CAB.php on line 118 but I guess you had already fixed the missing require_once 'PEAR.php'... -- David

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