Bug #18598: wrong Line-Break-syntax
| From: | kh at nextweb dot ch | Date: | Fri, 26 Jul 2002 16:06:05 +0000 |
| Subject: | Bug #18598: wrong Line-Break-syntax | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-15359@lists.php.net to get a copy of this message | ||
From: kh@nextweb.ch
Operating system: Irix 6.5.11
PHP version: 4.2.2
PHP Bug Type: Compile Failure
Bug description: wrong Line-Break-syntax
The file ext/standard/datetime.c contains wrong line-breaks starting at
line 597 and ending on line 600:
if (NULL == (ta = php_localtime_r(×tamp, &tmbuf))) {^M
php_error(E_WARNING, "%s(): invalid local time",^M
get_active_function_name(TSRMLS_C));^M
RETURN_FALSE;^M
On my Irix-system with SGI cc this leads to the following errors when
compiling:
>>>>>>>>>>>>>>>>>>>>>
"datetime.c", line 600: error(1029): expected an expression
RETURN_FALSE;
^
"datetime.c", line 601: error(1065): expected a ";"
}
^
"datetime.c", line 768: warning(1110): statement is unreachable
break;
^
8 errors detected in the compilation of "datetime.c".
*** Error code 2 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
<<<<<<<<<<<<<<<<<<<<<
Simply removing the "^M" at the end of these four lines resolves the
problem.
--
Edit bug report at http://bugs.php.net/?id=18598&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18598&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18598&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18598&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18598&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18598&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18598&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18598&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18598&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18598&r=globals