paragi / sphp

A snappy PHP execution module / middleware
46 stars 14 forks source link

Relative "require" in PHP code are broken because tried to handled relative to "php_worker.php" #12

Closed Apollon77 closed 6 years ago

Apollon77 commented 6 years ago

While testing SmartVISU I came accross a problem.

As soon as the file to execure includes or requires other files with a "relative" path like "require ('../../whaterver.php')" then this will break because the required file can not be found. Reason: In reality the require is executed by php_worker.php and the file located on a different place then the executed scriptfile.

We need at least an info in README ... or a solution :-))