RE: [PHP-DEV] Voting periods

2013-01-30 Thread Attila Bukor
That's what Ralf and I suggested all along. By the way, the problem is that most of the web developers don't know anything about IT. I guess most of them use Windows (and you can't expect a Windows user to compile stuff), and the majority of the other half uses Ubuntu and never even saw the shell,

Re: [PHP-DEV] Voting periods

2013-01-30 Thread Dan Cryer
That's what Ralf and I suggested all along. By the way, the problem is that most of the web developers don't know anything about IT. I guess most of them use Windows (and you can't expect a Windows user to compile stuff), and the majority of the other half uses Ubuntu and never even saw the

Re: [PHP-DEV] Voting periods

2013-01-30 Thread Attila Bukor
Dan, I'm a PHP developer myself too and I always compile PHP and Apache for my own (PostgreSQL is good for me as it's packaged for Archlinux). But the majority is just dumb. And you're right about the bug reports, lots of them would be just like it doesn't work because of reasons. But they'd at

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context

2013-01-30 Thread Lester Caine
Gustavo Lopes wrote: I've opened the vote for the remove calls from incompatible context RFC: https://wiki.php.net/rfc/incompat_ctx#vote FINALLY realised why this was an itch I had to scratch. Why just pick on one aspect of E_STRICT ? Surely the end point should be removing all of the

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context

2013-01-30 Thread Ferenc Kovacs
On Wed, Jan 30, 2013 at 10:50 AM, Lester Caine les...@lsces.co.uk wrote: Gustavo Lopes wrote: I've opened the vote for the remove calls from incompatible context RFC: https://wiki.php.net/rfc/**incompat_ctx#votehttps://wiki.php.net/rfc/incompat_ctx#vote FINALLY realised why this was an

RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Zeev Suraski
XDebug together with an opcode cache is always a shaky thing and not something we should be too concerned about. You would never want to run both in production. It would be good if they didn't clobber each other for dev environment purposes, but I am sure we can figure that out. This

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Lester Caine
Stas Malyshev wrote: The TS model in php should be redesigned in the next major version, instead of simply giving it up. Again, I'd not mind seeing this redesign, but do we have somebody who's actually going to do that? Ignoring the problem of 'someone to do it', in this age of multi-core

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Pierre Joye
On Wed, Jan 30, 2013 at 11:33 AM, Lester Caine les...@lsces.co.uk wrote: Stas Malyshev wrote: The TS model in php should be redesigned in the next major version, instead of simply giving it up. Again, I'd not mind seeing this redesign, but do we have somebody who's actually going to do

[PHP-DEV] About PTY

2013-01-30 Thread Ivan Enderlin @ Hoa
Hi, I wonder if PHP supports PTY? I see old codes (from 2004 to 2010) using proc_open with $descriptors = [[0 = 'pty']] for example. When I try, I have an error because PTY seems to not be supported. ./configure does not propose me to --enable-pty as I have seen in some related posts.

Re: [PHP-DEV] About PTY

2013-01-30 Thread Ferenc Kovacs
On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hi, I wonder if PHP supports PTY? I see old codes (from 2004 to 2010) using proc_open with $descriptors = [[0 = 'pty']] for example. When I try, I have an error because PTY seems to not be supported.

Re: [PHP-DEV] [VOTE] Property Accessors for 5.5

2013-01-30 Thread Clint Priest
On 1/17/2013 12:20 PM, Clint Priest wrote: I'm happy to say that Property Accessors is ready for a vote for inclusion in 5.5 release. Nikita and I (as well as Stas a bit) have all been working hard to make this happen for 5.5, voting and the specifications are here:

RE: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Zeev Suraski
-Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Wednesday, January 30, 2013 8:10 AM To: Stas Malyshev Cc: Zeev Suraski; PHP internals Subject: Re: [PHP-DEV] ZTS - why are you using it? On Wed, Jan 30, 2013 at 2:15 AM, Stas Malyshev smalys...@sugarcrm.com

Re: [PHP-DEV] moving some READMEs to the wiki

2013-01-30 Thread Clint Priest
On 1/29/2013 6:54 PM, Stas Malyshev wrote: Hi! I think having stuff on the wiki is nice, but for things related to the code - e.g., APIs, builds descriptions, etc. - they should stay in the code. They are easier to find there and easier to keep up-to-date, and also ensure they have the content

[PHP-DEV] SSL renegotiation DoS attack mitigation

2013-01-30 Thread Chris Wright
PHP is currently susceptible to the DoS attack described here: http://www.ietf.org/mail-archive/web/tls/current/msg07553.html Obviously this is a fairly narrow scenario, it only comes into play when PHP is acting as a socket server providing secure connectivity, it is not the responsibility of

Re: [PHP-DEV] About PTY

2013-01-30 Thread Ivan Enderlin @ Hoa
On 30/01/13 11:58, Ferenc Kovacs wrote: On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hi, I wonder if PHP supports PTY? I see old codes (from 2004 to 2010) using proc_open with $descriptors = [[0 = 'pty']] for example. When I try, I have an error

Re: [PHP-DEV] About PTY

2013-01-30 Thread Ferenc Kovacs
On Wed, Jan 30, 2013 at 12:45 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: On 30/01/13 11:58, Ferenc Kovacs wrote: On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hi, I wonder if PHP supports PTY? I see old codes (from 2004 to

Re: [PHP-DEV] About PTY

2013-01-30 Thread Ferenc Kovacs
On Wed, Jan 30, 2013 at 12:53 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Wed, Jan 30, 2013 at 12:45 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: On 30/01/13 11:58, Ferenc Kovacs wrote: On Wed, Jan 30, 2013 at 11:51 AM, Ivan Enderlin @ Hoa

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Martin Nicholls
On 29/01/2013 09:03, Zeev Suraski wrote: I’m creating a new one, based on the apparent level of interest in ZTS. This isn’t an RFC to remove ZTS by any stretch, but I **am** a bit confused about why people are still using ZTS. Personally because runkit sandbox requires it, amongst other

Re: [PHP-DEV] [RFC] send/recvmsg() wrappers in ext/socket

2013-01-30 Thread Gustavo Lopes
On Tue, 22 Jan 2013 18:23:59 +0100, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: https://wiki.php.net/rfc/sendrecvmsg The module ext/sockets, a wrapper around the sockets API, does not include support to recvmsg() and sendmsg(). This RFC addresses this shortcoming by support introducing

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Bas van Beek
Hi Guys, As a heavy user of ZTS in multi threaded C/C++ applications, here are my $0.02. Removing ZTS would be a bad idea for all those custom multi-threaded applications out there that allow some form of internal/embedded PHP scripting. These applications are not web-servers but do make use

RE: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Zeev Suraski
-Original Message- From: Bas van Beek [mailto:b...@tobin.nl] Sent: Wednesday, January 30, 2013 2:29 PM To: Zeev Suraski Cc: Pierre Joye; Stas Malyshev; PHP internals Subject: Re: [PHP-DEV] ZTS - why are you using it? Hi Guys, As a heavy user of ZTS in multi threaded C/C++

Re: [PHP-DEV] [RFC] send/recvmsg() wrappers in ext/socket

2013-01-30 Thread Brandon Wamboldt
Seeing as it doesn't break BC, and could be quite useful I don't see why you shouldn't merge it. On Wed, Jan 30, 2013 at 8:25 AM, Gustavo Lopes glo...@nebm.ist.utl.ptwrote: On Tue, 22 Jan 2013 18:23:59 +0100, Gustavo Lopes glo...@nebm.ist.utl.pt wrote:

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Bas van Beek
Op 30 jan. 2013, om 13:42 heeft Zeev Suraski het volgende geschreven: -Original Message- From: Bas van Beek [mailto:b...@tobin.nl] Sent: Wednesday, January 30, 2013 2:29 PM To: Zeev Suraski Cc: Pierre Joye; Stas Malyshev; PHP internals Subject: Re: [PHP-DEV] ZTS - why are you using

Re: [PHP-DEV] ZTS - why are you using it?

2013-01-30 Thread Pierre Joye
On Wed, Jan 30, 2013 at 1:42 PM, Zeev Suraski z...@zend.com wrote: In case I wasn't sufficiently clear, I'm talking about putting PHP inside a *multithreaded web server*, not being a good idea. It makes no sense where FPM is supported, or little sense. The use case you specify is exactly

Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Kalle Sommer Nielsen
Hi 2013/1/30 Stas Malyshev smalys...@sugarcrm.com: How it's more outside product than any of the other extensions we brought to the core? Because it was not developed at php.net for example? How many extensions thats in the core today was not developed somewhere at php.net, or was either in

RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Zeev Suraski
This is the kind of info the RFC (and then user doc) should have. I updated the RFC with two extra sections - 'what's an opcode cache', and 'interaction with other plugins'. https://wiki.php.net/rfc/optimizerplus Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread John Carter
Hi Zeev, Specifically would it continue to work with the Zend Guard decoder (as it does now)? Thanks, John. -Original Message- From: Zeev Suraski [mailto:z...@zend.com] Sent: 30 January 2013 14:48 To: Christopher Jones Cc: internals@lists.php.net Subject: RE: [PHP-DEV] [RFC]

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread hakre
- Ursprüngliche Message - Von: Stas Malyshev smalys...@sugarcrm.com Gesendet: 0:00 Mittwoch, 30.Januar 2013 Betreff: Re: [PHP-DEV] echo new SplFileObject(__FILE__); __toString is mapped to current() for SplFileObject: http://www.php.net/manual/en/splfileobject.current.php

Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Zeev Suraski
On 30 בינו 2013, at 16:57, John Carter jcar...@identitynetworks.com wrote: Hi Zeev, Specifically would it continue to work with the Zend Guard decoder (as it does now)? Our (Zend's) goal would be yes. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Paul Dragoonis
To be honest, it looks like __toString() was just added in there for the sake of it without any real thought as to what casting an entier SplFileObject to a string. This to me implies the entire object( i.e: the entire file ) should be returned as a string rather than aliasing it to a method

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Ferenc Kovacs
On Wed, Jan 30, 2013 at 4:44 PM, hakre hanskren...@yahoo.de wrote: - Ursprüngliche Message - Von: Stas Malyshev smalys...@sugarcrm.com Gesendet: 0:00 Mittwoch, 30.Januar 2013 Betreff: Re: [PHP-DEV] echo new SplFileObject(__FILE__); __toString is mapped to current() for

WG: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread hakre
- Weitergeleitete Message - Von: hakre hanskren...@yahoo.de An: Zeev Suraski z...@zend.com CC: Gesendet: 17:09 Mittwoch, 30.Januar 2013 Betreff: Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution  - Ursprüngliche Message - Von: Zeev Suraski

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread hakre
Von: Paul Dragoonis dragoo...@gmail.com Gesendet: 16:54 Mittwoch, 30.Januar 2013   To be honest, it looks like __toString() was just added in there for the sake of it without any real thought as to what casting an entier SplFileObject to a string. This to me implies the entire object( i.e:

RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Zeev Suraski
* In that RFC you write: the integration won’t happen before late 2014. [if it's not bundled with PHP 5.5] Can you please outline why? Based on an 18 month release cycle, and assuming we release 5.5.0 in mid 2013, 5.6.0 will come out late 2014. Especially does it mean you stop

Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Pierre Joye
On Wed, Jan 30, 2013 at 5:47 PM, Zeev Suraski z...@zend.com wrote: * In that RFC you write: the integration won’t happen before late 2014. [if it's not bundled with PHP 5.5] Can you please outline why? Based on an 18 month release cycle, and assuming we release 5.5.0 in mid 2013,

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Stas Malyshev
Hi! But this isn't that strong of an argument, and I think that following what SplFileInfo does would be more sensible (echoing the filename), but I'm not sure change would worth breaking BC for. I don't see why it would be more sensible. It's different objects that do different things - Info

RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Zeev Suraski
-Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Wednesday, January 30, 2013 7:22 PM To: Zeev Suraski Cc: hakre; PHP internals Subject: Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution On Wed, Jan 30, 2013 at 5:47 PM, Zeev Suraski

Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution

2013-01-30 Thread Stas Malyshev
Hi! Because it was not developed at php.net for example? How many I'm not sure what is the meaning here. Nothing is developed at php.net, strictly speaking. php.net doesn't have its own development team that works exclusively for php.net, it just gets code contributions from volunteers. And

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Ferenc Kovacs
2013.01.30. 19:16, Stas Malyshev smalys...@sugarcrm.com ezt írta: Hi! But this isn't that strong of an argument, and I think that following what SplFileInfo does would be more sensible (echoing the filename), but I'm not sure change would worth breaking BC for. I don't see why it would

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Paul Dragoonis
I also agree that we don't need to fix this, nor break BC. It is confusing as hell but it's there now and changing it would be more disruptive. Is there a desire from anyone to gracefully throw E_DEPRECATED in a future version of PHP 5.x when someone tries to __toString() the SplFileObject but

Re: [PHP-DEV] echo new SplFileObject(__FILE__);

2013-01-30 Thread Peter Cowburn
On 30 January 2013 18:48, Paul Dragoonis dragoo...@gmail.com wrote: Is there a desire from anyone to gracefully throw E_DEPRECATED in a future version of PHP 5.x when someone tries to __toString() the SplFileObject but only get back a single line ? Absolutely not. -- PHP Internals - PHP

[PHP-DEV] New SSL stream context option to prevent CRIME attack vector

2013-01-30 Thread Lars Strojny
Hi, we have an open PR for a new SSL stream context option to prevent the CRIME attack vendor. Anybody with more familiar knowledge of SSL should have a look: https://github.com/php/php-src/pull/269 cu, Lars -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Alan Knowles
Rebuttal inline... - and better solution at end... On Tuesday, January 29, 2013 01:46 PM, Stas Malyshev wrote: Hi! I've used this in other places, it's basically lightweight traits, and has always been perfectly valid code. There does not seem to be a clear justification for deprecating it

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Stas Malyshev
Hi! I did a testable version in javascript the other day. - it's similar to this.. Javascript is not really an OO language. It has objects, but it doesn't really follow or enforce any of OO paradigms. It's prototype-based, so things work differently there. An almost secret vote, that as I

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Alan Knowles
Top posting as the discussion was going a bit off topic. (Yes there was a vote, but the rfc could do with some refinements.) This is an illustration of the proposed change to the RFC, and the absurdity of how trait's allow incompatible scopes, and give no similar warning Example1 -

Re: [PHP-DEV] [VOTE] Deprecate and remove calls from incompatible context (example of real usage that will break)

2013-01-30 Thread Sanford Whiteman
If addPreserveText() uses anything from Footer, it should not be called from TextRun, but if it does not, it should be in Section. No, if it was in Section, all the child classes would have to override it and throw errors. That results in quite a bit of pointless boilerplate code to solve a

[PHP-DEV] Re: Deprecate and remove calls from incompatible context

2013-01-30 Thread Todd Ruth
Some of us have rather large bodies of code written over 10-12 years that make significant use of calling $this from incompatible contexts (i.e. we know it's compatible, but php doesn't). Most consider such use a sin. Could there be a compromise that would allow us evildoers to continue in our