|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-21 22:53 UTC] brianlmoon@php.net
[2001-05-21 22:58 UTC] millz at incogen dot com
[2001-05-22 00:06 UTC] brianlmoon@php.net
[2001-05-22 00:14 UTC] millz at incogen dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
I created a function called pad which performs exactly what str_repeat does (didn't realize str_repeat was there originally). function pad($length,$padVar="-"){ if($length<=0){return;} else{return pad($length-1,$padVar).$padVar;} } When passing a length > about 5000 the page will not load and I quickly get this error in the php.error log: [notice] child pid 15040 exit signal Segmentation fault (11) I assume it is b/c the function stack is just not up to the task, but I thought I would let you know anyway. Of course I am using str_repeat now.... Thanks! Jason