Brion wrote:
Greg Sabino Mullane wrote:
I'm trying to understand Math.php to fix a bug, but I don't understand why math_inputhash and math_outputhash are being stored as binary values. It appears that Math.php is simply coverting the original hex values to a binary upon store to the database, and then doing the inverse when it is read back out. What's the reason for this as opposed to simply storing the hex values directly in the database?
There's no good reason for it; perhaps premature optimization on Taw's part back in the day. :)
We could change it to hex, but that may require changing the existing entries or such.
Well, I haven't looked at it, but just read these messages...
If I get it right, there's no difference between storing something as hex or storing it as binary, because hex is just a shorter form of presentation for binary values, right?
So, was "hex" in the original message referring to strings to save some numeric values?
*confused*
-- chris
------ Der Inhalt dieses E-Mails ist streng vertraulich und m�glicherweise gesetzlich besonders gesch�tzt. Dieses E-Mail ist nur f�r den Adressaten bestimmt. Wenn Sie nicht der beabsichtigte Empf�nger sind, ist es Ihnen nicht gestattet und stellt m�glicherweise einen Gesetzesverstoss dar, dieses E-mail zu kopieren, zu verbreiten oder anderweitig zu verwenden. In diesem Fall sollten Sie uns so schnell wie m�glich benachrichtigen und dieses E-mail l�schen.
Le contenu de ce courriel est strictement confidentiel et probablement l�galement prot�g�. Il n'est adress� qu'aux destinataires mentionn�s. Si vous n'en faites pas partie, vous n'avez pas l'autorisation de le copier, ni de le diffuser, ni m�me de le destiner � un autre usage - ce qui dans chaque cas peut en effet constituer une infraction � la loi. Dans ce cas, vous devriez nous en informer imm�diatement et effacer ce courriel.
Il contenuto del presente messaggio elettronico � da considerare di massima riservatezza e possibilmente � protetto in modo particolare dalla legge. La presente e-mail � riservata alla sola attenzione della persona destinataria. Se lei non � la persona che avrebbe dovuto ricevere la e-mail, non le � permesso e possibilmente rappresenta una violazione della legge, copiare la presente e-mail, diffonderla o utilizzarla in qualsiasi altro modo. In questo caso lei dovrebbe informarci al pi� presto possibile e cancellare la presente e-mail.