From: danil dot megrabjan at gmail dot com
Operating system: openSuSE-10.2
PHP version: 5.2.5
PHP Bug Type: Strings related
Bug description: nl2br issue
Description:
------------
I try to print some `print_r` string with nl2br.
Reproduce code:
---------------
$a = print_r($array, true);
echo nl2br($a);
Expected result:
----------------
nl to br converting in strings of each array element.
Actual result:
--------------
0xb768d4db in zif_nl2br (ht=1, return_value=0x80252ac4,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at
/home/INFIN/megrabjan/Downloads/php-5.2.5/ext/standard/string.c:3845
3845 if (*str == '\r') {
--
Edit bug report at http://bugs.php.net/?id=44291&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44291&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44291&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44291&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44291&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44291&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44291&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44291&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44291&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44291&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44291&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44291&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44291&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44291&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44291&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44291&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44291&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44291&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44291&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44291&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44291&r=mysqlcfg