I found the problem, it is in dns_import.php right after upgrading to 3.1.2.
If I take the dns_import.php from previous versions...
I just installed a new ISPConfig, last stable build. Everything worked well, including zone import.
After making some changes like...
Separate names with a comma.