Date: 05/21/01
- Next message: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Previous message: kniprath.l <email protected>: "[PHP-DEV] Bug #11000 Updated: ftp_connect(...) produces ftpbuf 0 "error""
- Next in thread: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: brianlmoon <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 11009
Updated by: brianlmoon
Reported By: millz <email protected>
Old-Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
This is more of a programing error. This is a poor way to use recursive calls. A loop is the correct way to handle this.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-21 22:06:27] millz <email protected>
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11009&edit=2
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Previous message: kniprath.l <email protected>: "[PHP-DEV] Bug #11000 Updated: ftp_connect(...) produces ftpbuf 0 "error""
- Next in thread: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: brianlmoon <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Maybe reply: millz <email protected>: "[PHP-DEV] Bug #11009 Updated: Recursive call causes crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

