hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

include_path ignored in /etc/hhvm/server.ini (hhvm 3.0.1)

Open fizz opened this issue 12 years ago • 6 comments

I have include_path set in /etc/hhvm/server.ini, but it is being ignored. I straced hhvm during a pageload, and it tried to stat an included file in the current directory (which is not part of my include_path), then died with Fatal error: File not found: foo.php

On startup, hhvm does read server.ini.

The include_path in /etc/hhvm/php.ini is honored in command-line hhvm, seemingly just not in fastcgi server mode. I am using the Wheezy package.

fizz avatar Apr 02 '14 22:04 fizz

(This was working in hhvm 2.3.2)

fizz avatar Apr 02 '14 22:04 fizz

(cc @ptarjan)

alexmalyshev avatar Apr 03 '14 22:04 alexmalyshev

i am also having this issue, i was trying to switch from .hdf files to server.ini and i ran into this trying to get my includes to work. I have include_path in both files and its not working, is there any work around for this?

djmittens avatar Apr 22 '14 21:04 djmittens

A little update when using the following code

<?php
echo ini_get('include_path');

I get . with the include_path set in php.ini(also in server.ini), however it is properly populated when i use the following hdf directive

IncludeSearchPaths{

djmittens avatar Apr 22 '14 23:04 djmittens

Does anybody perhaps have an update on this? I'am trying to test with this right now but our OpenId/OAuth implementation breaks because of this

HemeraGP avatar May 12 '14 12:05 HemeraGP

This is fixed in the nightly and will go into release next thursday

ptarjan avatar May 12 '14 23:05 ptarjan