cvs: php4 /pear/OS Guess.php

From: Date: Sun, 19 May 2002 06:13:07 +0000
Subject: cvs: php4 /pear/OS Guess.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3926@lists.php.net to get a copy of this message
ssb Sun May 19 02:13:07 2002 EDT Modified files: /php4/pear/OS Guess.php Log: * take uname as optional constructor parameter Index: php4/pear/OS/Guess.php diff -u php4/pear/OS/Guess.php:1.2 php4/pear/OS/Guess.php:1.3 --- php4/pear/OS/Guess.php:1.2 Fri May 3 09:13:51 2002 +++ php4/pear/OS/Guess.php Sun May 19 02:13:07 2002 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Guess.php,v 1.2 2002/05/03 13:13:51 ssb Exp $ +// $Id: Guess.php,v 1.3 2002/05/19 06:13:07 ssb Exp $ // {{{ uname examples @@ -79,7 +79,7 @@ var $release; var $extra; - function OS_Guess() + function OS_Guess($uname = null) { static $sysmap = array( 'HP-UX' => 'hpux', @@ -90,7 +90,9 @@ 'i586' => 'i386', 'i686' => 'i386', ); - $uname = php_uname(); + if ($uname === null) { + $uname = php_uname(); + } $parts = preg_split('/\s+/', trim($uname)); $n = count($parts);

« previous php.pear.cvs (#3926) next »