php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77870 php.ini - doesn't say whether parser supports full php
Submitted: 2019-04-09 12:24 UTC Modified: 2019-04-17 10:50 UTC
From: toolmakersteve2 at shawstudio dot com Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS: Not relevant
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: toolmakersteve2 at shawstudio dot com
New email:
PHP Version: OS:

 

 [2019-04-09 12:24 UTC] toolmakersteve2 at shawstudio dot com
Description:
------------
https://www.php.net/manual/en/configuration.file.php

I don't see anywhere a clarification of whether a php.ini file can/cannot contain:

* arithmetic expressions.
  E.g. session.gc_maxlifetime = 4 * 60 * 60;

* assignment to a variable, that is then used to set other variables.
  E.g. $oneHourInSeconds = 60 * 60;
       session.gc_maxlifetime = 4 * $oneHourInSeconds;

* both single and double quoting of strings.
  E.g. are both 'fred' and "fred" valid strings.


Test script:
---------------
Not relevant


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-04-17 10:50 UTC] cmb@php.net
-Package: PHP Language Specification +Package: Documentation problem
 [2019-04-23 03:46 UTC] a at b dot c dot de
Some of these at least are addressed in php.ini itself (which includes its own documentation).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 12:01:28 2024 UTC