rfc:var-export-array-syntax
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:var-export-array-syntax [2020/03/29 17:37] – googleguy | rfc:var-export-array-syntax [2020/03/30 02:46] – googleguy | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-03-29 | * Date: 2020-03-29 | ||
* Author: Sherif Ramadan, googleguy@php.net | * Author: Sherif Ramadan, googleguy@php.net | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 12: | Line 12: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Instead of <code php> | + | Instead of <code php> |
+ | |||
+ | This will effect things like '' | ||
+ | |||
+ | So the following changes are also in effect: | ||
+ | |||
+ | <code php> | ||
+ | $obj = new stdClass; | ||
+ | $obj-> | ||
+ | $obj-> | ||
+ | |||
+ | var_export($obj); | ||
+ | |||
+ | /* | ||
+ | Gives us: | ||
+ | (object) array( | ||
+ | ' | ||
+ | ' | ||
+ | ) | ||
+ | |||
+ | With the new change it would be | ||
+ | |||
+ | (object) [ | ||
+ | ' | ||
+ | ' | ||
+ | ] | ||
+ | */ | ||
+ | </ | ||
+ | |||
+ | The same happens for classes: | ||
+ | |||
+ | <code php> | ||
+ | class Foo { | ||
+ | public $bar = " | ||
+ | } | ||
+ | |||
+ | var_export(new Foo); | ||
+ | |||
+ | /* | ||
+ | Gives us: | ||
+ | Foo:: | ||
+ | ' | ||
+ | )) | ||
+ | |||
+ | With the changes it would be: | ||
+ | Foo:: | ||
+ | ' | ||
+ | ]) | ||
+ | */ | ||
+ | </ | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | What breaks, | + | There shouldn' |
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | List the proposed | + | PHP 8.0 |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
==== To SAPIs ==== | ==== To SAPIs ==== | ||
- | Describe the impact to CLI, Development web server, embedded PHP etc. | + | None. |
==== To Existing Extensions ==== | ==== To Existing Extensions ==== | ||
- | Will existing extensions be affected? | + | None. |
==== To Opcache ==== | ==== To Opcache ==== | ||
- | It is necessary to develop RFC's with opcache in mind, since opcache is a core extension distributed with PHP. | + | None. |
- | Please explain how you have verified your RFC's compatibility with opcache. | ||
- | ==== New Constants ==== | ||
- | Describe any new constants so they can be accurately and comprehensively explained in the PHP documentation. | ||
- | |||
- | ==== php.ini Defaults ==== | ||
- | If there are any php.ini settings then list: | ||
- | * hardcoded default values | ||
- | * php.ini-development values | ||
- | * php.ini-production values | ||
- | |||
- | ===== Open Issues ===== | ||
- | Make sure there are no open issues when the vote starts! | ||
- | |||
- | ===== Unaffected PHP Functionality ===== | ||
- | List existing areas/ | ||
- | |||
- | This helps avoid any ambiguity, shows that you have thought deeply about the RFC's impact, and helps reduces mail list noise. | ||
===== Future Scope ===== | ===== Future Scope ===== | ||
- | This section details areas where the feature might be improved in future, but that are not currently proposed in this RFC. | + | None. |
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Include these so readers know where you are heading | + | To vote will be to either change '' |
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | Links to any external patches and tests go here. | + | The change only requires changing two lines in '' |
- | + | ||
- | If there is no patch, make it clear who will create a patch, or whether a volunteer | + | |
- | + | ||
- | Make it clear if the patch is intended to be the final patch, or is just a prototype. | + | |
- | + | ||
- | For changes affecting the core language, you should also provide a patch for the language specification. | + | |
===== Implementation ===== | ===== Implementation ===== | ||
- | After the project is implemented, | ||
- | - the version(s) it was merged into | ||
- | - a link to the git commit(s) | ||
- | - a link to the PHP manual entry for the feature | ||
- | - a link to the language specification section (if any) | ||
===== References ===== | ===== References ===== | ||
- | Links to external references, discussions or RFCs | + | https:// |
+ | https:// | ||
===== Rejected Features ===== | ===== Rejected Features ===== | ||
- | Keep this updated with features that were discussed on the mail lists. | + |
rfc/var-export-array-syntax.txt · Last modified: 2020/04/10 09:24 by guilliamxavier