php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34575 Commandline-Option '-c' does not work
Submitted: 2005-09-21 10:39 UTC Modified: 2005-09-21 16:18 UTC
From: Peter-Ulrich at Web dot de Assigned: johannes (profile)
Status: Not a bug Package: CGI/CLI related
PHP Version: 5CVS2005-09-21 (cvs) OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Peter-Ulrich at Web dot de
New email:
PHP Version: OS:

 

 [2005-09-21 10:39 UTC] Peter-Ulrich at Web dot de
Description:
------------
The Commandline-Option '-c' does not work with 
PHP Version 5.0.5 together with a CLI-Programm
where it is called in the Script like

#!/usr/bin/php -c path/to/inifile

When i change the Option to '--php-ini', then
the Script runs with the korrekt ini-file.

Best regards

P. Ulrich


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-21 16:18 UTC] iliaa@php.net
Works fine when executed on the command line:

php-cgi -c foo -i | grep ini
Configuration File (php.ini) Path </td><td class="v">foo

The fact it does not work when using via #! has nothing to do with PHP itself.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC