Req #79074 [Com]: Add null colleasing and ternary operator for php.ini directive

From: Date: Fri, 10 Jan 2020 19:06:14 +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-224835@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: geekcom@php.net 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: Hi michael, bellow text is a snippet of php.ini packaged with PHP. "If PHP can't find an expected directive because it is not set or is mistyped, a default value will be used." Please see at: https://github.com/php/php-src/blob/master/php.ini-production Previous Comments: ------------------------------------------------------------------------ [2020-01-07 13:22:18] michael dot vorisek at email dot cz 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#224835) next »