Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php_ini_scanned_files is not defined #3550

Closed
Majkl578 opened this issue Aug 21, 2014 · 0 comments
Closed

php_ini_scanned_files is not defined #3550

Majkl578 opened this issue Aug 21, 2014 · 0 comments

Comments

@Majkl578
Copy link
Contributor

On HHVM 3.2.0:

$ hhvm --php -r 'php_ini_scanned_files();'
Fatal error: Call to undefined function php_ini_scanned_files() in /tmp/php-wrap-zyqILs on line 2

The behavior should match php's behavior which is as follows:

Returns a comma-separated string of .ini files on success. Each comma is followed by a newline. If the directive --with-config-file-scan-dir wasn't set, FALSE is returned. If it was set and the directory was empty, an empty string is returned. If a file is unrecognizable, the file will still make it into the returned string but a PHP error will also result. This PHP error will be seen both at compile time and while using php_ini_scanned_files().

So in the context of HHVM, it should probably always return FALSE.

Majkl578 added a commit to Majkl578/hhvm that referenced this issue Sep 30, 2014
Also make php_ini_loaded_file() non-native, since it is just a stub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants