Doc #64087 [NEW]: PHP5.4.3 print_r not showing array
| From: | sainthyoga2003 at gmail dot com | Date: | Mon, 28 Jan 2013 00:00:29 +0000 |
| Subject: | Doc #64087 [NEW]: PHP5.4.3 print_r not showing array | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9489@lists.php.net to get a copy of this message | ||
From: sainthyoga2003 at gmail dot com
Operating system: Windows 7 x64
PHP version: 5.4.11
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:PHP5.4.3 print_r not showing array
Description:
------------
---
From manual page:
http://www.php.net/function.get-browser#refsect1-function.get-
browser-examples
---
According with the first example, with print_r in the $navigation var it
would
show the complete array structure but else is now showing anything with the
second
parameter in true.
Test script:
---------------
<?php
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
$navegador = get_browser(null, true);
print_r($navegador);
?>
Expected result:
----------------
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803
Firefox/0.9.3
Array
(
[browser_name_regex] => ^mozilla/5\.0 (windows; .; windows nt 5\.1;
.*rv:.*)
gecko/.* firefox/0\.9.*$
[browser_name_pattern] => Mozilla/5.0 (Windows; ?; Windows NT 5.1;
*rv:*)
Gecko/* Firefox/0.9*
[parent] => Firefox 0.9
[platform] => WinXP
[browser] => Firefox
[version] => 0.9
[majorver] => 0
[minorver] => 9
[cssversion] => 2
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[vbscript] =>
[javascript] => 1
[javaapplets] => 1
[activexcontrols] =>
[cdf] =>
[aol] =>
[beta] => 1
[win16] =>
[crawler] =>
[stripper] =>
[wap] =>
[netclr] =>
)
or info according with my browsers: internet explorer 8, firefox 18, opera
12,
chrome 24
Actual result:
--------------
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803
Firefox/0.9.3
or info according with my browsers: internet explorer 8, firefox 18, opera
12,
chrome 24
--
Edit bug report at https://bugs.php.net/bug.php?id=64087&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64087&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64087&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64087&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64087&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64087&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64087&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64087&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64087&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64087&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64087&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64087&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64087&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64087&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64087&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64087&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64087&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64087&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64087&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64087&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64087&r=mysqlcfg