I'm not sure if this is the best solution. If there is another, already
provided, solution, I would be thankful if somebody points this out to me.
I figured it already out. The Problem is a known bug in PDO Layer from MS.
It can be fixed with the litte function
function hextostr($x)
{
$s='';
foreach(explode("\n",trim(chunk_split($x,2))) as $h) $s.=chr(hexdec($h));
return($s);
}
from the comment of Marko Kozjak at
http://jeremycook.ca/2010/02/21/handling-binary-data-with-pdo/
This function can be used to convert the binary date/hex values received by
the PDO Layer to the expected value.
--
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.