Consider the following scenario:
$ pwd
/tmp
$ find a
a
a/z.php
$ cat a/z.php
<?php
$p = dirname(__FILE__);
echo "p = '$p'\n";
?>
Now let's run this from /tmp in both php and hippyvm (e.g. php a/z.php):
PHP gives:
Hippy gives:
dirname() is supposed to give an absolute path.
- The wrong path is reported regardless of absolute/relative paths.