This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Detects infinite loops containing Mysqli prepared statements | |
* by comparing the number of prepared statements run by the current process | |
* to those still active count on the DB across all processes. | |
* | |
* This class can easily be unit tested by something like this: | |
public function testYourQueryFunctionForInfinitLoops() | |
{ |
OlderNewer