FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16935&edit=1

ID: 16935
Updated by: ken@linux.ie
Reported By: t dot zander at tuneup dot de
Summary: Undefined offset: 1 in
pear_net_useragent_detect.php:418 as PHP notice
Status: Open
Type: Bug
Package: Net_UserAgent_Detect
Operating System: unknown
Package Version: 2.5.1
PHP Version: 5.2.5
-Assigned To:
+Assigned To: kguest
Roadmap Versions:
New Comment:

-Assigned To:
+Assigned To: kguest



Previous Comments:
------------------------------------------------------------------------

[2010-01-19 09:51:02] mj

Added #patch bug:16935;patch:fix_for_warning;revision:1263894662;.

------------------------------------------------------------------------

[2009-12-21 10:55:30] tu_tobiaszander

Description:
------------
We're using the Net_UserAgent_Detect and are getting following php
notice on our system reported:
Undefined offset: 1 in pear_net_useragent_detect.php:418

Following code snippet is the source of that notice:
417: preg_match(';gecko/([\d]+)\b;i', $agt, $matches);
418: Net_UserAgent_Detect::setFeature('gecko', $matches[1]);

There seem to be gecko browsers out there, which don't fit the
';gecko/([\d]+)\b;i' regular expression, so $matches[1] is not set, when
used in the next line.

------------------------------------------------------------------------

Search Discussions

  • Ken at Apr 15, 2010 at 10:14 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16935&edit=1

    ID: 16935
    Updated by: ken@linux.ie
    Reported By: t dot zander at tuneup dot de
    Summary: Undefined offset: 1 in
    pear_net_useragent_detect.php:418 as PHP notice
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: Net_UserAgent_Detect
    Operating System: unknown
    Package Version: 2.5.1
    PHP Version: 5.2.5
    Assigned To: kguest
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on
    pear.php.net by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2010-04-15 11:07:49] kguest

    -Assigned To:
    +Assigned To: kguest


    ------------------------------------------------------------------------

    [2010-01-19 09:51:02] mj

    Added #patch bug:16935;patch:fix_for_warning;revision:1263894662;.

    ------------------------------------------------------------------------

    [2009-12-21 10:55:30] tu_tobiaszander

    Description:
    ------------
    We're using the Net_UserAgent_Detect and are getting following php
    notice on our system reported:
    Undefined offset: 1 in pear_net_useragent_detect.php:418

    Following code snippet is the source of that notice:
    417: preg_match(';gecko/([\d]+)\b;i', $agt, $matches);
    418: Net_UserAgent_Detect::setFeature('gecko', $matches[1]);

    There seem to be gecko browsers out there, which don't fit the
    ';gecko/([\d]+)\b;i' regular expression, so $matches[1] is not set, when
    used in the next line.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 15, '10 at 10:13a
activeApr 15, '10 at 10:14a
posts2
users1
websitepear.php.net

1 user in discussion

Ken: 2 posts

People

Translate

site design / logo © 2022 Grokbase