fuel/core — Issue #848: Config::get/set behaving wrong when value has leading zero
Author: huglester
Created: 2012-02-26 09:57:10+00:00
State: open

Hello everyone,

Playing with File class, I spotted that chmoded dir's/files have wrong permissions.

after searching around where the bug is, it seems that config class does not play nicely with values which has leading zeroes:

here are some tests:

\Config::set('test_val', 0777);
echo \Config::get('test_val');
// returns 511

\Config::set('test_val', 777);
echo \Config::get('test_val');
// returns 777

\Config::set('test_val', '0777');
echo \Config::get('test_val');
// returns 0777

It's a Linux machine.
FuelPHP 1.1-dev

Thanks