> However, skissane is correct. SCRIPT_FILENAME does return the relative
> path in the CLI version. The question is, should the code be fixed to
> make it absolute, or should the documentation have a note appended
> saying that it's not absolute in the CLI version?

I think that SCRIPT_FILENAME should be absolute as relative is
PHP_SELF. It will be also more consistent with web environment.

Jakub Vrana

Reply via email to