Hey,
it seems the occ
tool has the following on top:
#!/usr/bin/env php
which could be something different then just calling php
. Maybe calling the previous script like:
printf '<?php echo php_sapi_name() . "\r\n";?>' | /usr/bin/env php
is giving a different output?