|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-24 16:22 UTC] tony2001@php.net
[2005-12-24 20:21 UTC] reboot at gmx dot ch
[2005-12-24 21:51 UTC] sniper@php.net
[2005-12-24 23:06 UTC] reboot at gmx dot ch
[2005-12-24 23:11 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
Description: ------------ str_pad should check it's parameters. With wrong parameters it is possible to cause an out of memory error. This problem also sometimes causes the PHP script to die completely and only leave an error in the apache error log, no out of memory error is reported by PHP. Reproduce code: --------------- <? str_pad("", log10(0), " "); ?> Expected result: ---------------- Warning or error reported by PHP about wrong usage of str_pad for better debugging, not just an our of memory error or silent death of the PHP script. Actual result: -------------- Error in the apache log: Allowed memory size of 8388608 bytes exhausted (tried to allocate 10 bytes)