cvs: pear /Net_UserAgent package.xml /Net_UserAgent/tests example.php
| From: | Jason Rust | Date: | Thu, 11 Mar 2004 16:46:45 +0000 |
| Subject: | cvs: pear /Net_UserAgent package.xml /Net_UserAgent/tests example.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17309@lists.php.net to get a copy of this message | ||
jrust Thu Mar 11 11:46:45 2004 EDT
Modified files:
/pear/Net_UserAgent package.xml
/pear/Net_UserAgent/tests example.php
Log:
* Preparing for release 2.0.1
* Fixed a couple bugs in the example script
http://cvs.php.net/diff.php/pear/Net_UserAgent/package.xml?r1=1.11&r2=1.12&ty=u
Index: pear/Net_UserAgent/package.xml
diff -u pear/Net_UserAgent/package.xml:1.11 pear/Net_UserAgent/package.xml:1.12
--- pear/Net_UserAgent/package.xml:1.11 Mon Mar 8 19:09:01 2004
+++ pear/Net_UserAgent/package.xml Thu Mar 11 11:46:44 2004
@@ -39,10 +39,10 @@
<release>
<license>PHP 2.01</license>
<state>stable</state>
- <version>2.0</version>
- <date>2004-03-03</date>
+ <version>2.0.1</version>
+ <date>2004-03-11</date>
<notes>
- * PHP5 compatible
+ * Made it PHP5 compatible in a way that is BC
* Added support for Safari
* Bumped konq's javascript version up to 1.4
* Fix bug where w3m caused warnings
http://cvs.php.net/diff.php/pear/Net_UserAgent/tests/example.php?r1=1.4&r2=1.5&ty=u
Index: pear/Net_UserAgent/tests/example.php
diff -u pear/Net_UserAgent/tests/example.php:1.4 pear/Net_UserAgent/tests/example.php:1.5
--- pear/Net_UserAgent/tests/example.php:1.4 Wed Mar 10 15:22:35 2004
+++ pear/Net_UserAgent/tests/example.php Thu Mar 11 11:46:45 2004
@@ -1,5 +1,6 @@
<?php
require_once '../Detect.php';
+error_reporting(E_ALL);
// {{{ some functions for printing
if (!function_exists('println')) {
@@ -15,7 +16,7 @@
}
}
- //echo $in_string . $linefeed;
+ echo $in_string . $linefeed;
}
}
@@ -23,7 +24,7 @@
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'fr;';
$browserSearch = array('ie6up', 'ie5', 'ie4', 'gecko',
'ns6up', 'ns4', 'nav', 'safari');
-if (($sapi = php_sapi_name()) == 'apache' || $sapi == 'cgi') {
+if (($sapi = php_sapi_name()) != 'apache' && $sapi != 'cgi') {
Net_UserAgent_Detect::setOption('userAgent', 'Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.0rc1) Gecko/20020417');
}