Since there seems to be no opposition to using PHP 5.3 from now on, lets start using it. This pull request removes one PHP 5.2 workaround and replaces dirname(FILE) with DIR.
Replace all occurences of dirname(__FILE__) with __DIR__.
Remove a PHP 5.2 workaround in JStream::copy().
Unit testing complete. There were 0 failures and 0 errors from 1971 tests and 11146 assertions.
Checkstyle analysis reported 199 warnings and 0 errors.