FAQ
Hi Yasuo,
On 25 March 2016 at 23:56, Yasuo Ohgaki wrote:

Hi all,
On Sat, Mar 26, 2016 at 5:31 AM, Marco Pivetta wrote:
var_dump((object) ['' => 'foo']);
var_dump((object) ["\0*\0" => 'foo']);
var_dump((object) ["\0Foo\0" => 'foo']);
Allowing null char would be too much. We reject null char in path
parameters, it should be rejected like path parameter. IMHO.
The sequence "\0*\0" means "protected property", while the sequence
"\0Foo\0" means "private property of class Foo": that's been the case for a
looooong time :-)

Not suggesting allowing "\0" for property names: the example just shows
creating a public, private and protected property with an empty name.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 12 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedMar 25, '16 at 5:45p
activeMay 29, '16 at 7:23p
posts12
users5
websitephp.net

People

Translate

site design / logo © 2019 Grokbase