About C#/.NET programming, BlogEngine usage, and Software testing
Posts tagged pear
PEAR PHP_CodeSniffer: End of line character is invalid; expected “n” but found “rn”
Apr 26th
The Issue:
I have another ERROR discovered by PEAR PHP_CodeSniffer, http://pear.php.net/package/PHP_CodeSniffer:
End of line character is invalid; expected “n” but found “rn”
And this ERROR is only occurring at the very first line, at , in my PHP code.
The Sollution:
For new files, you can change the default line delimiter to Unix style, such as in Eclipse, you can,
Window –>
PHP – PEAR installation get warning: date(): It is not safe to rely on the system’s timezone settings.
Apr 17th
The Issue:
While I am install the PEAR for PHP 5.3.2 version with display_errors settings on, I get following error,
===========================================================
Warning: date(): It is not safe to rely on the system’s timezone settings. You a
re *required* to use the date.timezone setting or the date_default_timezone_set(
) function. In case you used any of those methods and you are still getting this