I am having a very strange issue, when ever I download any php script, and try to install it locally, I run into trouble. I mentioning download any php script, because, if I create a php script locally, no matters how many include statement it has, or how long include statement it contains, they just work fine.
Last time, I faced some issue with my WP installation See my other question
I did 4 git clone, for cake, croogo, fuel, fuel-cms and having same issue with all of them:
Strange annoying BOM charachter in include making PHP throw Fatal error :
A PHP Error was encountered
Severity: Warning
Message: require_once(base_module_model.php): failed to open stream: No such file or directory
Filename: models/users_model.php
Line Number: 3 Fatal error: require_once(): Failed opening required 'base_module_model.php' (include_path='.:/usr/share/php:/usr/share/pear:/usr/share/ZF/library:/usr/share/ZF/extras/library') in ª.!ª(!“(! on line 3
Call Stack: 0.0002 327540 1. {main}() PATH_TO_FUEL/index.php:0
0.0006 329032 2. require_once('ãå,/PATH_TO_FUEL/fuel/codeigniter/core/CodeIgniter.php') PATH_TO_FUEL/index.php:236
0.0109 544260 3. Login->__construct() PATH_TO_FUEL/fuel/application/../modules/user_guide/:267
0.0269 1002572 4. Fuel_Loader->module_model() PATH_TO_FUEL/fuel/modules/fuel/controllers/login.php:28
0.0269 1002660 5. Fuel_Loader->model() PATH_TO_FUEL/fuel/application/third_party/fuel/Loader.php:107
0.0337 1469404 6. Modules::load_file() PATH_TO_FUEL/fuel/application/third_party/fuel/Loader.php:237
0.0338 1482504 7. include_once('_ö,/PATH_TO_FUEL/fuel/modules/fuel/models/users_model.php') PATH_TO_FUEL/fuel/application/third_party/MX/Modules.php:142
Since it's happening with almost all the files, I am now now sure, the problem is not in the content of the files, it something else, maybe a mismatch in encoding.
my questing is :
is the problem above suggest that there might be some problem with my system encoding? (I am mostly using vi or Netbeans as IDE.)
if there is some problem with the encoding (with my machine or with the file), is there a permanent fix for the problem ?
List of Extension installed (got them using php -m):
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
SQLite
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
xsl
zip
zlib
[Zend Modules]
Xdebug