joomla/joomla-cms — Issue #134: The constants IS_WIN, IS_MAC, IS_UNIX are used in the system?
Author: fitorec
Created: 2012-02-22 06:34:50+00:00
State: open

Checking the file [libraries/import.php](https://github.com/joomla/joomla-cms/blob/master/libraries/import.php#L22) I'm a question regarding the use of constants **IS_WIN**, **IS_MAC**, **IS_UNIX**.

Somewhere in the CMS are used?

Moreover [libraries/joomla/filesystem/path.php](https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/filesystem/path.php#L13) file defines constants: JPATH_ISWIN and JPATH_ISMAC on lines 13, 16 respectively.

The file [./libraries/joomla/application/application.php](https://github.com/joomla/joomla-cms/blob/master//libraries/joomla/application/application.php#L1184) define function 'isWinOS'

The object **JFTP** [in its constructor](https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/client/ftp.php#L157) sets the variable **OS**.

All these files make use of the form:

```php

Personally I consider that:

1. - These constants should not exist.

2. - Or if the file 'iasf.php' is loaded before the other files, then you should make use of these constants.

Personally I think it's the first best solution(educes the learning curve of the framework).

P. S. I would like to help review this detail.