Fix a bug with PMA_arrayWalkRecursive that causes it to apply a function to its keys/values more than once. A previously incorrect test is fixed as well. The bug happens because when keys are modified, PHP's foreach loops through the new keys again. This does not usually happen unless the iterating array is passed through by reference (or has refcount=1). See: http://stackoverflow.com/a/14854568/791890 Please see #936 for full explanation. Signed-off-by: Jeff Chan <jefftchan@gmail.com> |
||
|---|---|---|
| .. | ||
| PMA_array_test.php | ||
| PMA_checkPageValidity_test.php | ||
| PMA_fatalError_test.php | ||
| PMA_get_real_size_test.php | ||
| PMA_getLinks_test.php | ||
| PMA_getTableCount_test_dis.php | ||
| PMA_headerLocation_test.php | ||
| PMA_ifSetOr_test.php | ||
| PMA_isValid_test.php | ||
| PMA_securePath_test.php | ||
| PMA_warnMissingExtension_test.php | ||