RE: [PHP-DEV] RE: Bug #4787 Updated: get_browser() still segments
| From: | Sean R. Bright | Date: | Sat, 28 Apr 2001 18:04:21 +0000 |
| Subject: | RE: [PHP-DEV] RE: Bug #4787 Updated: get_browser() still segments | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52728@lists.php.net to get a copy of this message | ||
This seems like a relatively easy thing to fix. Perhaps we should just do
that.
> -----Original Message-----
> From: James Moore [mailto:jmoore@php.net]
> Sent: Saturday, April 28, 2001 2:02 PM
> To: James Moore; Liz
> Cc: Php-Dev@Lists.Php.Net
> Subject: RE: [PHP-DEV] RE: Bug #4787 Updated: get_browser() still
> segments
>
>
> replying to myself; but this seems to be caused by
> browscap.ini not having
> an value for
>
> AuthenticodeUpdate=
>
> all others have varaible=value this is the only one without a
> valid value.
> Do we need to fix zend_ini_parser.c to deal with this or do we need to
> contact the browsecap people about this?
>
> - James
>
> > -----Original Message-----
> > From: James Moore [mailto:jmoore@php.net]
> > Sent: 28 April 2001 18:46
> > To: Liz
> > Cc: Php-Dev@Lists.Php.Net
> > Subject: RE: [PHP-DEV] RE: Bug #4787 Updated: get_browser() still
> > segments
> >
> >
> > the php.exe gives an error parsing the newest browscap.ini
> file Ill look
> > into that.
> >
> > - James
> >
> > > -----Original Message-----
> > > From: Liz [mailto:liz@xcalibur.co.uk]
> > > Sent: 28 April 2001 18:30
> > > To: Bug Database
> > > Subject: [PHP-DEV] RE: Bug #4787 Updated: get_browser()
> still segments
> > >
> > >
> > > Yeah, I noticed that as I downloaded it.. odd, coz RC7 didnt...
> > >
> > > > -----Original Message-----
> > > > From: Bug Database [mailto:php-dev@lists.php.net]
> > > > Sent: Saturday, April 28, 2001 5:51 PM
> > > > To: liz@xcalibur.co.uk
> > > > Subject: Bug #4787 Updated: get_browser() still segments
> > > >
> > > >
> > > > ID: 4787
> > > > Updated by: jmoore
> > > > Reported By: liz@xcalibur.co.uk
> > > > Old-Status: Open
> > > > Status: Closed
> > > > Bug Type: Reproduceable crash
> > > > PHP Version: 4.0.0 Release
> > > > Assigned To:
> > > > Comments:
> > > >
> > > > This works in the latest CVS. (tested under Win2k (ISAPI & CGI)
> > > > without and with browscap.ini)
> > > >
> > > > - James
> > > >
> > > > Previous Comments:
> > > >
> > > ------------------------------------------------------------------
> > > ---------
> > > >
> > > > [2001-04-24 17:22:46] liz@xcalibur.co.uk
> > > > With 4.0.5RC7 this still occurs, it only worked for the
> CVS at the
> > > > time it was closed. Its never worked before or since.
> > > >
> > > > I can also recreate this on Mandrake as well. Oh, and it seems
> > > > under windows 2000 pro/IIS5
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > ---------
> > > >
> > > > [2000-07-23 18:42:25] liz@xcalibur.co.uk
> > > > That works very nicely, thank you.
> > > >
> > > > Although, the code on the get_browser() page actually returned.
> > > >
> > > > Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
> > > >
> --------------------------------------------------------------------
> > > > ------------
> > > > browser_name_pattern: Mozilla/4.0 (compatible; MSIE
> 5.5; Windows 98)
> > > > parent: IE 5.0
> > > > version: 5.5
> > > > minorver: 5
> > > > platform: Win98
> > > > Beta: 1
> > > > browser: IE
> > > > Version: 5.0
> > > > majorver: 5
> > > > frames: 1
> > > > tables: 1
> > > > cookies: 1
> > > > backgroundsounds: 1
> > > > vbscript: 1
> > > > javascript: 1
> > > > javaapplets: 1
> > > > ActiveXControls: 1
> > > > Win16:
> > > > beta:
> > > > AK:
> > > > SK:
> > > > AOL:
> > > > crawler:
> > > > MSN:
> > > > CDF: 1
> > > > DHTML: 1
> > > > XML: 1
> > > >
> > > > (ie the browser name pattern had extra backslashes in before the
> > > > fullstops - but that I suppose is a different problem)
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > ---------
> > > >
> > > > [2000-07-23 13:35:09] stas@cvs.php.net
> > > > Please try latest CVS and report what happens.
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > ---------
> > > >
> > > > [2000-06-02 21:31:48] liz@xcalibur.co.uk
> > > > I have compiled PHP with
> > > >
> > > > ./configure' '--width-apache=/usr/src/apache-3.1.12'
> '--with-mysql'
> > > > '--enable-track-vars' '--disable-debug'
> > > > '--enable-calendar'
> > > > '--enable-dbase' '--enable-ftp'
> > > > '--enable-trans-sid'
> > > > '--enable-inline-optimization' '--enable-discard-path'
> > > >
> > > > I have tried every which way but loose to get this to work, even
> > > > tried compiling up a CGI version. (as above but without apache)
> > > >
> > > > OK, when I run it as a module, using the code for the
> get_browser()
> > > > in the helpfile on here aka
> > > >
> > > > <?php
> > > > function list_array( $browser ) {
> > > > while ( list( $key, $value ) = each( $browser ) ) {
> > > > $str .= "<b>$key:</b> $value<br>n";
> > > > }
> > > > return $str;
> > > > }
> > > > echo "$HTTP_USER_AGENT<hr>n";
> > > > $browser = get_browser();
> > > > echo list_array( (array) $browser );
> > > > ?>
> > > >
> > > > All I get is
> > > >
> > > > Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
> > > >
> --------------------------------------------------------------------
> > > > ------------
> > > > 0:
> > > >
> > > > Whatever the browser/os is, I downloaded the
> browser.ini file from
> > > > cyberscap I think - whereever it was PHP suggested, and
> I know its
> > > > reading it, as if I break the ini file by making false
> entries it
> > > > tells me - I checked that much
> > > >
> > > > The CGI version does a segmentation fault.
> > > >
> > > > A working example is on
> > > > http://www.xcalibur.co.uk/browser.html
> > > >
> > > >
> > > > It also did it with
> > > > ./configure' '--width-apache=/usr/src/apache-3.1.12'
> > > >
> > > >
> > > ------------------------------------------------------------------
> > > ---------
> > > >
> > > >
> > > >
> > > > ATTENTION! Do NOT reply to this email!
> > > > To reply, use the web interface found at
> > http://bugs.php.net/?id=4787&edit=2
> > >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>