Re: $File->write problems in new release?
Hey gwoo... thanks for the pointer. In fact that was exactly the problem. line 223 in /libs/file.php: $data = strtr($data, array("\r\n" => $lineBreak, "\n" => $lineBreak, "\r" => $lineBreak)); It inserts line endings regardless of the filetype, corrupting any binary data in the process. I'll open a ticket if that would help On Oct 23, 7:07 pm, Gwoo <[EMAIL PROTECTED]> wrote: > yeah, some changes were made for the line endings on the different OS. > Could you write a test case. The File tests are pretty easy to follow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: $File->write problems in new release?
yeah, some changes were made for the line endings on the different OS. Could you write a test case. The File tests are pretty easy to follow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
$File->write problems in new release?
Is anyone who uses the File class to write binary (etc images) data getting file corruption in the new pre-beta release? I haven't been able to pin down the cause just yet, but it seems to be something that changed between a couple of weeks ago (that's the last nightly i got), and yesterday's pre-beta. I may be completely wrong, but just checking if anyone's encountered this yet before I open a ticket. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---