#37204 [Bgs]: Can cause open-ended exception bomb

From: Date: Wed, 26 Apr 2006 07:38:49 +0000
Subject: #37204 [Bgs]: Can cause open-ended exception bomb
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96249@lists.php.net to get a copy of this message
ID: 37204 User updated by: mailslot at mac dot com Reported By: mailslot at mac dot com Status: Bogus Bug Type: Reproducible crash Operating System: Linux 2.4.21-9.EL PHP Version: 5.1.2 New Comment: Never-mind. I'll fix it myself. Previous Comments: ------------------------------------------------------------------------ [2006-04-26 07:31:04] tony2001@php.net It means you didn't enable memory limit. ------------ php -r 'function foo() { $a = "text"; foo(); }; foo();' Fatal error: Allowed memory size of 2097152 bytes exhausted at ..Zend/zend_ptr_stack.h:59 (tried to allocate 137216 bytes) in Command line code on line 1 ------------------------------------------------------------------------ [2006-04-26 07:26:57] mailslot at mac dot com No. They really aren't. I don't have 2GB RAM set in the config file. ------------------------------------------------------------------------ [2006-04-26 07:25:18] tony2001@php.net >These values are completely ignored during recursion bombs. They ARE respected. ------------------------------------------------------------------------ [2006-04-26 04:58:26] mailslot at mac dot com Okay... no recursion limits. Fine. I'd rather have to enable dangerous recursion levels, but I can live without it. I still think this bug is valid. Could you please respect the configuration defines that set limits for script execution time and memory usage? These values are completely ignored during recursion bombs. Surely that's not expected behavior. If they worked as advertised, this bug would never have even manifested itself. ------------------------------------------------------------------------ [2006-04-26 03:13:56] judas dot iscariote at gmail dot com the recursion Limit problem is well known (for years), and there is no solution at this time.( because solution should be adecuate for any legitimate use, not just for average use) Use Xdebug to set a recursion limit in your dev enviroment. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37204 -- Edit this bug report at http://bugs.php.net/?id=37204&edit=1

« previous php.bugs (#96249) next »