Modified php script to debug hardware types function bug #7649