php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60852 CLI doesn't read .user.ini
Submitted: 2012-01-23 14:21 UTC Modified: 2012-01-23 14:43 UTC
From: rcodron at ankama dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.3.9 OS: Linux
Private report: No CVE-ID: None
 [2012-01-23 14:21 UTC] rcodron at ankama dot com
Description:
------------
if you try to run php cli in a sub dir like :
/usr/local/dir1/dir2/dir3/dir4/myphp.php where you have a .user.ini in dir4 php doesn't read the .user.ini



Test script:
---------------
.user.ini :
include_path = ".:/usr/local/dirA/dirB/dirC/frameworks/"

php /usr/local/dir1/dir2/dir3/dir4/myphp.php

in dir4 :
myphp.php
.user.ini

Expected result:
----------------
php load the .user.ini where the path of a custom lib


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-23 14:43 UTC] pajoye@php.net
Expected, .user.ini is only supported by the CGI sapi. We have a feature request 
to make it work for other SAPIs.
 [2012-01-23 14:43 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC