Re: [RFC] UString

From: Date: Thu, 02 Jul 2015 14:29:53 +0000
Subject: Re: [RFC] UString
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-87001@lists.php.net to get a copy of this message
Hi Ivan 2015-07-02 15:48 GMT+02:00 "Ivan Enderlin"@Hoa <ivan.enderlin@hoa-project.net>: > I fear it will be a reserved keyword. Internally defined classes, such as UConverter or stdClass are not reserved keywords, they are not an actual part of the language but a part of the library. Code like the one below is perfectly valid, meaning the example you made will continue to work as long it remains within a namespace: C:\dev\php-src>php -r "namespace stdlib; class stdclass { } var_dump(get_class(new stdclass), get_class(new \stdClass));" string(15) "stdlib\stdclass" string(8) "stdClass" -- regards, Kalle Sommer Nielsen kalle@php.net

« previous php.internals (#87001) next »