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
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: 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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC