Re: [PHP-DEV] Changes in libcurl for CURLOPT_SSL_VERIFYHOST in 7.28.1

2012-12-20 Thread jpauli
On Wed, Dec 19, 2012 at 5:35 AM, Pierrick Charron pierr...@webstart.frwrote: Hi all, About 2 month ago, we had a discussion on this list about the fact that CURLOPT_SSL_VERIFYHOST was most of the time used with a Boolean value (true) instead of int values (0,1 or 2). This bad usage was

Re: [PHP-DEV] Changes in libcurl for CURLOPT_SSL_VERIFYHOST in 7.28.1

2012-12-20 Thread jpauli
On Thu, Dec 20, 2012 at 4:57 PM, Pierrick Charron pierr...@webstart.frwrote: Hi Julien, I think we need to trigger a notice to prevent users to write code that may not work in future version even if it doesn't depend on our changes but on libraries changes. Maybe we could be more explicit

[PHP-DEV] PHP5.5.0alpha2 release

2012-12-20 Thread jpauli
Hi Internals, We just tagged PHP 5.5.0alpha2 today. This release contains bug fixes against alpha1, as well as new features. The packages can be found at: http://downloads.php.net/dsp Please, note that the ext/mysql deprecation has been merged into this release. For other changes, as

Re: [PHP-DEV] How about implementing more data structures (ie Map, Set)

2012-12-18 Thread jpauli
On Tue, Dec 18, 2012 at 3:43 PM, Victor Berchet vic...@suumit.com wrote: Dear all: I would like to get your feedback on implementing some more data structure in the PHP core. Things like Set, Map could be really helpful. A Set would be an unordered collection with no duplicate elements

Re: [PHP-DEV] Bug #23955: Cookie Max-Age attribute

2012-12-10 Thread jpauli
On Mon, Dec 10, 2012 at 1:28 PM, Andrey Andreev n...@bofh.bg wrote: Hello all, On a pull request submitted via github, it was suggested to me that I should write an RFC about the feature that I'm proposing as well as to write about it here on the internals mail list. However, creating new

Re: [PHP-DEV] Things move slowly in the real world ;)

2012-12-05 Thread jpauli
On Wed, Dec 5, 2012 at 2:18 AM, Adam Harvey ahar...@php.net wrote: On 5 December 2012 08:26, Kris Craig kris.cr...@gmail.com wrote: Seriously, though, 1and1 is a joke. That's not exactly breaking news. If it really bugs us that much, we could always put up a statement on the website

Re: [PHP-DEV] execute_data-Ts removing

2012-12-03 Thread jpauli
On Mon, Dec 3, 2012 at 2:26 PM, Dmitry Stogov dmi...@zend.com wrote: Hi Yoram, Yeas, I checked memory reads on a release PHP built (with -O2 optimization level). The idea is very simple. Before the patch each access to TMP was implemented as: execute_data-Ts + offset GCC with -O2 kept

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-12 Thread jpauli
On Mon, Nov 12, 2012 at 2:20 PM, Antony Dovgal t...@daylessday.org wrote: On 2012-11-12 17:00, Adam Harvey wrote: Hi everyone, I've written an RFC to cover deprecating ext/mysql in PHP 5.5: https://wiki.php.net/rfc/mysql_deprecation. While we handled the soft deprecation in the

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-12 Thread jpauli
On Mon, Nov 12, 2012 at 4:57 PM, Arvids Godjuks arvids.godj...@gmail.com wrote: Hello all! Julien this weekend was at the conference in Riga and we talked with him exactly about this, how it could be handled and stuff. The bottom line of our discussion was that I expressed the opinion that

Re: [PHP-DEV] Object comparison

2012-11-09 Thread jpauli
On Fri, Nov 9, 2012 at 2:18 PM, Christian Stoller stol...@leonex.de wrote: I would like to place a suggestion for comparing objects (I hope it is no problem, because this does not have anything to do with Sara's question - but it came to my mind when I read her mail). It would be a great

Re: [PHP-DEV] Branching PHP-5.5

2012-11-05 Thread jpauli
On Fri, Nov 2, 2012 at 1:49 PM, Kalle Sommer Nielsen ka...@php.net wrote: Hi David 2012/10/30 d...@php.net d...@php.net Hi Internals, it's been a while since we started talking about PHP 5.5 and we are already a little bit late with my release plans. I've started reviewing the current

Re: [PHP-DEV] Generics proposal

2012-10-22 Thread jpauli
On Sat, Oct 20, 2012 at 10:59 PM, Nikita inefe...@gmail.com wrote: Hello, list. I want to propose generics. For those, who don't know what it is, here's example: say we have a Comment class, that has a method getBody. Also we have Collection class, that implements Traversable. Now, if I want

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-24 Thread jpauli
On Mon, Sep 24, 2012 at 4:21 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: On 21/09/12 16:16, jpauli wrote: On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hello, If PHP receives a HTTP request with the method POST

Re: [PHP-DEV] POST, content-type: application/json and json_decode

2012-09-21 Thread jpauli
On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hello, If PHP receives a HTTP request with the method POST and with the header Content-Type: application/x-www-form-encoded, then, it automatically parses the request body to populate an array in $_POST.

Re: [PHP-DEV] constructor hook

2012-09-19 Thread jpauli
On Sep 19, 2012 4:31 AM, Kris Craig kris.cr...@gmail.com wrote: On Tue, Sep 18, 2012 at 8:14 AM, Amaury Bouchard ama...@amaury.net wrote: Sounds to me like aspect-oriented programming, applied to object construction. Take a look at: https://github.com/AOP-PHP/AOP Yeah I wasn't aware

Re: [PHP-DEV] constructor hook

2012-09-18 Thread jpauli
On Tue, Sep 18, 2012 at 5:14 PM, Amaury Bouchard ama...@amaury.net wrote: Sounds to me like aspect-oriented programming, applied to object construction. Take a look at: https://github.com/AOP-PHP/AOP +1, this is the same case as AOP, but for constructor. Thus AOP may fit the need. Julien.P --

Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class

2012-09-18 Thread jpauli
On Tue, Sep 18, 2012 at 2:27 PM, Pádraic Brady padraic.br...@gmail.com wrote: Hi Derick, This is already available over composer. The RFC contains links to the two frameworks which have implemented Escapers in line with the RFC. The point of the RFC is to ensure a consistent API for escaping

Re: [PHP-DEV] Re: Moving forward: PHP 5.5

2012-09-17 Thread jpauli
Roger captain :) I'll soon be on IRC to check this out and get used to PHP build tools and environment :) Julien.P On Mon, Sep 17, 2012 at 10:15 AM, Pierre Joye pierre@gmail.com wrote: On Mon, Sep 17, 2012 at 10:09 AM, David Soria Parra d...@php.net wrote: On 2012-09-08, David Soria Parra

Re: [PHP-DEV] an configure option to enable-all

2012-09-17 Thread jpauli
I'm confused.. --enable-all is already supported, just like --disable-all ? -Hannes AFAIR no :) We have a --disable-all , but no --enable-all. I'm +1 to add such an option if possible :) Julien.P -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Re: Moving forward: PHP 5.5

2012-09-17 Thread jpauli
On Mon, Sep 17, 2012 at 11:29 AM, Ferenc Kovacs tyr...@gmail.com wrote: On Mon, Sep 17, 2012 at 10:09 AM, David Soria Parra d...@php.net wrote: On 2012-09-08, David Soria Parra d...@php.net wrote: Hi internals, I would like to go ahead and propose Julien Pauli as the RM for 5.5. He is an

Re: [PHP-DEV] Moving forward: PHP 5.5

2012-09-17 Thread jpauli
On Mon, Sep 17, 2012 at 4:57 PM, Herman Radtke hermanrad...@gmail.com wrote: David, I think you're experienced enough to fill this role alone. One benefit to having two RM's is that Julien is learning from DSP. If there is a strong reason to have only one RM, then maybe we should consider a

Re: [PHP-DEV] an configure option to enable-all

2012-09-17 Thread jpauli
On Mon, Sep 17, 2012 at 2:48 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: On Mon, Sep 17, 2012 at 9:59 AM, jpauli jpa...@php.net wrote: I'm confused.. --enable-all is already supported, just like --disable-all ? -Hannes AFAIR no :) We have a --disable-all , but no --enable-all

Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars

2012-09-13 Thread jpauli
On Thu, Sep 13, 2012 at 10:36 AM, Lars Strojny l...@strojny.net wrote: Hi Simon, Am 13.09.2012 um 10:34 schrieb Simon J Welsh si...@simon.geek.nz: [...] I would expect $variable::class to work (like late static bindings). [...] Than better try the patch, as it doesn’t work now :) But it

Re: [PHP-DEV] [VOTE] ::class feature to resolve namespaced class names to scalars

2012-09-13 Thread jpauli
On Thu, Sep 13, 2012 at 11:12 AM, Dmitry Stogov dmi...@zend.com wrote: We already have isset(), empty(), unset() that are a special purpose functions handled by compiler. Thanks. Dmitry. Yes, if we communicate the right way about our feature not beeing a true PHP function and taking isset(),

[PHP-DEV] What is our definition of a Backward Compatibility Break

2012-09-10 Thread jpauli
Based on our recent discussion on #pecl , I'd like we clarify what we think is a BCB (Backward Compatibility Break) as well as what only minor BC breaks could mean. Stas' recent topic on internals On BC and interfaces may serve as a reflection basis. As our release process told us that we should

Re: [PHP-DEV] $obj-attr::method() is not allowed

2012-09-03 Thread jpauli
We have some RFC for parser rewrite using lemon : https://wiki.php.net/rfc/lemon And AFAIR, adoy has a full working rewrite just as-is, the main topic with lemon was to make the parser thread safe, not to generate an AST. Writing a parser / compiler for using an AST is a very huge task, so that

Re: [PHP-DEV] RFC for Adding __toString to DateTime

2012-09-03 Thread jpauli
Just In Case, I implemented a solution in an extension of mine. I use a INI setting, ideas are on my github https://github.com/jpauli/Comuto/blob/master/comuto.c#L97 and https://github.com/jpauli/Comuto/blob/master/comuto.c#L175 Anyway, I'm really +1 for patching ext/date to add such a feature

Re: [PHP-DEV] [RFC] Remove calls with incompatible Context

2012-08-06 Thread jpauli
On Sat, Aug 4, 2012 at 12:40 AM, Andrew Faulds a...@ajf.me wrote: While we're at it, $a = 'this'; $$a = new StdClass(); should be an error. Also $GLOBALS['this'] = new StdClass(); https://bugs.php.net/bug.php?id=52428 Hehe, I already caught all those executor tricks, like : ?php

Re: [PHP-DEV] [RFC] Remove calls with incompatible Context

2012-08-06 Thread jpauli
On Sat, Aug 4, 2012 at 12:36 AM, Etienne Kneuss col...@php.net wrote: On Mon, Jul 30, 2012 at 7:31 PM, Gustavo Lopes glo...@nebm.ist.utl.pt wrote: https://wiki.php.net/rfc/incompat_ctx An RFC for deprecating and removing $this from incompatible context. Comments are welcome. After several

Re: [PHP-DEV] Internal iteration API

2012-07-25 Thread jpauli
On Wed, Jul 25, 2012 at 6:52 AM, Larry Garfield la...@garfieldtech.com wrote: On 07/24/2012 03:52 AM, jpauli wrote: On Sat, Jul 14, 2012 at 2:35 AM, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! So, I've not been inside the engine so in practice this may make no sense at all, but what

Re: [PHP-DEV] Internal iteration API

2012-07-24 Thread jpauli
On Sat, Jul 14, 2012 at 2:35 AM, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! So, I've not been inside the engine so in practice this may make no sense at all, but what about looking at it the other way around? Vis, instead of making objects more and more like arrays, make arrays an

Re: [PHP-DEV] How to track down an APC bug

2012-07-20 Thread jpauli
On Thu, Jul 19, 2012 at 8:14 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: The goal of this message is to encourage and motivate a few people to give me a hand with tracking down APC bugs. There are still a few outstanding bugs that is slowing PHP 5.4 adoption and it would be really nice to

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-13 Thread jpauli
On Fri, Jul 13, 2012 at 5:33 PM, Anthony Ferrara ircmax...@gmail.com wrote: Hey all, I know that 6.0 was originally supposed to be the unicode conversion of the engine. However it appears that all progress on that has stopped for quite some time. So, I was curious if we could start a

Re: [PHP-DEV] [request #48542] addition of optional second parameter to array_shift/array_pop which gives key

2012-07-13 Thread jpauli
On Fri, Jul 13, 2012 at 6:11 PM, Andrew Faulds ajf...@googlemail.com wrote: Hi there, I saw this bug report (feature request): https://bugs.php.net/bug.php?id=48542 The person there proposes that array_shift and array_pop should have an optional second parameter, which can be passed a

Re: [PHP-DEV] Internal iteration API

2012-07-13 Thread jpauli
On Fri, Jul 13, 2012 at 3:55 PM, Matthew Weier O'Phinney weierophin...@php.net wrote: On 2012-07-13, David Muir davidkm...@gmail.com wrote: On 13/07/12 01:04, Matthew Weier O'Phinney wrote: On 2012-07-12, Sara Golemon poll...@php.net wrote: --e89a8f235453d7a80104c4975c55 On Wed, Jul 11,

Re: [PHP-DEV] Add parameter user_only to get_declared_classes(interfaces/traits)

2012-06-22 Thread jpauli
On Fri, Jun 22, 2012 at 6:25 PM, Laruence larue...@php.net wrote: Hi internalers:      there comes a FR, #62343 https://bugs.php.net/bug.php?id=62343      the bug self is about class alias,  but it also metioned a new parameter $user_only to get_declared_classes.      the FR makes sense to

Re: [PHP-DEV] readfile() memory usage

2012-05-04 Thread jpauli
On Tue, May 1, 2012 at 8:44 PM, Paul Reinheimer preinhei...@gmail.com wrote: Hi, It sounds like it.  In that case the memory spike is happening in the output buffer, where the file is streamed into by readfile() in 8K chunks until the output buffer explodes. :-) So, I think we're back to

Re: [PHP-DEV] running tests in parallel?

2012-05-03 Thread jpauli
On Thu, May 3, 2012 at 12:54 PM, zoe slattery aparac...@gmail.com wrote: Hi Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student worked on a version of run-tests.php which would run tests in parallel - I wrote about it here:

Re: [PHP-DEV] call user defined function with args

2012-04-27 Thread jpauli
You might be interested by zend_call_method_with_[XXX]_params() as well http://lxr.php.net/xref/PHP_5_3/Zend/zend_interfaces.h Julien.Pauli On Fri, Apr 27, 2012 at 8:51 AM, Laruence larue...@php.net wrote: Hi:  you can refer to zif_call_user_func, which could be find at

[PHP-DEV] Expose mysqlnd API through all MySQL extensions

2012-04-24 Thread jpauli
Hi all, I'm actually putting my head into ext/mysqlnd and I noticed weird things about its API. As you should know, ext/mysqlnd is a replacement for libmysql, that is, all our 3 MySQL-related extensions may use it, and it is done by default for 5.4 branch. However, I've been surprised that

Re: [PHP-DEV] Expose mysqlnd API through all MySQL extensions

2012-04-24 Thread jpauli
2012/4/24 Johannes Schlüter johannes.schlue...@oracle.com: On Tue, 2012-04-24 at 13:35 +0200, jpauli wrote: - mysqli_get_client_stats() - mysqli_get_connection_stats() - mysqli_get_cache_stats() Those three functions are ext/mysqlnd related, they are #ifdef 'ed in the source code of ext

Re: [PHP-DEV] Expose mysqlnd API through all MySQL extensions

2012-04-24 Thread jpauli
On Tue, Apr 24, 2012 at 2:34 PM, Ulf Wendel ulf.wen...@oracle.com wrote: Am 24.04.2012 14:27, schrieb jpauli: I understand your thoughts, but I disagree as I think it would be much more clean to expose it via mysqlnd_***() API than through each MySQL ext (and for PDO that would be even more

Re: [PHP-DEV] Expose mysqlnd API through all MySQL extensions

2012-04-24 Thread jpauli
2012/4/24 Johannes Schlüter johannes.schlue...@oracle.com: On Tue, 2012-04-24 at 14:27 +0200, jpauli wrote: Aha, I like when an internals guy teach me internals stuff :) So, OK for 5.3 , what about supporting that for =5.4 ? Maybe. ;-) I can start working on ideas/patches The other

Re: [PHP-DEV] Extension versions

2012-04-23 Thread jpauli
+1 for that notice. In fact, Zend API provides extensions a char* to give a hint about the extension version, but I guess no-one has been serious and really used that field as it would have to be. I recently noticed mistakes in ext/mysqlnd_ms as well. I then agree with Johannes, just use

Re: [PHP-DEV] default charset confusion

2012-03-14 Thread jpauli
On Tue, Mar 13, 2012 at 1:52 AM, Yasuo Ohgaki yohg...@ohgaki.net wrote: 2012/3/13 Rasmus Lerdorf ras...@lerdorf.com: On 03/12/2012 03:05 AM, Yasuo Ohgaki wrote: I thought default_charset became UTF-8, so I was expecting following HTTP header. content-type text/html; charset=UTF-8

Re: [PHP-DEV] default charset confusion

2012-03-14 Thread jpauli
On Wed, Mar 14, 2012 at 3:37 PM, Gustavo Lopes glo...@nebm.ist.utl.ptwrote: On Wed, 14 Mar 2012 14:55:17 +0100, jpauli jpa...@php.net wrote: I would then propose to make mbstring compile time mandatory. I'm completely against these kind of lazy solutions. Yes, let's add strong coupling

Re: [PHP-DEV] 5.3.11 planning

2012-03-06 Thread jpauli
2012/3/6 Derick Rethans der...@php.net On Tue, 6 Mar 2012, Johannes Schlüter wrote: just a quick note on 5.3.11 planning: We will migrate to git in roughly one week. I'll give it a few days to verify migration works fine afterwards and then start the 5.3.11 process. Best is to get

Re: [PHP-DEV] ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

2012-03-02 Thread jpauli
Laruence and I wrote articles about ZendMM internals. You would find them at http://www.laruence.com/2011/11/09/2277.html and http://julien-pauli.developpez.com/tutoriels/php/internals/zend-memory-manager/ . You can use any translator to get them in English For basic use, see the readme at

Re: [PHP-DEV] [RFC] discussions, about a 5.3 EOL

2012-03-02 Thread jpauli
On Fri, Mar 2, 2012 at 2:43 PM, Adam Harvey ahar...@php.net wrote: On 2 March 2012 21:34, Simon Schick simonsimc...@googlemail.com wrote: One or two years is way to short if you'd ask me. A major release should be supported with all kind of bug fixes for min. 3 years after a new release

Re: [PHP-DEV] ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

2012-03-02 Thread jpauli
/issues.html?issue=57id=9#article) ; but for PHP needs, and with multi-platform in mind. Julien.P laurence site looks down to me. Perhaps the link is wrong? Thanks, A. From: jpauli jpa...@php.net To: Adi Mutu adi_mut...@yahoo.com Cc: internals@lists.php.net

Re: [PHP-DEV] Vulnerability by loading doctype-declaration of xml

2012-03-01 Thread jpauli
Using DOM, this can be achieved with $domDocument-resolveExternals = false; before loading a document. Julien.P On Wed, Feb 29, 2012 at 9:52 PM, Gustavo Lopes glo...@nebm.ist.utl.ptwrote: On Wed, 29 Feb 2012 19:30:15 +0100, Simon Schick simonsimc...@googlemail.com wrote: I just read this

Re: [PHP-DEV] Newbie: issues developing a new extension

2012-03-01 Thread jpauli
On Wed, Feb 29, 2012 at 10:06 PM, Christian Ferrari cam...@yahoo.comwrote: Dear all, I'm asking your help because I'm not able to solve an issue probably related to some foolish mistake I have not yet discovered. I'm trying to develop

Re: [PHP-DEV] [Draft RFC] Object Casting and Assignment Handlers

2012-03-01 Thread jpauli
On Thu, Mar 1, 2012 at 1:45 AM, Clint M Priest cpri...@zerocue.com wrote: As much as I would love to have __castTo() and __assign() I have to agree with Stas here that it fundamentally changes the mechanics of if($object) and unfortunately turns that simple if statement into a possible hour

Re: [PHP-DEV] PHP Philosophy (was RE: [PHP-DEV] Scalar type hinting)

2012-03-01 Thread jpauli
On Thu, Mar 1, 2012 at 9:52 AM, Simon Schick simonsimc...@googlemail.comwrote: Hi, John Just to add an idea to yours .. Do you think it's a compatibility-break if we'd decide to send a E_NOTICE or E_WARNING if we f.e. try to give a string to a method that just allows integer for this

Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache

2012-02-29 Thread jpauli
On Wed, Feb 29, 2012 at 9:18 AM, Pierre Joye pierre@gmail.com wrote: hi Bill, On Tue, Feb 28, 2012 at 11:29 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: On 2/28/2012 3:41 PM, Sebastian Bergmann wrote: On 02/28/2012 02:44 PM, Christopher Jones wrote: Build PHP with ZTS enabled

Re: [PHP-DEV] Newbie: issues developing a new extension

2012-02-29 Thread jpauli
On Wed, Feb 29, 2012 at 10:47 AM, Christian Ferrari cam...@yahoo.comwrote: Dear all, I'm asking your help because I'm not able to solve an issue probably related to some foolish mistake I have not yet discovered. I'm trying to develop an experimental extension

Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache

2012-02-28 Thread jpauli
On Mon, Feb 27, 2012 at 10:12 PM, William A. Rowe Jr. wr...@rowe-clan.netwrote: On 2/27/2012 6:58 AM, jpauli wrote: PHP through mod_php on Linux should compile without ZTS. configure script searches for apxs binary and tries to invoque apxs -q MPM to figure out what MPM has been compiled

Re: [PHP-DEV] Object Casting - An Alternative to Type Hinting

2012-02-28 Thread jpauli
On Tue, Feb 28, 2012 at 6:05 AM, Anthony Ferrara ircmax...@gmail.comwrote: Ok, I've made a proof-of-concept patch here: https://gist.github.com/1929587 Note that there are still a few memory leaks in there that would need to be cleaned up, but I just wanted to make a really quick POC before

Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache

2012-02-28 Thread jpauli
On Tue, Feb 28, 2012 at 3:37 PM, Tom Boutell t...@punkave.com wrote: On Mon, Feb 27, 2012 at 4:12 PM, William A. Rowe Jr. wr...@rowe-clan.net wrote: No, 2.2 and 2.4 don't default to prefork, it's suboptimal, most linux distros have moved away from it... Ubuntu starts out with the worker

Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache

2012-02-27 Thread jpauli
PHP through mod_php on Linux should compile without ZTS. configure script searches for apxs binary and tries to invoque apxs -q MPM to figure out what MPM has been compiled in Apache for the TS flag to be defined or not (thus, activating PHP ZTS, or not). Mainly on Linux, Apache should have been

Re: [PHP-DEV] [RFC] APXS LoadModule Option in configure

2012-02-27 Thread jpauli
On Mon, Feb 27, 2012 at 2:27 AM, Kris Craig kris.cr...@gmail.com wrote: Ok, I've updated the RFC based on input received here. I also made a decision on the APXS vs. APXS2 question; please refer to the RFC for details. If anybody has any objections to this decision, now would be the time to

Re: [PHP-DEV] 5.4 and is_callable()

2012-02-24 Thread jpauli
On Thu, Feb 23, 2012 at 9:03 PM, Stas Malyshev smalys...@sugarcrm.comwrote: Hi! If I create a callback with either of these values: * $callback = 'Foo::bar'; * $callback = array('Foo', 'Bar'); is_callable() now returns true. In PHP 5.2 and 5.3, it returned false, which is what

Re: [PHP-DEV] how to debug a php script ( the C code beneath it)

2012-02-14 Thread jpauli
2012/2/14 Adi Mutu adi_mut...@yahoo.com Perhaps i didn't explain correctly, my bad, sorry. Basically what I want to see is the corresponding C code which is executed, i could put a break in gdb, but how do I know at which C function to put it, if i don't know the internals of php very good?

Re: [PHP-DEV] Fwd: Re: signals hadling problem in PHP 5.4

2012-02-14 Thread jpauli
Hey :) Is there a bug report for that ? I can find two of them related to zend signal problems with deadlocks-in-libc problems : #31749 #61067 Julien.P On Tue, Feb 14, 2012 at 11:22 AM, Dmitry Stogov dmi...@zend.com wrote: Hi, We will probably have to introduce --enable-zend-signals

Re: [PHP-DEV] Fwd: Re: signals hadling problem in PHP 5.4

2012-02-14 Thread jpauli
not related to zend_signals. They were introduced only in 5.4. Thanks. Dmitry. On 14.02.2012, at 16:16, jpauli jpa...@php.net wrote: Hey :) Is there a bug report for that ? I can find two of them related to zend signal problems with deadlocks-in-libc problems : #31749 #61067 Julien.P On Tue

Re: [PHP-DEV] Fwd: Re: signals hadling problem in PHP 5.4

2012-02-14 Thread jpauli
On Tue, Feb 14, 2012 at 5:35 PM, Rasmus Lerdorf ras...@php.net wrote: On 02/14/2012 06:42 AM, Dmitry Stogov wrote: I've opened the bug report #61083. The bugs you mentioned are probably not related to zend_signals. They were introduced only in 5.4. Right, but zend_signals actually fixes

Re: [PHP-DEV] Fwd: Re: signals hadling problem in PHP 5.4

2012-02-14 Thread jpauli
On Tue, Feb 14, 2012 at 5:52 PM, Rasmus Lerdorf ras...@php.net wrote: On 02/14/2012 08:48 AM, jpauli wrote: On Tue, Feb 14, 2012 at 5:35 PM, Rasmus Lerdorf ras...@php.net mailto:ras...@php.net wrote: On 02/14/2012 06:42 AM, Dmitry Stogov wrote: I've opened the bug report

Re: [PHP-DEV] how to debug a php script ( the C code beneath it)

2012-02-14 Thread jpauli
On Tue, Feb 14, 2012 at 6:28 PM, Rasmus Lerdorf ras...@php.net wrote: On 02/14/2012 09:22 AM, Adi Mutu wrote: Thanks Julien I don't know french, but i'll read it using google translate:) If you just want to see some of the function calls, most calls that are visible in userspace are

Re: [PHP-DEV] Suhosin patch disabled by default in Debian php5 builds

2012-02-02 Thread jpauli
On Thu, Feb 2, 2012 at 4:49 PM, Pierre Joye pierre@gmail.com wrote: hi Stefan, On Thu, Feb 2, 2012 at 3:14 PM, Stefan Esser ste...@nopiracy.de wrote: Hello Pierre, About the current flaw affecting 5.3/4, PHP and suhosin had bugs, and will have bugs. This is not really hot news.

Re: [PHP-DEV] Re: One more critical problem in 5.4

2012-02-01 Thread jpauli
On Wed, Feb 1, 2012 at 10:57 AM, Lior Kaplan lio...@zend.com wrote: On Tue, 2012-01-31 at 03:58 -0500, Michael Wallner wrote: On Tue, 31 Jan 2012 10:04:34 +0200, yoram bar haim wrote: Sorry, problem is not solved yet. I committed a possible fix to trunk. It's pretty much along the

Re: [PHP-DEV] zend guard

2012-01-30 Thread jpauli
Quickly reading the source and trying things, I suggest its a guard against recursion in __get and __set handlers. This way, code such this one won't infinitly loop : class Foo { public function __get($p) { return $this-$p; // this should lead to a recursion loop } } $f = new

Re: [PHP-DEV] Shebang parsing

2012-01-27 Thread jpauli
Some may also read the execve() linux man page. It has hints about argument parsing and shebangs :) http://linux.die.net/man/2/execve Julien.P 2012/1/26 Ángel González keis...@gmail.com On 26/01/12 11:35, Kiall Mac Innes wrote: Surely you can detect which operating system you're running on,

Re: [PHP-DEV] Reflection to remove final

2012-01-17 Thread jpauli
+1, I like the idea as well. How didn't we think about that earlier... ? Julien On Tue, Jan 17, 2012 at 11:54 AM, Sebastian Bergmann sebast...@php.netwrote: Am 17.01.2012 11:34, schrieb Pierre Joye: Patch looks good, but coding standard. If there are no objections, I can fix the CS issue

Re: [PHP-DEV] Reflection to remove final

2012-01-17 Thread jpauli
Just one last word : The patch just adds setFinal() to ReflectionClass. What about ReflectionMethod ? Not very usefull for the mocking purpose, but that would be good for the Reflection API. Julien On Tue, Jan 17, 2012 at 12:00 PM, jpauli jpa...@php.net wrote: +1, I like the idea as well. How

Re: [PHP-DEV] Re: 5.3.9, Hash DoS, release

2012-01-10 Thread jpauli
2012/1/10 Xinchen Hui larue...@gmail.com On Tue, Jan 10, 2012 at 12:57 AM, Pierre Joye pierre@gmail.com wrote: hi, No time for new ideas yet. We cannot afford to implement, test and valid new propositions and provide a fix as soon as possible (read: in the next days). What's

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-09 Thread jpauli
/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php Hey Paul and others :) My first implementation is here : https://github.com/jpauli/php-src/commit/13128d49a99d39e68fde1375311323bc0dc27d78 I don't know if it's right though :-p

Re: [PHP-DEV] Closures: Object extension

2012-01-06 Thread jpauli
It's been merged in 5.4 branch. http://svn.php.net/viewvc?view=revisionrevision=316300http://svn.php.net/viewvc?view=revisionrevision=316300 is the rev I think. Stas should have more info about that :) Cheers Julien.Pauli On Fri, Jan 6, 2012 at 3:47 PM, Marcello Duarte

Re: [PHP-DEV] Re: another fix for max_input_vars.

2012-01-04 Thread jpauli
On Wed, Jan 4, 2012 at 12:52 PM, Laruence larue...@php.net wrote: On Wed, Jan 4, 2012 at 7:34 PM, Laruence larue...@php.net wrote: Hi: I have updated the patch, make it works in case of sub arrays. http://pastebin.com/yPTUZuNe this patch only restrict the post variables number,

Re: [PHP-DEV] Constant arrays

2011-12-21 Thread jpauli
Okay, but those effectively don't exist in PHP ;) Julien On Tue, Dec 20, 2011 at 11:43 PM, David Muir davidkm...@gmail.com wrote: On 12/21/2011 03:37 AM, jpauli wrote: I guess constant array would mean that all the variables inside the array dimensions should not change. Just saying

Re: [PHP-DEV] Constant arrays

2011-12-20 Thread jpauli
I guess constant array would mean that all the variables inside the array dimensions should not change. Just saying that, is a nonsense. If a constant could be an array, then that array could not contain variables, if not it wouldn't be constant any more as a change to one variable inside it

[PHP-DEV] One more Liskov Subs. and parameter checking notice

2011-12-06 Thread jpauli
Greetings PHP Intern@ls :) There is a PHP behavior I disagree with regarding OO model. It's been here for a long time (5.0 ??, at least 5.2, 5.3 and 5.4) , here it is : ?php interface Iface1 { } interface Iface2 extends Iface1 { } class Foo { public function bar(Iface1 $arg) { } } class