Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Paul Reinheimer
Hi All, > In parallel I'd also see if there are any key extensions which we think are > mainstream, stable and well maintained enough to be included. For example, > http comes to mind. With regards to the http extension, I've been using it in production for a while, but ran into an issue where

[PHP-DEV] Object and Array Literals

2011-06-04 Thread Sean Coates
Hello. I've posted a RFC concerning Object and Array Literals on the wiki: https://wiki.php.net/rfc/objectarrayliterals Please read, and if you have a comment that is not already covered in the RFC, raise it here. I'm definitely open to discussion, but I would really love to keep this discussi

RE: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-04 Thread John Crenshaw
The presence of such an error trap demonstrates a desire to know about and handle unexpected failures. Any developer or project that went to the trouble to add this sort of error handler would almost certainly want to get the notice on this conversion. Counter-examples welcome, if anyone can thi

Re: [PHP-DEV] RFC: Zend Signal Handling

2011-06-04 Thread Felipe Pena
Fixed invalid sigaction() call passing NSIG as signal number. - for (signo = 1; signo <= NSIG; ++signo) { + for (signo = 1; signo < NSIG; ++signo) { Detected by Valgrind: ==4577== Warning: bad signal number 65 in sigaction() 2011/6/3 Ilia Alshanetsky > The crash is now fixed as well. > > On F

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread guilhermebla...@gmail.com
Hi, APC +1 I don't think it should have OAuth2 bundled (and I don't consider OAuth v1 too). Related to thrift, I'm more in favor of having a native Cassandra implementation than bundling thrift on PHP. Thrift's implementation is not good (sorry Scott) and the overhead of bootstrapping, connectin

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Philip Olson
On Jun 4, 2011, at 6:00 PM, Rasmus wrote: > On 06/04/2011 09:03 PM, Scott MacVicar wrote: >> On Jun 4, 2011, at 4:57 PM, Stas Malyshev wrote: >> >>> Hi! >>> In parallel I'd also see if there are any key extensions which we think are mainstream, stable and well maintained enough to be

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Rasmus
On 06/04/2011 09:03 PM, Scott MacVicar wrote: > On Jun 4, 2011, at 4:57 PM, Stas Malyshev wrote: > >> Hi! >> >>> In parallel I'd also see if there are any key extensions which we >>> think are mainstream, stable and well maintained enough to be >>> included. For example, http comes to mind. >> >>

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Marcel Esser
On 6/4/2011 8:55 PM, Philip Olson wrote: In parallel I'd also see if there are any key extensions which we think are mainstream, stable and well maintained enough to be included. For example, http comes to mind. Enable pecl_http by default (or, always), and bundle APC. Regards, Philip APC, +

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Philip Olson
> In parallel I'd also see if there are any key extensions which we think are > mainstream, stable and well maintained enough to be included. For example, > http comes to mind. Enable pecl_http by default (or, always), and bundle APC. Regards, Philip -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-04 Thread Johannes Schlüter
On Thu, 2011-06-02 at 15:29 +0200, Pierre Joye wrote: > hi, > > I like this for the current stable branch, no bc impact and gives a > way to detect such mistakes (not ideal but better than nothing). This has an BC impact. some stupid error handler might be triggered which might break an applicati

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Scott MacVicar
On Jun 4, 2011, at 4:57 PM, Stas Malyshev wrote: > Hi! > >> In parallel I'd also see if there are any key extensions which we >> think are mainstream, stable and well maintained enough to be >> included. For example, http comes to mind. > > Maybe also oauth? It's getting popular and widely used.

Re: [PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Stas Malyshev
Hi! In parallel I'd also see if there are any key extensions which we think are mainstream, stable and well maintained enough to be included. For example, http comes to mind. Maybe also oauth? It's getting popular and widely used. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.

[PHP-DEV] Bundling "modern" extensions

2011-06-04 Thread Andi Gutmans
Hi, I've been getting quite a few inquiries re: PHP's "lack" of support for modern technologies such as NoSQL databases (for lack of better term). There is some (mistaken) perception that PHP is behind on this front. I think one of the problems is that in the past we always ensured that the e

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Stas Malyshev
Hi! How does it work? Do you need write permission to the page it is located on, or is it enough to have login? Login's enough. There is also an ability to designate admins (see the docs) which can edit the votes, but I'm not sure if it's needed for user-based vote. How do you differentia

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-04 Thread Mike van Riel
Hey David, That gives me the following output: int(640720) int(244001144) Mike On Sat, 2011-06-04 at 23:51 +0200, David Zülke wrote: What does var_dump(memory_get_peak_usage()); token_get_all(file_get_contents('')); var_dump(memory_get_peak_usage()); get you? David -- PHP Intern

Re: [PHP-DEV] Trying to find out where the memory went

2011-06-04 Thread David Zülke
What does var_dump(memory_get_peak_usage()); token_get_all(file_get_contents('')); var_dump(memory_get_peak_usage()); get you? David On 04.06.2011, at 23:38, Mike van Riel wrote: > Dear Internals, > > During development of DocBlox I encountered a (for me) unusual situation > with regards to

[PHP-DEV] Trying to find out where the memory went

2011-06-04 Thread Mike van Riel
Dear Internals, During development of DocBlox I encountered a (for me) unusual situation with regards to memory usage. I hope you can shed some light on this for me as I do not understand. The situations is as follows: I have a php file containing about 53 KLOC (including whitespace and comm

Re: [PHP-DEV] Final version, RFC release process

2011-06-04 Thread Philip Olson
On Jun 2, 2011, at 3:08 AM, Sebastian Bergmann wrote: > Am 01.06.2011 14:44, schrieb Johannes Schlüter: >> I mentioned this before: I like the Ubuntu model: >> >> * One development branch for the next version >> * One current version >> * One "long term" supported version > > +1 +1 Regards, P

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Hannes Magnusson
On Sat, Jun 4, 2011 at 19:58, Stas Malyshev wrote: > Hi! > >> Please keep them in the wiki as we planed to do. THere are plugins and >> it is very easy to manage, allows per section voting etc. > > I've installed voting plugin, see description here: > > http://www.dokuwiki.org/plugin:doodle2 > > a

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Pierre Joye
right, that's the one I was willing to install as well, great that you did it! Thanks :) On Sat, Jun 4, 2011 at 7:58 PM, Stas Malyshev wrote: > Hi! > >> Please keep them in the wiki as we planed to do. THere are plugins and >> it is very easy to manage, allows per section voting etc. > > I've ins

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Stas Malyshev
Hi! Please keep them in the wiki as we planed to do. THere are plugins and it is very easy to manage, allows per section voting etc. I've installed voting plugin, see description here: http://www.dokuwiki.org/plugin:doodle2 and example how it looks here at the end (login required to vote):

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Pierre Joye
hi Philip, On Sat, Jun 4, 2011 at 3:29 PM, Philip Olson wrote: >  - RFC: Request For Comments Thanks for the reminder. But RFC got approved at some point as well. See the numerous W3C RFCs for some known examples. > And while doing so, not revert to a vote (RFV?) simply because discussing a >

Re: [PHP-DEV] JSON array/object syntax

2011-06-04 Thread Anthony Ferrara
One advantage would be familiarity. New developers only need to worry about 1 syntax, rather than a new one for each language. I'm not saying if it's worth it or not, but there is something to be said for consistency and using already established patterns and syntaxes if it makes sense (aka: ther

RE: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread John Crenshaw
Speaking generally, consensus is a dangerous and impossible standard. Few things can cripple progress like waiting for consensus. Voting may be one good way to move things forward without deadlocking forever. I agree though that without clear rules for how the process should work, voting is also

Re: [PHP-DEV] JSON array/object syntax

2011-06-04 Thread Philip Olson
Greetings, It'd be beneficial if we waited to discuss this topic until after Sean proposes an RFC this weekend. Regards, Philip -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-04 Thread David Zülke
I think for consistency's sake it should be a notice as the same is already done in _convert_to_string(). In fact, couldn't zend_make_printable_zval() use _convert_to_string()? - David On 03.06.2011, at 09:57, Derick Rethans wrote: > On Thu, 2 Jun 2011, Ilia Alshanetsky wrote: > >> I like th

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Philip Olson
On Jun 4, 2011, at 3:07 AM, Pierre Joye wrote: > On Sat, Jun 4, 2011 at 5:46 AM, Stas Malyshev wrote: > >> [VOTE] is a good idea, let's make it [VOTE]. >> >>> There is no plugin used for it yet, and that's my problem with it. >> >> Well, votes aren't announced yet either :) I'll try to get it

Re: [PHP-DEV] JSON array/object syntax

2011-06-04 Thread David Zülke
To clarify: I don't understand what the advantage would be, either. It seems that those demanding it somehow confuse or blur the lines between the declaration of data in the language and its representation in a serialization format. A few people in the thread demanded that it be a syntax that co

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-04 Thread David Zülke
Yes, I know. Then why are you and others demanding that the resulting syntax be fully compatible with JSON so it could be parsed by other JSON parsers? That makes no sense at all. A file with just ["foo"] in it won't be interpreted by PHP; you need at least wrappers and a semicolon, and then yo

Re: [PHP-DEV] Re: Voting does not belong on the wiki! (Was: [PHP-DEV] 5.4 moving forward)

2011-06-04 Thread Pierre Joye
On Sat, Jun 4, 2011 at 5:46 AM, Stas Malyshev wrote: > [VOTE] is a good idea, let's make it [VOTE]. > >> There is no plugin used for it yet, and that's my problem with it. > > Well, votes aren't announced yet either :) I'll try to get it set up ASAP > and see how it works, before announcing the v

[PHP-DEV] run-tests.php and CGI headers

2011-06-04 Thread Michael Wallner
Hi! How am I supposed to test response headers with run-test.php nowadays? Looking at old pecl_http tests and zlib's ob_* tests it seems that it should be possible, but I apparently fail to call run-tests.php in the proper way: TEST_PHP_EXECUTABLE=auto ./sapi/cli/php run-tests.php ~/src/php/ph