Edit report at https://bugs.php.net/bug.php?id=61114&edit=1
ID: 61114
Updated by: rasmus@php.net
Reported by: bk2 at me dot com
Summary: Bizarre interaction with php.ini not setting
include_path
-Status: Open
+Status: Feedback
Type: Bug
Package: PHP options/info functions
Operating System: *nix
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
Near the top of your phpinfo() output it says:
Loaded Configuration File: /path/to/your/php.ini
Does that show the right path?
Previous Comments:
------------------------------------------------------------------------
[2012-02-16 21:24:12] bk2 at me dot com
Description:
------------
include_path was not being set as shown by phpinfo.php
from php.ini
Its stuck at
include_path .:/usr/lib/php .:/usr/lib/php
<skipping diagnostic saga>
If you ALSO change (per below), you lose the ability to alter include_path
disable_functions =
to
disable_functions = (unlink, rmdir, fopen, dio_open, scandir, dir,
opendir,chdir, chroot, getcwd,
finfo_open, copy, delete, dirname, file_exists, file_get_contents,
file_put_contents, file,
ftruncate, fwrite, lchgrp, lchown, is_dir, link, mkdir, move_uploaded_file,
pathinfo, popen,
readfile, readlink, realpath, rename, symlink, tempnam, tmpfile, touch,
umask,
xdiff_file_bdiff, xdiff_file_diff, xdif_file_merge3, xdiff_file_patch)
Test script:
---------------
// in php.ini set
include_path = /xyz/abc
//AND
disable_functions = (unlink, rmdir, fopen, dio_open, scandir, dir, opendir,chdir, chroot, getcwd,
finfo_open, copy, delete, dirname, file_exists, file_get_contents, file_put_contents, file,
ftruncate, fwrite, lchgrp, lchown, is_dir, link, mkdir, move_uploaded_file, pathinfo, popen,
readfile, readlink, realpath, rename, symlink, tempnam, tmpfile, touch, umask,
xdiff_file_bdiff, xdiff_file_diff, xdif_file_merge3, xdiff_file_patch)
Expected result:
----------------
run phpinfo.php
it should show
include_path /xyz/abc /xyz/abc
Actual result:
--------------
phpinfo.php
Is stuck at
include_path .:/usr/lib/php .:/usr/lib/php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61114&edit=1