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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rcodron at ankama dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 14:01:28 2025 UTC