cvs: php-gtk /test gtk.php hello.php list.php
| From: | Peter Petermann | Date: | Fri, 02 Mar 2001 13:18:36 +0000 |
| Subject: | cvs: php-gtk /test gtk.php hello.php list.php | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-106@lists.php.net to get a copy of this message | ||
zimt Fri Mar 2 05:18:36 2001 EDT
Modified files:
/php-gtk/test list.php hello.php gtk.php
Log:
changed use of $OS for os detection
to use of constant PHP_OS,
$OS didnt work for detecting windows here,
and i couldnt find any documentation about it.
PHP_OS is a constant which shows right OS...
Index: php-gtk/test/list.php
diff -u php-gtk/test/list.php:1.2 php-gtk/test/list.php:1.3
--- php-gtk/test/list.php:1.2 Thu Mar 1 08:43:33 2001
+++ php-gtk/test/list.php Fri Mar 2 05:18:36 2001
@@ -1,6 +1,6 @@
<?
-if (strtoupper(substr($OS, 0, 3)) == 'WIN')
+if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');
Index: php-gtk/test/hello.php
diff -u php-gtk/test/hello.php:1.2 php-gtk/test/hello.php:1.3
--- php-gtk/test/hello.php:1.2 Thu Mar 1 08:43:33 2001
+++ php-gtk/test/hello.php Fri Mar 2 05:18:36 2001
@@ -1,6 +1,6 @@
<?
-if (strtoupper(substr($OS, 0, 3)) == 'WIN')
+if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');
Index: php-gtk/test/gtk.php
diff -u php-gtk/test/gtk.php:1.8 php-gtk/test/gtk.php:1.9
--- php-gtk/test/gtk.php:1.8 Wed Feb 28 13:33:19 2001
+++ php-gtk/test/gtk.php Fri Mar 2 05:18:36 2001
@@ -1,7 +1,7 @@
<?php
-/* $Id: gtk.php,v 1.8 2001/02/28 21:33:19 andrei Exp $ */
+/* $Id: gtk.php,v 1.9 2001/03/02 13:18:36 zimt Exp $ */
-if (strtoupper(substr($OS, 0, 3)) == 'WIN')
+if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_gtk.dll');
else
dl('php_gtk.so');