Jump to content

What is the difference between and issue and a bug?


alvin567

Recommended Posts

Well a bug is particularly involved with what your code does. If your script has a bug, it indicates that you either makes syntax error, or that your script is insecure inherently, or perhaps the script does something different than you want it to.

 

An issue is much more complicated. Your script may appear just fine and work normally, but it is resource-intensive because it is not optimized or that you use newbie code. This code below, for instance, is a perfect example for a script that does not have any bugs but has an issue:

 

$i = 0;
while($i<1){
// load database information from mysql, sqlite or whatever
$i++;

}

 

See? The script works normally on your site and you wont notice any fatal errors or warnings. It does not have a bug, but it has an issue. The while loop runs only once, even amateurs dont do this! To amend it, you can use mysql_fetch_assoc() in your while loop, or a PDO statement object if you use PDO. This will fix the issue in your script. If you remove the increment $i++ however, it will be a bug since you create an infinite loop.

 

To summarize, a bug is a subset of an issue, an issue can be more than just a bug. Hopefully this helps.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.