These tests ensure optimizations in the chdir calls don't break SAPI semantics.
<?php print(getcwd()); ?>