rfc:php_engine_constant
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:php_engine_constant [2016/02/03 09:04] – Set to proposed davey | rfc:php_engine_constant [2016/09/26 23:26] – Vote failed davey | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Add PHP Engine Identifier Constant ====== | ====== PHP RFC: Add PHP Engine Identifier Constant ====== | ||
- | * Version: 0.1 | + | * Version: 0.2 |
* Date: 2016-02-03 | * Date: 2016-02-03 | ||
* Author: Davey Shafik, | * Author: Davey Shafik, | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 10: | Line 10: | ||
Due to the desire to maintain compatibility with PHP, alternative runtimes such as HHVM set the '' | Due to the desire to maintain compatibility with PHP, alternative runtimes such as HHVM set the '' | ||
- | This RFC proposes to add a new constant that **explicitly** denotes the engine being used, and more importantly makes it's use as such part of the language spec. | + | This RFC proposes to add a new constant that **explicitly** denotes the engine being used, and //more importantly makes it's use as such part of the language spec.// |
Line 21: | Line 21: | ||
Additionally, | Additionally, | ||
+ | |||
+ | This would effectively make the original' | ||
+ | |||
+ | To conform to the PHP spec an alternative implementation **must**: | ||
+ | |||
+ | - Set '' | ||
+ | - Set '' | ||
+ | - Set '' | ||
+ | |||
+ | For example, for HHVM 3.11 to conform to the spec: | ||
+ | |||
+ | PHP_VERSION = 7.0.0 | ||
+ | PHP_ENGINE = ' | ||
+ | PHP_ENGINE_VERSION = ' | ||
+ | | ||
+ | PHP_VERSION_ID = 70000 | ||
+ | PHP_MAJOR_VERSION = 7 | ||
+ | PHP_MINOR_VERSION = 0 | ||
+ | PHP_RELEASE_VERSION = 0 | ||
+ | PHP_EXTRA_VERSION = '' | ||
+ | | ||
+ | PHP_ENGINE_VERSION_ID = 30110 | ||
+ | PHP_ENGINE_MAJOR_VERSION = 3 | ||
+ | PHP_ENGINE_MINOR_VERSION = 11 | ||
+ | PHP_ENGINE_RELEASE_VERSION = 0 | ||
+ | PHP_ENGINE_EXTRA_VERSION = '' | ||
+ | |||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 28: | Line 55: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | PHP 7.1 | + | PHP 7.2 |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 50: | Line 77: | ||
- '' | - '' | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | This RFC will have a Yes (include)/ | + | Voting is a simple |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 66: | Line 105: | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
- | Keep this updated with features that were discussed on the mail lists. | + | |
+ | |||
+ | |||
+ | |||
+ |
rfc/php_engine_constant.txt · Last modified: 2020/08/01 23:50 by carusogabriel