zgkhoo Posted October 30, 2007 Share Posted October 30, 2007 how i know my site got how many bugs? is it any technique to find it out? thanks. Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/ Share on other sites More sharing options...
teng84 Posted October 30, 2007 Share Posted October 30, 2007 how to detect bug ? run the page and see if theres a bug nothing more nothing less Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380861 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 some bug only appear when there is a lot of user sign in... Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380864 Share on other sites More sharing options...
teng84 Posted October 30, 2007 Share Posted October 30, 2007 explain it better Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380866 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 ??? ??? Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380954 Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 some bug only appear when there is a lot of user sign in... What kind of bug, max_user bug or ? LOL Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380957 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 eg number of products of my site increase to 999999999999999999999 which my product table contains 20 field.. 999999999999999999999*20= Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380961 Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 That doesn't happen automatically, you must have written somewhere in your code Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380963 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 huh? wat u meant? ??? Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380976 Share on other sites More sharing options...
~n[EO]n~ Posted October 30, 2007 Share Posted October 30, 2007 eg number of products of my site increase to 999999999999999999999 which my product table contains 20 field.. 999999999999999999999*20= and what does this mean, does this happen automatically Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380980 Share on other sites More sharing options...
zgkhoo Posted October 30, 2007 Author Share Posted October 30, 2007 yup ..automatically when products of my website increase....... Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-380986 Share on other sites More sharing options...
Azu Posted October 30, 2007 Share Posted October 30, 2007 You should probably store it as an unsigned bigint.. or.. god forbid.. a blob, then. Then you shouldn't have any problems with it getting to big. Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-381508 Share on other sites More sharing options...
Psycho Posted October 30, 2007 Share Posted October 30, 2007 Are you saying that you expect your site to have 999999999999999999999 products. That is NOT a realistic bug. If you were to add 1,000 products every second it would take 31 Billion years to max out that number! However, you never know if someone was to reset the auto-increment number. So, do you want the user to face the consequences of such an act or do you want a way to handle it gracefully? If you want to handle it gracefully you could create a function to run before creating any new product. The function could see what the highest ID int he table is. If the ID is the max allowed value then you could have a clean-up function run which will reset all the id's incrementally throughout all the tables. It would probably be a lengthy process. Link to comment https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-381521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.