Update standard.php

Fix for #248 dir() returns a Directory, not a string
Update standard.php

Also updating PHP 5.2 core
Merge pull request #265 from kander/patch-2

Update standard.php