Req #79074 [Com]: Add null colleasing and ternary operator for php.ini directive
| From: | michael dot vorisek at email dot cz | Date: | Tue, 07 Jan 2020 13:22:18 +0000 |
| Subject: | Req #79074 [Com]: Add null colleasing and ternary operator for php.ini directive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224754@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79074&edit=1
ID: 79074
Comment by: michael dot vorisek at email dot cz
Reported by: michael dot vorisek at email dot cz
Summary: Add null colleasing and ternary operator for php.ini
directive
Status: Open
Type: Feature/Change Request
Package: *General Issues
Operating System: Any
PHP Version: 7.4.1
Block user comment: N
Private report: N
New Comment:
Should be easy to implement like the binary operators: https://github.com/php/php-src/blob/php-7.4.1/Zend/zend_ini_parser.y
Please add to PHP 7.4 if possible.
Previous Comments:
------------------------------------------------------------------------
[2020-01-07 13:20:43] michael dot vorisek at email dot cz
Description:
------------
php.ini configuration is currently quite flexible, it allows variables, binary bitwise operations
etc.
But currently there is no way to write conditional expressions. This is feature request for:
- null colleasing operator (very usefull for empty enviroment variables to assign some default value
instead)
- ternary operator (for general conditions)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79074&edit=1