fix for php mysql text/blob problem

Checking for binary- or blob-flag if MySQL reports blob-type. 
This should fix string/blob errors ( For example #1920 or #1921 )