From 0186acacdbe33f804c135aeb850c342783a9627f Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 13 Aug 2004 07:08:46 +0000 Subject: [PATCH] - MFH: Added PHP_EOL constant that contains the OS way of representing newlines. (Patch by Paul Hudson) --- NEWS | 2 ++ main/main.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index ca80d8ae16..a1d9bd528c 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5.0.2 +- Added PHP_EOL constant that contains the OS way of representing newlines. + (Paul Hudson, Derick) 12 Aug 2004, PHP 5.0.1 - Changed destructor mechanism so that destructors are called prior to request diff --git a/main/main.c b/main/main.c index 9b0a3c9701..53499bcb39 100644 --- a/main/main.c +++ b/main/main.c @@ -1426,6 +1426,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod REGISTER_MAIN_STRINGL_CONSTANT("PHP_CONFIG_FILE_PATH", PHP_CONFIG_FILE_PATH, sizeof(PHP_CONFIG_FILE_PATH)-1, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_STRINGL_CONSTANT("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR, sizeof(PHP_CONFIG_FILE_SCAN_DIR)-1, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_STRINGL_CONSTANT("PHP_SHLIB_SUFFIX", PHP_SHLIB_SUFFIX, sizeof(PHP_SHLIB_SUFFIX)-1, CONST_PERSISTENT | CONST_CS); + REGISTER_MAIN_STRINGL_CONSTANT("PHP_EOL", PHP_EOL, sizeof(PHP_EOL)-1, CONST_PERSISTENT | CONST_CS); php_output_register_constants(TSRMLS_C); php_rfc1867_register_constants(TSRMLS_C); -- 2.50.1