Bug #81281 [Opn->Nab]: cli.prompt ignored as argument
| From: | patrickallaert@php.net | Date: | Fri, 23 Jul 2021 08:06:45 +0000 |
| Subject: | Bug #81281 [Opn->Nab]: cli.prompt ignored as argument | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235278@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81281&edit=1
ID: 81281
Updated by: patrickallaert@php.net
Reported by: easteregg at verfriemelt dot org
Summary: cli.prompt ignored as argument
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Debian GNU/Linux 11 (bullseye)
PHP Version: 8.0.8
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You used "-c" to set a configuration entry while "-c" is to define a *path* to a
file to use as INI file.
You could for example use the following to load your "test.ini" file:
$ php -a -c test.ini
Adding a specific INI setting entry is done with "-d" and can be repeated, for example:
$ php -a -c test.ini -d cli.prompt=bar -d memory_limit=-1
Previous Comments:
------------------------------------------------------------------------
[2021-07-23 06:15:13] easteregg at verfriemelt dot org
Description:
------------
when i pass the configuration for cli.prompt as a commandline argument, it will reset the value from
the php.ini but will not use the provided one.
Test script:
---------------
echo cli.prompt=foo > test.ini
PHPRC=
pwd/test.ini php -a -ccli.prompt=bar
Expected result:
----------------
Interactive mode enabled
bar
Actual result:
--------------
Interactive mode enabled
php >
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81281&edit=1