fuel/oil — Issue #46: Validation Class Crashes Console
Author: knudpotente
Created: 2011-10-09 04:08:22+00:00
State: open

Issue reported in the Forum (http://fuelphp.com/forums/topics/view/5199).

It seems that Validation objects can be instantiated in the console, but not used - from the command line:

```
> oil console
Fuel 1.0.1 - PHP 5.3.6 (cli) (Jun 16 2011 22:23:58) [Darwin]

>>> $val = Validation::factory()
>>> $val->add_field('username', 'Your username', 'required')
PHP Fatal error: Nesting level too deep - recursive dependency? in /Users/[...]/fuel/packages/oil/classes/console.php on line 111
Error - Nesting level too deep - recursive dependency? in PKGPATH/oil/classes/console.php on line 111
```
Creating $val is possible, but trying to add fields or rules (and test validation) seems to cause a crashing recursion error.