internationalization - php-intl conflicts with custom Locale class -
i working on website , pages doesn't work after installing php5-intl library on server. after hours of debugging 've found out problem name of class in codes named locale.
is there other solution rather renaming class?
sounds namespace conflict. have class called locale? give namespace:
<?php namespace my; class locale { // }
then can say:
use my\locale;
if ever have code uses both classes, can alias one:
use locale; use my\locale mylocale;
then can new mylocale();
, there won't conflict. hope helps!
Comments
Post a Comment