Mantis - Quercus
Viewing Issue Advanced Details
4006 minor always 04-20-10 00:35 02-04-11 02:20
hm2k  
 
normal  
closed 4.0.11  
fixed  
none    
none  
0004006: Predefined Constants such as PHP_EOL doesnt exist
echo PHP_EOL; //returns NULL; should return a new line

echo defined('PHP_EOL')?'yes':'no'; // returns: no; should return yes

See http://php.net/manual/en/reserved.constants.php [^]
 0001-Adding-reserved-constant-PHP_EOL.-Closes-1.patch [^] (1,121 bytes) 09-12-10 16:27

Notes
(0004734)
kle   
08-27-10 06:12   
This is a problem, for example with the sitepress-multilingual-cms WordPress plugin. It uses PHP_EOL a lot. Is there a workaround (other than changing the scripts)?
(0004746)
kdecherf   
09-12-10 16:23   
Yes, there is a bugfix available on GitHub :
http://github.com/CleverCloud/Quercus/commit/e175b63a9531301cf2f6644a903de1e32b5f82fa [^]
(0004759)
domdorn   
09-28-10 06:54   
fixed in current svn ref 7555.
should be in 4.0.11 release.