better output to cli, and a bug, that i probaly think is in the PHP interpreter, try it, it is really buggy...