[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 usual,

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 wrote: > 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 and tell the u

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 wrote: > 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 > leading to some sec

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 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 (same as > i

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 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 pages (inc

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 wrote: > On 5 December 2012 08:26, Kris Craig 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 rebuking their misrepresentatio

Re: [PHP-DEV] execute_data->Ts removing

2012-12-03 Thread jpauli
On Mon, Dec 3, 2012 at 2:26 PM, Dmitry Stogov 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 exec

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

2012-11-12 Thread jpauli
On Mon, Nov 12, 2012 at 4:57 PM, Arvids Godjuks 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 > things should really

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

2012-11-12 Thread jpauli
On Mon, Nov 12, 2012 at 2:20 PM, Antony Dovgal 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 documentation purel

Re: [PHP-DEV] Object comparison

2012-11-09 Thread jpauli
On Fri, Nov 9, 2012 at 2:18 PM, Christian Stoller 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 feature if > objec

Re: [PHP-DEV] Branching PHP-5.5

2012-11-05 Thread jpauli
On Fri, Nov 2, 2012 at 1:49 PM, Kalle Sommer Nielsen wrote: > Hi David > > 2012/10/30 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 master and came

Re: [PHP-DEV] Generics proposal

2012-10-22 Thread jpauli
On Sat, Oct 20, 2012 at 10:59 PM, Nikita 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 to > validate a

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 wrote: > On 21/09/12 16:16, jpauli wrote: >> >> On Fri, Sep 21, 2012 at 1:05 PM, Ivan Enderlin @ Hoa >> wrote: >>> >>> Hello, >>> >>> If PHP receives a HTTP request with the method POS

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 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. If the Content-Type is >

Re: [PHP-DEV] constructor hook

2012-09-19 Thread jpauli
On Sep 19, 2012 4:31 AM, "Kris Craig" wrote: > > On Tue, Sep 18, 2012 at 8:14 AM, Amaury Bouchard 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 of this, either, but I

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 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 is > available to

Re: [PHP-DEV] constructor hook

2012-09-18 Thread jpauli
On Tue, Sep 18, 2012 at 5:14 PM, Amaury Bouchard 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 -- PHP Internals

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 wrote: > On Mon, Sep 17, 2012 at 9:59 AM, jpauli wrote: >>> >>> I'm confused.. --enable-all is already supported, just like --disable-all ? >>> >>> -Hannes >> >> AFAIR no :) We have a --dis

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

2012-09-17 Thread jpauli
On Mon, Sep 17, 2012 at 4:57 PM, Herman Radtke 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 RM/vice-RM kind

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 wrote: > On Mon, Sep 17, 2012 at 10:09 AM, David Soria Parra wrote: > >> On 2012-09-08, David Soria Parra wrote: >> > Hi internals, >> > I would like to go ahead and propose Julien Pauli as the RM for 5.5. He >> > is an active member of the PHP.net

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: http://www.

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 wrote: > On Mon, Sep 17, 2012 at 10:09 AM, David Soria Parra wrote: >> On 2012-09-08, David Soria Parra wrote: >>> Hi internals, >>>

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 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(), empty() et a

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 wrote: > Hi Simon, > > Am 13.09.2012 um 10:34 schrieb Simon J Welsh : > [...] >> I would expect $variable::class to work (like late static bindings). > [...] > > Than better try the patch, as it doesn’t work now :) > > But it is a good point indeed. @

[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 sho

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 fe

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 m

Re: Re: [PHP-DEV] [VOTE] Generators

2012-08-31 Thread jpauli
Heh, we face a true problem here, and it's deeper than just "should generators throw exception or not". Adding Derick's notice, -which is true- it becomes "should Core features start throwing Exception knowing we've been fighting to prevent that for years ?". Generator use objects, right ; but as

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 wrote: > On Mon, Jul 30, 2012 at 7:31 PM, Gustavo Lopes wrote: >> https://wiki.php.net/rfc/incompat_ctx >> >> An RFC for deprecating and removing $this from incompatible context. >> >> Comments are welcome. After several explanations with Etienne o

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 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 : http://www.php.n

Re: [PHP-DEV] Internal iteration API

2012-07-25 Thread jpauli
On Wed, Jul 25, 2012 at 6:52 AM, Larry Garfield wrote: > On 07/24/2012 03:52 AM, jpauli wrote: >> >> On Sat, Jul 14, 2012 at 2:35 AM, Stas Malyshev >> wrote: >>> >>> Hi! >>> >>>> So, I've not been inside the engine so in practice

Re: [PHP-DEV] Internal iteration API

2012-07-24 Thread jpauli
On Sat, Jul 14, 2012 at 2:35 AM, Stas Malyshev 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 >> object that happe

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 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 plow through these

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 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 reference to a > varia

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-13 Thread jpauli
On Fri, Jul 13, 2012 at 5:33 PM, Anthony Ferrara 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 conversation around

Re: [PHP-DEV] Internal iteration API

2012-07-13 Thread jpauli
On Fri, Jul 13, 2012 at 3:55 PM, Matthew Weier O'Phinney wrote: > On 2012-07-13, David Muir wrote: >> On 13/07/12 01:04, Matthew Weier O'Phinney wrote: >> > On 2012-07-12, Sara Golemon wrote: >> > > --e89a8f235453d7a80104c4975c55 >> > > On Wed, Jul 11, 2012 at 5:39 PM, Anthony Ferrara >> > > w

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 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 me,  for

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

2012-05-04 Thread jpauli
On Tue, May 1, 2012 at 8:44 PM, Paul Reinheimer 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 "urban legen

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

2012-05-03 Thread jpauli
On Thu, May 3, 2012 at 12:54 PM, zoe slattery 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: > http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.ht

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 wrote: > Hi: >  you can refer to zif_call_user_func, which could be find at > http://lxr.php.net/opengrok/xref/PHP

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

2012-04-24 Thread jpauli
2012/4/24 Johannes Schlüter : > 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 > >>

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 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 b

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

2012-04-24 Thread jpauli
2012/4/24 Johannes Schlüter : > 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 &g

[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 ext/my

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 PHP_VERS

Re: [PHP-DEV] default charset confusion

2012-03-14 Thread jpauli
On Wed, Mar 14, 2012 at 3:37 PM, Gustavo Lopes wrote: > On Wed, 14 Mar 2012 14:55:17 +0100, jpauli 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 >

Re: [PHP-DEV] default charset confusion

2012-03-14 Thread jpauli
On Tue, Mar 13, 2012 at 1:52 AM, Yasuo Ohgaki wrote: > 2012/3/13 Rasmus Lerdorf : > > 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 > >> > >> However, I got e

Re: [PHP-DEV] 5.3.11 planning

2012-03-06 Thread jpauli
2012/3/6 Derick Rethans > 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 outsta

Re: [PHP-DEV] ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

2012-03-02 Thread jpauli
r example ( http://www.phrack.org/issues.html?issue=57&id=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 >

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 wrote: > On 2 March 2012 21:34, Simon Schick 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 > > has been brought out. Specially if i

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 http:

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 wrote: > 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 argument? > No break at al

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 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 long > hunt to find

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 wrote: > >> >> 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 > >

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 wrote: > On Wed, 29 Feb 2012 19:30:15 +0100, Simon Schick < > simonsimc...@googlemail.com> wrote: > > I just read this post about a vul

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 wrote: > >> 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 develo

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 wrote: > hi Bill, > > On Tue, Feb 28, 2012 at 11:29 PM, William A. Rowe Jr. > 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 by default. Allow it to be

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 wrote: > On Mon, Feb 27, 2012 at 4:12 PM, William A. Rowe Jr. > 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 threaded MPM. However whe

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 wrote: > 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 > cleaning anyt

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. wrote: > 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 fig

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 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 say something! >

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 bee

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

2012-02-24 Thread jpauli
On Thu, Feb 23, 2012 at 9:03 PM, Stas Malyshev wrote: > 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 I'd exp

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 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 pref

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 wrote: > On 02/14/2012 08:48 AM, jpauli wrote: > > On Tue, Feb 14, 2012 at 5:35 PM, Rasmus Lerdorf > <mailto:ras...@php.net>> wrote: > > > > On 02/14/2012 06:42 AM, Dmitry Stogov wrote: > >

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 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 these

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

2012-02-14 Thread jpauli
y not related to zend_signals. > They were introduced only in 5.4. > > Thanks. Dmitry. > > On 14.02.2012, at 16:16, jpauli 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 :

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 wrote: > Hi, > > We will probably have to introduce --enable-zend-signals configure switch > a

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

2012-02-14 Thread jpauli
2012/2/14 Adi Mutu > 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? > And the answer

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 wrote: > hi Stefan, > > On Thu, Feb 2, 2012 at 3:14 PM, Stefan Esser 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. That does not affect this > >

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 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 pa

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 Foo

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 > On 26/01/12 11:35, Kiall Mac Innes wrote: > >> Surely you can detect which operating system you're running on, and have >> P

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 wrote: > +1, I like the idea as well. > How did

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 wrote: > 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 and commit th

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

2012-01-10 Thread jpauli
2012/1/10 Xinchen Hui > On Tue, Jan 10, 2012 at 12:57 AM, Pierre Joye > 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 the status of your patch

Re: [PHP-DEV] Fwd: SplDoublyLinkedList

2012-01-09 Thread jpauli
e > conversion of the implicit int return of undeclared functions to your > target pointer type. > > -- > Using Opera's revolutionary email client: http://www.opera.com/mail/ > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: htt

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=revision&revision=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 wrote: > Hi, > > What

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 wrote: > On Wed, Jan 4, 2012 at 7:34 PM, Laruence 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, since GET and > Cookie all

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 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. > &

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 would

[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 : Strict Standards: Declaration of Foo2::bar() should be compatible with that of Foo::bar() I find this wrong. Liskov (and the