Re: [PHP-DEV] Add a memory limit in mysql ext

2008-03-31 Thread Andrey Hristov
Hi, Olivier Bonvalet wrote: Hello, I often host clients which have "bad" PHP/SQL code ; as for example a "select *" + mysql_row_nums on a 200Mo table just to count lines... So I add a little patch to throw a warning in case the result of mysql_query is larger than a specified limit. I use th

[PHP-DEV] Add a memory limit in mysql ext

2008-03-30 Thread Olivier Bonvalet
Hello, I often host clients which have "bad" PHP/SQL code ; as for example a "select *" + mysql_row_nums on a 200Mo table just to count lines... So I add a little patch to throw a warning in case the result of mysql_query is larger than a specified limit. I use the setting "mysql.min_stored_data