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:
define('PHP_EOL', "\n");
}
}
On Mar 23, 11:06 am, Stephen <[email protected]> wrote:
> *PHP_EOL* (string <http://www.php.net/manual/en/language.types.string.php>)
> 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, [email protected] <[email protected]> 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_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 version.
>
> > Anyone experienced this?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> --
> Kind Regards
> Stephen
>
> http://www.ninjacodermonkey.co.uk
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php