From:             kop at meme dot com
Operating system: RH 7.3
PHP version:      4.3.2
PHP Bug Type:     Documentation problem
Bug description:  log_errors_max_len default wrong in doc

The documentation on "error handling and reporting functions" says that the
default value for log_errors_max_len is 1024 and that the units are
Kbytes.
A 1 MB default sounds wrong.  I tried using trigger_error to send a large
log messsage and it got truncated to (about) 1K.  So, either the
documented default or the documented units are wrong.  (If it's the
default value, don't forget to change the ini_set() documentation too.)

This script tested with php 4.1.2.  (And I don't see log_errors_max_len in
php_info() output so I'm not inclined to muck about changing the config to
see what the units are.)

trigger_error("AAAAAAAAAAAAAAAAAAAAAAAAaaaaa
Reeeeeeeeeeeeeeeeeeeeeaaaaaaaaaaaa\aaaaaallllllllllllllllllllllllllyyyyyyyyyyyyyyyyyyyyyy
       
lllllllllllllllllllllllo\ooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnggggggggggggggggggggg
eeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\eeeeeeeeeerror
     message to
test    the log limit.");

-- 
Edit bug report at http://bugs.php.net/?id=24102&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24102&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24102&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24102&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24102&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24102&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24102&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24102&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24102&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24102&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24102&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24102&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24102&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24102&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24102&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to