CHttpRequest::getUserHostAddress() Suitable for linux
Yii::app()->getRequest()->getUserHostAddress() Suitable for all
Created at: 25.09.2015 21:31
*Created by: ErikMinekus*
When PHP is in strict mode, [CGeoIP.php#L90](https://github.com/dlage/yii-geoip/blob/master/CGeoIP.php#L90) throws an error. It should be
```php
$ip = Yii::app()->getRequest()->getUserHostAddress();
```
**Imported comments:**
*By dlage on 2013-06-01 20:12:55 UTC*
Thank you. Fixed in: https://github.com/dlage/yii-geoip/commit/591383f287b208eaafc4792098dc310e04402b1b
*By mrccao on 2015-02-06 06:12:03 UTC*
CHttpRequest::getUserHostAddress() Suitable for linux
Yii::app()->getRequest()->getUserHostAddress() Suitable for all
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Created at: 25.09.2015 21:31
Created by: ErikMinekus
When PHP is in strict mode, CGeoIP.php#L90 throws an error. It should be
Imported comments:
By dlage on 2013-06-01 20:12:55 UTC
Thank you. Fixed in: https://github.com/dlage/yii-geoip/commit/591383f287b208eaafc4792098dc310e04402b1b
By mrccao on 2015-02-06 06:12:03 UTC
CHttpRequest::getUserHostAddress() Suitable for linux
Yii::app()->getRequest()->getUserHostAddress() Suitable for all