Hashs working okay with Java, but not in C++/PHP. (???)