Re: System_Folders - Mac testers needed

From: Date: Thu, 02 Mar 2006 16:31:31 +0000
Subject: Re: System_Folders - Mac testers needed
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-41587@lists.php.net to get a copy of this message
On 3/2/06, Christian Weiske <cweiske@cweiske.de> wrote: > > Hello all, > > > I am short before calling for votes on System_Folders. > With some help I was able to add Mac support to the package. > Unfortunately nobody tested it, so I can't be sure if it really works. > > So if anyone has some minutes to test the package on his computer (just > run one example file), it'd help to make sure the code actually works. I ran the first test.... looks like everything works. Web output: System: darwin array(9) { ["Username"]=> NULL ["Home"]=> NULL ["Documents"]=> NULL ["Shared documents"]=> NULL ["Temp"]=> string(5) "/tmp/" ["Desktop"]=> NULL ["AppData"]=> NULL ["Programs"]=> string(14) "/Applications/" ["Windows"]=> NULL } Console output: ucommbieber:~/Desktop bbieber$ php <?php /** * Test application for System_Folders * * @author Christian Weiske <cweiske@php.net> */ require_once 'System/Folders.php'; $sf = new System_Folders(); $arData = array( 'Username' => $sf->getUserName(), 'Home' => $sf->getHome(), 'Documents' => $sf->getDocuments(), 'Shared documents' => $sf->getSharedDocuments(), 'Temp' => $sf->getTemp(), 'Desktop' => $sf->getDesktop(), 'AppData' => $sf->getAppData(), 'Programs' => $sf->getPrograms(), 'Windows' => $sf->getWindows() ); echo "<pre>"; echo 'System: ' . $sf->getSys() . "\r\n"; var_dump($arData); ?> <pre>System: darwin array(9) { ["Username"]=> string(7) "bbieber" ["Home"]=> string(15) "/Users/bbieber/" ["Documents"]=> string(25) "/Users/bbieber/Documents/" ["Shared documents"]=> NULL ["Temp"]=> string(5) "/tmp/" ["Desktop"]=> string(23) "/Users/bbieber/Desktop/" ["AppData"]=> string(15) "/Users/bbieber/" ["Programs"]=> string(14) "/Applications/" ["Windows"]=> NULL } I tested the package on a Gentoo linux and a german windows xp. If some > other systems/language versions would be tested, it'd be nice. Looks like everything works on my Mac OS X 10.4.5 Thanks! > > -- > Regards/MfG, > Christian Weiske > > > -- -Brett http:saltybeagle.com aim:ianswerq

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