Re: PHP_EOL bug in cake 1.2

2011-03-25 Thread designv...@gmail.com
Thanks for clearing that up! I am in the unfortunate situation where I have ZERO control over the server, so I am at the mercy of php 4.3 :-( On Mar 24, 4:32 pm, mark_story wrote: > CakePHP maintains compatibility with PHP 4.4, nothing earlier. > > -Mark > > On Mar 23, 6:23 am, "designv...@gmail

Re: PHP_EOL bug in cake 1.2

2011-03-24 Thread mark_story
CakePHP maintains compatibility with PHP 4.4, nothing earlier. -Mark On Mar 23, 6:23 am, "designv...@gmail.com" wrote: > I have just updated one of my apps to latest 1.2 version and found > that emails being sent by the app were broken due to cake using > PHP_EOL. > > My server is php4 and PHP_E

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread Stephen
Good idea :) On 23 March 2011 11:23, designv...@gmail.com wrote: > Ahhh - I'm running 4.3.4 > > I have fixed it with: > > if (!defined('PHP_EOL')) { >switch (strtoupper(substr(PHP_OS, 0, 3))) { >case 'WIN': >define('PHP_EOL', "\r\n"); >break; >case 'DA

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
Ahhh - I'm running 4.3.4 I have fixed it with: if (!defined('PHP_EOL')) { switch (strtoupper(substr(PHP_OS, 0, 3))) { case 'WIN': define('PHP_EOL', "\r\n"); break; case 'DAR': define('PHP_EOL', "\r"); break; default:

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread Stephen
*PHP_EOL* (string ) Available since PHP 4.3.10 and PHP 5.0.2 It's so that it generates the correct newline for the correct OS. Have anymore information on your issue? On 23 March 2011 10:23, designv...@gmail.com wrote: > I have just upd

PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
I have just updated one of my apps to latest 1.2 version and found that emails being sent by the app were broken due to cake using PHP_EOL. My server is php4 and PHP_EOL is a php5 constant I think? I thought 1.2 was fully compatible with php4? If it's not then I will rollback to the last working