- Output for git.master, git.master_jit, rfc.property-hooks
- ----------------------------------
** case: save
input: 1.png
input urldecoded: 1.png
realpath:
basename: 1.png
realpath url-d:
basename url-d: 1.png
array(4) {
["dirname"]=>
string(1) "."
["basename"]=>
string(5) "1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(1) "1"
}
----------------------------------
----------------------------------
** case: dt
input: ../../1.png
input urldecoded: ../../1.png
realpath:
basename: 1.png
realpath url-d:
basename url-d: 1.png
array(4) {
["dirname"]=>
string(5) "../.."
["basename"]=>
string(5) "1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(1) "1"
}
----------------------------------
----------------------------------
** case: dt_url_e
input: ..%2F..%2F1.png
input urldecoded: ../../1.png
realpath:
basename: ..%2F..%2F1.png
realpath url-d:
basename url-d: 1.png
array(4) {
["dirname"]=>
string(1) "."
["basename"]=>
string(15) "..%2F..%2F1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(11) "..%2F..%2F1"
}
----------------------------------
----------------------------------
** case: dt_durl_e
input: ..%252F..%252F1.png
input urldecoded: ..%2F..%2F1.png
realpath:
basename: ..%252F..%252F1.png
realpath url-d:
basename url-d: ..%2F..%2F1.png
array(4) {
["dirname"]=>
string(1) "."
["basename"]=>
string(19) "..%252F..%252F1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(15) "..%252F..%252F1"
}
----------------------------------
----------------------------------
** case: dt_utf8
input: ..%c0%af..%c0%af1.png
input urldecoded: ..��..��1.png
realpath:
basename: ..%c0%af..%c0%af1.png
realpath url-d:
basename url-d: ..��..��1.png
array(4) {
["dirname"]=>
string(1) "."
["basename"]=>
string(21) "..%c0%af..%c0%af1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(17) "..%c0%af..%c0%af1"
}
----------------------------------
----------------------------------
** case: dt_url_d
input: ../../1.png
input urldecoded: ../../1.png
realpath:
basename: 1.png
realpath url-d:
basename url-d: 1.png
array(4) {
["dirname"]=>
string(5) "../.."
["basename"]=>
string(5) "1.png"
["extension"]=>
string(3) "png"
["filename"]=>
string(1) "1"
}
----------------------------------
----------------------------------
** case: dt_nb_d
input: ../../1.png%00
input urldecoded: ../../1.png
realpath:
basename: 1.png%00
Fatal error: Uncaught ValueError: realpath(): Argument #1 ($path) must not contain any null bytes in /in/pD8R0:36
Stack trace:
#0 /in/pD8R0(36): realpath('../../1.png\x00')
#1 /in/pD8R0(21): fi('../../1.png%00')
#2 {main}
thrown in /in/pD8R0 on line 36
Process exited with code 255.
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
- 2020-03-21 RFC: Is_Literal - declined
- 2020-12-04 Enumerations - included in PHP 8.1
- 2018-06-15 Typed Properties v2 - implemented in PHP 7.4
- 2016-08-12 Object typehint - included in PHP 7.2
- 2016-08-14 Arrow functions - withdrawn
- 2016-05-29 array_change_keys() - withdrawn
- 2016-04-19 Lexical scope support for anonymous classes - suspended
- 2016-04-17 Functional Interfaces - declined
- 2016-03-16 Typed Properties - superseded in favor of Typed Properties 2.0
- 2015-08-27 Callable Prototypes - declined
- 2015-05-01 Short Closures - declined / withdrawn in favor of Arrow Functions
- 2015-02-18 Scalar type hints v5 - included in PHP 7
- 2015-02-14 Union Types - declined
- 2013-09-22 Anonymous classes - included in PHP 7