Bug #18598 Updated: wrong Line-Break-syntax
| From: | derick@php.net | Date: | Fri, 26 Jul 2002 17:13:14 +0000 |
| Subject: | Bug #18598 Updated: wrong Line-Break-syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15364@lists.php.net to get a copy of this message | ||
ID: 18598
Updated by: derick@php.net
Reported By: kh@nextweb.ch
-Status: Open
+Status: Closed
Bug Type: Compile Failure
Operating System: Irix 6.5.11
PHP Version: 4.2.2
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-26 12:06:04] kh@nextweb.ch
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 this bug report at http://bugs.php.net/?id=18598&edit=1