On my first programming job (2004), I was adding shopping cart functionality to a proprietary CMS written in PHP. For some reason I couldn't get a simple item listing to work. I had spent several hours debugging it before I found the problem.
The CMS had a database query result class with a method named something like "numberOfRecords". It returned the number of records minus one...
I told my boss about this, and his answer was "Yeah I know, but we don't want to fix it because a lot of code depend on that bug."
The CMS had a database query result class with a method named something like "numberOfRecords". It returned the number of records minus one...
I told my boss about this, and his answer was "Yeah I know, but we don't want to fix it because a lot of code depend on that bug."