Re: [PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Xinchen Hui
Hey: On Fri, Mar 27, 2015 at 1:14 PM, Yasuo Ohgaki wrote: > Hi all, > > On Fri, Mar 27, 2015 at 11:57 AM, Xinchen Hui wrote: >> >> On Fri, Mar 27, 2015 at 3:06 AM, Kalle Sommer Nielsen >> wrote: >> > Forgot to CC list >> > >> > >> > -- Forwarded message -- >> > From: Kalle Som

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Xinchen Hui
Hey: On Fri, Mar 27, 2015 at 1:10 PM, Kris Craig wrote: > On Thu, Mar 26, 2015 at 3:40 PM, Alain Williams wrote: > >> On Thu, Mar 26, 2015 at 10:31:00PM +, Rowan Collins wrote: >> >> > What I've always been annoyed by is the *precedence* of the operator - >> having to add brackets to mix it

Re: [PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Yasuo Ohgaki
Hi all, On Fri, Mar 27, 2015 at 11:57 AM, Xinchen Hui wrote: > On Fri, Mar 27, 2015 at 3:06 AM, Kalle Sommer Nielsen > wrote: > > Forgot to CC list > > > > > > -- Forwarded message -- > > From: Kalle Sommer Nielsen > > Date: 2015-03-26 20:06 GMT+01:00 > > Subject: Re: [PHP-DEV]

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Kris Craig
On Thu, Mar 26, 2015 at 3:40 PM, Alain Williams wrote: > On Thu, Mar 26, 2015 at 10:31:00PM +, Rowan Collins wrote: > > > What I've always been annoyed by is the *precedence* of the operator - > having to add brackets to mix it with string concatenation, etc - which it > turns out to is the s

[PHP-DEV] [RFC] Proposal - Add more cases to array_change_key_case

2015-03-26 Thread Juan Basso
Hi Internals, Currently the array_change_key_case function supports only 2 case types (CASE_UPPER and CASE_LOWER). I would like to propose 4 new cases for this function: - CASE_CAMEL: transform the strings in camel cased [1], ie. transform strings like 'This String', 'this string' or 'this_string'

Re: [PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Xinchen Hui
Hey: On Fri, Mar 27, 2015 at 3:06 AM, Kalle Sommer Nielsen wrote: > Forgot to CC list > > > -- Forwarded message -- > From: Kalle Sommer Nielsen > Date: 2015-03-26 20:06 GMT+01:00 > Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions > To: Remi Collet >

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

2015-03-26 Thread François Laupretre
> De : Cesar Rodas [mailto:ce...@rodas.me] > > What is the status of https://wiki.php.net/rfc/streams-is-cacheable ? > Will it be open for votes soon enough? > > It looks a silly change but pretty useful to some projects I have. Is_cacheable() is based on the fact that the key to use is the path

[PHP-DEV] Contributing to PHP Wiki

2015-03-26 Thread Avindra Goolcharan
I want to help detail the PHP NG build documentation and fix build instructions. For example, enabling openssl should not be listed so far below in the ./configure command. Avindra.

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Alain Williams
On Thu, Mar 26, 2015 at 10:31:00PM +, Rowan Collins wrote: > What I've always been annoyed by is the *precedence* of the operator - having > to add brackets to mix it with string concatenation, etc - which it turns out > to is the same in all sorts of languages. It is the ''all sorts of lan

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Michael Morris
It's not a feature though - it's a bug. It's just one of those bugs that the fixing of which may break something. On Thu, Mar 26, 2015 at 6:31 PM, Rowan Collins wrote: > On 26 March 2015 20:54:12 GMT, Michael Morris wrote: > >Per PHPsadness... > > > >http://phpsadness.com/sad/30 > > > >Since 7

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Rowan Collins
On 26 March 2015 20:54:12 GMT, Michael Morris wrote: >Per PHPsadness... > >http://phpsadness.com/sad/30 > >Since 7 is allowed to have BC breaks this would be the time to fix >this. > >I'll let someone with more seniority actually write this up - but >please, >please fix this - it's a very long sta

[PHP-DEV] WIKI Account Authorization

2015-03-26 Thread G. M. Shaharia Azam
=== *PHP Wiki Username:* shaharia === *Hello,* I am Shaharia, recently created PHP Wiki account with this email address. My username was *'shaharia'. * As a PHP programmer since 7.5 years I always love to contribute to any kinds of open source project. And PHP is my passion and us

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Stanislav Malyshev
Hi! > Since 7 is allowed to have BC breaks this would be the time to fix this. > > I'll let someone with more seniority actually write this up - but please, > please fix this - it's a very long standing annoyance. The way to do this would be to submit an RFC and put it to vote. Unfortunately, it

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Alex Bowers
The deadline for PHP 7 features has passed On 26 March 2015 at 20:54, Michael Morris wrote: > Per PHPsadness... > > http://phpsadness.com/sad/30 > > Since 7 is allowed to have BC breaks this would be the time to fix this. > > I'll let someone with more seniority actually write this up - but plea

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Florian Margaine
Hi, Michael Morris writes: > Per PHPsadness... > > http://phpsadness.com/sad/30 > > Since 7 is allowed to have BC breaks this would be the time to fix > this. It's too late. Feature freeze is gone. > > I'll let someone with more seniority actually write this up - but please, > please fix this

Re: [PHP-DEV] [VOTE] [RFC] Anonymous Classes

2015-03-26 Thread Pascal Martin, AFUP
Le 13/03/2015 20:33, Philip Sturgeon a écrit : https://wiki.php.net/rfc/anonymous_classes Hi, We've discussed this with other people at AFUP, and are on the +1 side. Thanks for this! -- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/ -- PHP Internals - PHP Runtime Development

[PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Michael Morris
Per PHPsadness... http://phpsadness.com/sad/30 Since 7 is allowed to have BC breaks this would be the time to fix this. I'll let someone with more seniority actually write this up - but please, please fix this - it's a very long standing annoyance.

Re: [PHP-DEV] [RFC][VOTE] Constructor behaviour of internal classes

2015-03-26 Thread Dmitry Stogov
Hi Dan, Your RFC is going to be accepted and I support the idea, however the patch looks a bit surprising to me. Actually, returning NULL from constructors wasn't simple :) We have special function to do this - zend_ctor_make_null() and some tricks in the VM. I made just a quick look over your pa

Fwd: [PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Kalle Sommer Nielsen
Forgot to CC list -- Forwarded message -- From: Kalle Sommer Nielsen Date: 2015-03-26 20:06 GMT+01:00 Subject: Re: [PHP-DEV] is_callable and function_exists with disable_functions To: Remi Collet 2015-03-26 16:32 GMT+01:00 Remi Collet : >> do you mind if I change the current b

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

2015-03-26 Thread Cesar Rodas
Hi! What is the status of https://wiki.php.net/rfc/streams-is-cacheable ? Will it be open for votes soon enough? It looks a silly change but pretty useful to some projects I have. Cheers, -- César D. Rodas Open Source developer +595-983-161124 PGP: F9ED A265 A3AB C8A1 D145 7368 158A 0336 C70

[PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Xinchen Hui
Hey Internal: there is one confused behavior with disable_functions: $ sapi/cli/php -n -d disable_functions=strlen -r 'var_dump(function_exists("strlen")); var_dump(is_callable("strlen"));' bool(false) bool(true) as you can see, strlen is disabled by disable_functions. fun

Re: [PHP-DEV] is_callable and function_exists with disable_functions

2015-03-26 Thread Remi Collet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 26/03/2015 16:21, Xinchen Hui a écrit : > Hey Internal: > > there is one confused behavior with disable_functions: > > $ sapi/cli/php -n -d disable_functions=strlen -r > 'var_dump(function_exists("strlen")); > var_dump(is_callable("strlen"));' b

[PHP-DEV] odbc extension build issues (shared vs. standalone)

2015-03-26 Thread Lior Kaplan
Hi, Following Remi's revert of my commit [1] I'd like to suggest a better solution for master which would be introducing --enable-odbc and having the ODBC drivers default to no (similar to DBA). Current problem is fixing build as a standalone (phpize...) breaks support with builds as "./configure