php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77337 Stack trace in log cut off
Submitted: 2018-12-22 16:27 UTC Modified: 2021-11-28 21:49 UTC
From: olafvdspek at gmail dot com Assigned: bukka (profile)
Status: Closed Package: FPM related
PHP Version: 7.3.0 OS: Debian
Private report: No CVE-ID: None
 [2018-12-22 16:27 UTC] olafvdspek at gmail dot com
Description:
------------
Only 7 lines are shown, is some kind of limit hit?
It's slightly less than 900 characters.

Lighttpd / PHP-FPM

Expected result:
----------------
Full stack trace

Actual result:
--------------
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #0 /srv/strike-team.net/htdocs/phpbb/phpbb/cache/driver/file.php(182): phpbb\cache\driver\file->_write('data_ext_finder', Array, 1577031659)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #1 [internal function]: phpbb\cache\driver\file->put('_ext_finder', Array)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #2 /srv/strike-team.net/htdocs/phpbb/phpbb/cache/service.php(96): call_user_func_array(Array, Array)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #3 /srv/strike-team.net/htdocs/phpbb/phpbb/finder.php(542): phpbb\cache\service->__call('put', Array)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #4 /srv/strike-team.net/htdocs/phpbb/phpbb/finder.php(375): phpbb\finder->find_from_paths(Array, true, false)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #5 /srv/strike-team.net/htdocs/phpbb/phpbb/finder.php(274): phpbb\finder->find(true, false)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #6 /srv/strike-team.net/htdocs/phpbb/phpbb/module/module_manager.php(123): phpbb\finder->get_classes(true)
2018-12-22 17:20:59: (mod_fastcgi.c.425) FastCGI-stderr: #7 /srv/strike-team.net/htdocs/phpbb/phpbb/install/module/install_data/task/add_modules.php(263): phpbb\module\module_manager->get_modu...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-12-22 19:50 UTC] sjon at hortensius dot net
PHP 7.3 introduced log_limit: http://php.net/manual/en/install.fpm.configuration.php#log-limit which defaults to 1024 characters
 [2018-12-22 22:38 UTC] olafvdspek at gmail dot com
> Log limit for the logged lines which allows to log messages longer than 1024 characters without wrapping. Default value: 1024. Available as of PHP 7.3.0.

Does this control truncation or wrapping?

I don't think stack traces should be cut off by default.
 [2021-11-28 21:49 UTC] bukka@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: bukka
 [2021-11-28 21:49 UTC] bukka@php.net
Yes it controls truncation and wrapping. Increasing the log_limit value will fix the issue.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC