opcache_get_status() returns array, so square brackets should be used to access "opcache_enabled" value.
These tests ensure optimizations in the chdir calls don't break SAPI semantics.