Re: [PHP-DEV] [RFC] Add is_cacheable() stream-wrapper operation

2015-01-03 Thread Pierre Joye
hi, On Sat, Jan 3, 2015 at 5:36 PM, François Laupretre wrote: > Hi, > > I just wrote this RFC to propose a clean way for opcode caches to decide if > a given URI is cacheable or not : > > https://wiki.php.net/rfc/streams-is-cacheable > > Please comment. It looks like a good addtion, thanks :) I

Re: [PHP-DEV] [RFC] Add is_cacheable() stream-wrapper operation

2015-01-03 Thread reeze
+1 for this PR. On 4 January 2015 at 09:36, François Laupretre wrote: > Hi, > > I just wrote this RFC to propose a clean way for opcode caches to decide if > a given URI is cacheable or not : > > https://wiki.php.net/rfc/streams-is-cacheable > > Please comment. > > Regards > > François > > > > -

Re: [PHP-DEV] [RFC] Remove hex support in numeric strings

2015-01-03 Thread Pierre Joye
On Jan 4, 2015 2:56 AM, "Nikita Popov" wrote: > > Hi internals! > > I'd like to propose removing support for hexadecimal strings in the > is_numeric_string() function, in order to achieve consistency with ordinary > integer and float casts: > > https://wiki.php.net/rfc/remove_hex_support_in_nu

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Pierre Joye
Hi, On Jan 4, 2015 3:10 AM, "Andrea Faulds" wrote: > > Hi Sebastian, > > > On 3 Jan 2015, at 19:46, Sebastian B.-Hagensen wrote: > >> > >> Yeah, I don’t like this behaviour much. I want to avoid inconsistency with the behaviour of extension functions (i.e. zend_parse_parameters) where possible,

Re: [PHP-DEV] PHP 5.3 windows binaries

2015-01-03 Thread David Muir
> On 4 Jan 2015, at 12:34 pm, Thomas Hruska wrote: > >> On 1/3/2015 4:56 PM, David Muir wrote: >> Shouldn't this be directed to the webmaster mailing list? >> php-webmas...@lists.php.net > > See below. They said that they don't have access to that server. :) > > Ah, missed that part. So w

[PHP-DEV] [RFC] Add is_cacheable() stream-wrapper operation

2015-01-03 Thread François Laupretre
Hi, I just wrote this RFC to propose a clean way for opcode caches to decide if a given URI is cacheable or not : https://wiki.php.net/rfc/streams-is-cacheable Please comment. Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

Re: [PHP-DEV] PHP 5.3 windows binaries

2015-01-03 Thread Thomas Hruska
On 1/3/2015 4:56 PM, David Muir wrote: Shouldn't this be directed to the webmaster mailing list? php-webmas...@lists.php.net See below. They said that they don't have access to that server. :) On 4 Jan 2015, at 4:45 am, Thomas Hruska wrote: On 12/28/2014 4:47 PM, Thomas Hruska wrote:

Re: [PHP-DEV] PHP 7 API naming conventions: str vs string

2015-01-03 Thread Sara Golemon
On Sat, Jan 3, 2015 at 3:42 PM, Nikita Popov wrote: > Or maybe be more explicit and use "cstr" for C strings. (For symmetry the > zend_string type could become zstr.) > I personally prefer cstr/zstr for explicitness, but agree that the main focus should be consistency. -Sara And yes, the fact th

Re: [PHP-DEV] PHP 5.3 windows binaries

2015-01-03 Thread David Muir
Shouldn't this be directed to the webmaster mailing list? php-webmas...@lists.php.net Sent from my iPhone > On 4 Jan 2015, at 4:45 am, Thomas Hruska wrote: > >> On 12/28/2014 4:47 PM, Thomas Hruska wrote: >>> On 12/7/2014 10:52 PM, Thomas Hruska wrote: On 11/29/2014 6:27 AM, Thomas Hruska

Re: [PHP-DEV] PHP 7 API naming conventions: str vs string

2015-01-03 Thread Andrea Faulds
Hey Nikita, > On 3 Jan 2015, at 23:42, Nikita Popov wrote: > > Basically if you have two APIs, one using str, the other using string, you > can't tell which one is for C strings and which one is for zend_strings. It > could be either way. > > It would be nice to have a convention for this and s

[PHP-DEV] PHP 7 API naming conventions: str vs string

2015-01-03 Thread Nikita Popov
Hi internals! PHP 7 uses two different string types. One is the ordinary C string char*, the other is a custom zend_string* structure, which additionally embeds length and GC info. We currently have a bunch of APIs that accept either C strings or zend_strings, but the naming is pretty much random

Re: [PHP-DEV] [RFC] Remove hex support in numeric strings

2015-01-03 Thread Stanislav Malyshev
Hi! > I'd like to propose removing support for hexadecimal strings in the > is_numeric_string() function, in order to achieve consistency with ordinary > integer and float casts: > > https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings > > This change drops a WTF in our conversion

Re: [PHP-DEV] [RFC] Remove hex support in numeric strings

2015-01-03 Thread Sara Golemon
On Sat, Jan 3, 2015 at 11:55 AM, Nikita Popov wrote: > I'd like to propose removing support for hexadecimal strings in the > is_numeric_string() function, in order to achieve consistency with ordinary > integer and float casts: > > https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Andrea Faulds
Hi Thomas, > On 3 Jan 2015, at 20:00, Thomas Bley wrote: > > Here is what I run on my ubuntu 14.04 for compiling & testing: > > apt-get install build-essential re2c bison > git clone -b master https://github.com/php/php-src.git > cd php-src > curl https://github.com/php/php-src/pull/972.patch |

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Andrea Faulds
Hi Sebastian, > On 3 Jan 2015, at 19:46, Sebastian B.-Hagensen wrote: >> >> Yeah, I don’t like this behaviour much. I want to avoid inconsistency with >> the behaviour of extension functions (i.e. zend_parse_parameters) where >> possible, though. Since this has come up so much, I should probab

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Thomas Bley
Here is what I run on my ubuntu 14.04 for compiling & testing: apt-get install build-essential re2c bison git clone -b master https://github.com/php/php-src.git cd php-src curl https://github.com/php/php-src/pull/972.patch | git am ./buildconf ./configure make sapi/cli/php /tmp/test.php test.php

[PHP-DEV] [RFC] Remove hex support in numeric strings

2015-01-03 Thread Nikita Popov
Hi internals! I'd like to propose removing support for hexadecimal strings in the is_numeric_string() function, in order to achieve consistency with ordinary integer and float casts: https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings This change drops a WTF in our conversion sema

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Sebastian B.-Hagensen
>> - on-numeric strings not accepted. Numeric strings with trailing >> characters are accepted, but produce a notice. >> >> I would rather not allow fancy conversions here. Any trailing non >> white spaces characters should not be allowed. I know it is not what >> PHP does now in some cases but thi

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Andrea Faulds
Hey Pierre, > Thanks, great work and persistent effort! Thank you. > As I am also slightly in favor of a strict way, this RFC is a good compromise. > > Some comments: > > - on-numeric strings not accepted. Numeric strings with trailing > characters are accepted, but produce a notice. > > I wo

Re: [PHP-DEV] PHP 5.3 windows binaries

2015-01-03 Thread Thomas Hruska
On 12/28/2014 4:47 PM, Thomas Hruska wrote: On 12/7/2014 10:52 PM, Thomas Hruska wrote: On 11/29/2014 6:27 AM, Thomas Hruska wrote: On 11/15/2014 12:13 AM, Pierre Joye wrote: Good point. They will remain in the archives part. We kept them after eol just in case there was a last min critical up

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-03 Thread Markus Fischer
On 03.01.2015 05:50, Pierre Joye wrote: > I am also not a fan of errors, exception, at least for methods, make > much more sense. I know it is relatively easy to handle errors as > exception but still, let do it right now. I second this; this could be an excellent opportunity into that direction f