We provide this file, it should be readable.
These checks no longer work, since --INI-- values are no longer
passed to --SKIPIF--.
Bug #65550 (get_browser() incorrectly parses entries with "+" sign)
--INI--
browscap={PWD}/browscap.ini
---SKIPIF--
-<?php
-if (!is_readable(ini_get('browscap'))) die('skip browscap.ini file ' . ini_get('browscap') . ' not readable');
-?>
--FILE--
<?php
$user_agent = 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v613';
Test get_browser() function : basic functionality
--INI--
browscap={PWD}/browscap.ini
---SKIPIF--
-<?php
- /**
- * Basic test, it would be pretty much coincidence if there's
- * a browscap.ini on another place that isn't valid.
- */
- if(! is_readable( ini_get( 'browscap' ) ) ) {
- die( 'skip: browscap.ini file ' . ini_get('browscap') . " not readable" );
- }
-?>
--FILE--
<?php
/* Prototype : mixed get_browser([string browser_name [, bool return_array]])
Test get_browser() function : error functionality
--INI--
browscap={PWD}/browscap.ini
---SKIPIF--
-<?php
- /**
- * Basic test, it would be pretty much coincidence if there's
- * a browscap.ini on another place that isn't valid.
- */
- if(! is_readable( ini_get( 'browscap' ) ) ) {
- die( 'skip: browscap.ini file ' . ini_get('browscap') . " not readable" );
- }
-?>
--FILE--
<?php
/* Prototype : mixed get_browser([string browser_name [, bool return_array]])
Test get_browser() function : variation functionality: extra browser names
--INI--
browscap={PWD}/browscap.ini
---SKIPIF--
-<?php
- /**
- * Basic test, it would be pretty much coincidence if there's
- * a browscap.ini on another place that isn't valid.
- */
- if(! is_readable( ini_get( 'browscap' ) ) ) {
- die( 'skip: browscap.ini file ' . ini_get('browscap') . " not readable" );
- }
-?>
--FILE--
<?php
/* Prototype : mixed get_browser([string browser_name [, bool return_array]])
Test get_browser() function variation : Return data as object
--INI--
browscap={PWD}/browscap.ini
---SKIPIF--
-<?php
- /**
- * Basic test, it would be pretty much coincidence if there's
- * a browscap.ini on another place that isn't valid.
- */
- if(! is_readable( ini_get( 'browscap' ) ) ) {
- die( 'skip: browscap.ini file ' . ini_get('browscap') . " not readable" );
- }
-?>
--FILE--
<?php