cvs: phpdoc /en/reference/info/functions php-uname.xml
| From: | Philip Olson | Date: | Fri, 04 Jul 2003 16:06:03 +0000 |
| Subject: | cvs: phpdoc /en/reference/info/functions php-uname.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355034@lists.php.net to get a copy of this message | ||
philip Fri Jul 4 12:06:03 2003 EDT
Modified files:
/phpdoc/en/reference/info/functions php-uname.xml
Log:
Fix example.
Index: phpdoc/en/reference/info/functions/php-uname.xml
diff -u phpdoc/en/reference/info/functions/php-uname.xml:1.4
phpdoc/en/reference/info/functions/php-uname.xml:1.5
--- phpdoc/en/reference/info/functions/php-uname.xml:1.4 Wed Jul 2 16:57:47 2003
+++ phpdoc/en/reference/info/functions/php-uname.xml Fri Jul 4 12:06:02 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.7 -->
<refentry id="function.php-uname">
<refnamediv>
@@ -37,10 +37,10 @@
FreeBSD
Windows NT XN1 5.1 build 2600
-WinNT
+WINNT
*/
-if (substr(PHP_OS, 0, 3) == 'Win') {
+if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'You are using Windows!';
} else {
echo 'You are not using Windows!';