AW: [PHP-DEV] forbid use declaration outside of a namespace in PHP 7

2014-11-12 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Stas Malyshev [mailto:smalys...@sugarcrm.com] Gesendet: Mittwoch, 12. November 2014 00:45 An: Andrea Faulds; Robert Stoll Cc: Chris Wright; PHP Internals Betreff: Re: [PHP-DEV] forbid use declaration outside of a namespace in PHP 7 Hi! I don’t

Re: [PHP-DEV] Better RFC conformance for FILTER_VALIDATE_URL

2014-11-12 Thread Yasuo Ohgaki
Hi Kevin, On Wed, Nov 12, 2014 at 4:09 PM, Kévin Dunglas dung...@gmail.com wrote: I'll change my PR according to the RFC I've quoted earlier: - check for valid characters (excluding underscore) only when FILTER_FLAG_HOSTNAME is set - allow any character but check lengths by default - use

Re: [PHP-DEV] gzopen vs gzopen64

2014-11-12 Thread Michael Wallner
On 11/11/14 10:13, Matteo Beccati wrote: On 11/11/2014 09:57, Kalle Sommer Nielsen wrote: Hi Matteo 2014-11-11 9:30 GMT+01:00 Matteo Beccati p...@beccati.com: Hi, I wasn't aware of this particular issue, until a few minutes ago (got a bug report from a user). Any reason why:

[PHP-DEV] Unable to subscribe to php.net website mailing list

2014-11-12 Thread Thomas Hruska
Posting here because I'm unable to subscribe to the PHP php.net internal infrastructure discussion mailing list. http://php.net/mailing-lists.php I click the Normal radio button next to the list, enter my e-mail address, and click Subscribe. Next I get a message that says, We were unable to

Re: [PHP-DEV] Annotation PHP 7

2014-11-12 Thread Rowan Collins
Marco Pivetta wrote on 05/11/2014 14:02: For example, this alternative approach perfectly fits the current doctrine/annotations use-case: use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\Table; use Doctrine\ORM\Mapping\Id; use Doctrine\ORM\Mapping\GeneratedValue; use

AW: [PHP-DEV] Annotation PHP 7

2014-11-12 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Rowan Collins [mailto:rowan.coll...@gmail.com] Gesendet: Mittwoch, 12. November 2014 17:21 An: internals@lists.php.net Betreff: Re: [PHP-DEV] Annotation PHP 7 Marco Pivetta wrote on 05/11/2014 14:02: For example, this alternative approach perfectly

Re: [PHP-DEV] Annotation PHP 7

2014-11-12 Thread Marcio Almada
One problem with using *just* array syntax, without any new keyword or symbols, is that it is extremely close to being existing valid syntax. This may well cause problems in the parser, and would certainly be confusing to users. Not sure how sacred is `$`, but it could be a good candidate

Re: [PHP-DEV] [RFC] Safe Casting Functions

2014-11-12 Thread Andrea Faulds
On 20 Oct 2014, at 23:57, Andrea Faulds a...@ajf.me wrote: Good evening, I am presenting a new RFC to add a set of three functions to do validated casts for scalar types: https://wiki.php.net/rfc/safe_cast Please read it. Thanks! After some discussions, the RFC has been revised

Re: [PHP-DEV] Better RFC conformance for FILTER_VALIDATE_URL

2014-11-12 Thread Kévin Dunglas
Hi Yasuo, I've not changed (and even read) the email validator. I'll take a look at it. 2014-11-12 10:41 GMT+01:00 Yasuo Ohgaki yohg...@ohgaki.net: Hi Kevin, On Wed, Nov 12, 2014 at 4:09 PM, Kévin Dunglas dung...@gmail.com wrote: I'll change my PR according to the RFC I've quoted earlier:

Re: [PHP-DEV] Annotation PHP 7

2014-11-12 Thread Sebastian B.-Hagensen
That might just work, but it's still close to currently possible code. Why don't we use something that would currently produce a parse error and is not as close to valid code as the examples above? Annotation('abc'), foo // Used as it's different from T_SL, but it works for hack, so maybe

Re: [PHP-DEV] forbid use declaration outside of a namespace in PHP 7

2014-11-12 Thread Adam Harvey
On 11 November 2014 04:11, Robert Stoll p...@tutteli.ch wrote: I always found it very ugly that it is possible to define a use outside of a namespace. Consider the following: namespace{ //default namespace } use foo\Bar; namespace test{ new Bar(); //error, test\Bar not found } After

AW: [PHP-DEV] forbid use declaration outside of a namespace in PHP 7

2014-11-12 Thread Robert Stoll
Sorry, I apparently missed this the first time. Would this mean that this sort of script (where we're using use statements without a namespace) would no longer work? ?php use GuzzleHttp\Client; include __DIR__.'/vendor/autoload.php'; $client = new Client; // $client is a