[PHP-DEV] PHP5.5.0alpha3 released

2013-01-10 Thread Julien Pauli
Hi Internals, PHP 5.5.0alpha3 has been tagged today. This release contains bug fixes against alpha2, as well as new features in existent APIs. The packages can be found at: http://downloads.php.net/dsp As you know, you may read the NEWS file in the source tree for full changelog of this

Re: [PHP-DEV] Re: Was Reflection annotations reader - Pull APC in Core Already

2013-01-09 Thread Julien Pauli
On Wed, Jan 9, 2013 at 6:06 PM, Derick Rethans der...@php.net wrote: On Wed, 9 Jan 2013, Anthony Ferrara wrote: Rasmus wrote: This is my worry as well. Especially when it comes to opcode cache support. Most of the patches I see these days completely ignore the opcode cache side of

Re: [PHP-DEV] PHP5.5.0alpha2 release

2012-12-21 Thread Julien Pauli
On Fri, Dec 21, 2012 at 1:51 AM, Adam Harvey ahar...@php.net wrote: On 21 December 2012 01:26, jpauli jpa...@php.net wrote: We just tagged PHP 5.5.0alpha2 today. This release contains bug fixes against alpha1, as well as new features. Are we going to have a news post for this on the Web

Re: [PHP-DEV] PHP5.5.0alpha2 release

2012-12-20 Thread Julien Pauli
On Thu, Dec 20, 2012 at 9:30 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: From: jpauli jpa...@php.net Date: Thu, Dec 20, 2012 at 9:26 AM Subject: [PHP-DEV] PHP5.5.0alpha2 release To: PHP Internals internals@lists.php.net I would appreciate that you would use your full real name

Re: [PHP-DEV] deprecating ext/mysql

2011-07-18 Thread Julien Pauli
I agree with Johannes and Oracle/MySQL people : ext/mysqli must be the preferred way to replace ext/mysql. PDO lacks advanced features which wont be available because of PDO internals incompatibility. ext/mysqli is a true MySQL internal API exposure into PHP user land, PDO is not. Moreover,

[PHP-DEV] set_http_response_code() to PHP5.4 ?

2011-06-10 Thread Julien Pauli
Hey, I've seen Kalle's patch for http://bugs.php.net/bug.php?id=52555. It actually implements a http_response_code() function to export the current HTTP response code from SAPI layer to PHP user land. I'm suggesting to rename that function to get_http_response_code(), and implement its sister :

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

2011-06-08 Thread Julien Pauli
I wrote about ZendMM some time ago (http://julien-pauli.developpez.com/tutoriels/php/internals/zend-memory-manager/) , that's in french language ;-) To shorten the conversation a little bit, I would suggest to trace the memory with valgrind/massif. That's not too hard if you know what you do, if

Re: [PHP-DEV] $arr = array('Hello', 'world'); $arr();

2011-06-06 Thread Julien Pauli
+1 , nice job Julien On Mon, Jun 6, 2011 at 12:53 PM, David Zülke david.zue...@bitextender.com wrote: 3 David On 05.06.2011, at 17:52, Felipe Pena wrote: Hi all, Reading our bug tracker I noticed a good feature request [1] from 2009 which points to an interesting feature that I think

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

2011-06-05 Thread Julien Pauli
Seems like leak. Try disabling ZendMM to see if something noticeable happens (memory peak should be lower). USE_ZEND_ALLOC=0 Cheers, Julien On Sun, Jun 5, 2011 at 2:01 PM, David Zülke david.zue...@bitextender.com wrote: Smells like a memory leak if gc_collect_cycles() doesn't fix it. David

Re: [PHP-DEV] INF behavior

2011-05-31 Thread Julien Pauli
Agree with Derick, strictly speaking, in maths science, INF != INF. But I dont care if PHP tells me than yes, because PHP is not designed to solve high level maths problems :) Cheer, Julien.Pauli On Fri, May 27, 2011 at 4:48 PM, Derick Rethans der...@php.net wrote: On Thu, 26 May 2011, Scott

Re: [PHP-DEV] [RFC] Improved parser error message

2011-05-17 Thread Julien Pauli
I remember error messages have been improved since last decade, but they were engine ones. Parser ones have never been touched, so to improve them, I +1 your idea Felipe :) Julien On Mon, May 16, 2011 at 7:52 PM, Florian Anderiasch m...@anderiasch.de wrote: On 16.05.2011 14:15, Felipe Pena

Re: [PHP-DEV] Unmaintained SAPIs

2011-04-28 Thread Julien Pauli
All right ;-) Johannes: Thanks for details about lighhtpd's internals. Julien.P 2011/4/27 Johannes Schlüter johan...@schlueters.de On Wed, 2011-04-27 at 15:36 +0200, Julien Pauli wrote: I'm +1 with that list. I'd like to have some time to work on a lighttpd sapi if possible (haven't

Re: [PHP-DEV] Unmaintained SAPIs

2011-04-27 Thread Julien Pauli
I'm +1 with that list. I'd like to have some time to work on a lighttpd sapi if possible (haven't seen lighttpd API yet). If someone got the same idea, just tell it... What about apache2filter SAPI ? Julien.P 2011/4/24 Pierre Joye pierre@gmail.com 2011/4/24 Rasmus Lerdorf

Re: [PHP-DEV] Re: Zend mm

2011-02-24 Thread Julien Pauli
You should take care not to mistake the GC and the MM, they are two different things and surprisingly, they dont interact with each other. Zend GC is a layer above Zend MM, and Zend GC can be totally disabled, Zend MM cant at all. Zend MM is a BIG layer over malloc()/free() which goals are mainly

Re: [PHP-DEV] implicit reference

2011-01-31 Thread Julien Pauli
Ow, what a crap idea ... You want to make the same php4-written source code run with PHP4 AND PHP5.3 ? That seems like an unsolvable challenge, I think that even if you dont mind very bad codes/stuff you won't make it fully work for production without alarms every minutes ... Good luck, Julien

Re: [PHP-DEV] Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded

2010-12-15 Thread Julien Pauli
Well, I would say that if your problem is memory, you should consider threads as they all share the same memory space in their process. Apache's children can weight very heavy if PHP's been compiled to support lots of extensions, you can happen with ~40/50Mb per process which is very huge.

Re: [PHP-DEV] Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded

2010-12-15 Thread Julien Pauli
, 2010 at 12:58 PM, Jon Davey jon...@gmail.com wrote: 2010/12/15 Julien Pauli jpa...@php.net Well, I would say that if your problem is memory, you should consider threads as they all share the same memory space in their process. Apache's children can weight very heavy if PHP's been compiled

Re: [PHP-DEV] [PATCH] Add option to disable POST data processing

2010-12-07 Thread Julien Pauli
I don't remember the source, refresh my mind quickly please : What happens if variables_order doesn't content 'P' ? Is the data still duplicated into memory ? I know that $_POST is still there but is an empty array in that case. And yes, I'm +1 for such a patch :) J.Pauli On Tue, Dec 7, 2010 at

Re: [PHP-DEV] Performance of buffer based functionality (JSON, AES, serialize())

2010-11-30 Thread Julien Pauli
I guess serialize mechanism cant use any char that can be part of a PHP variable. And _ can. As property names respect binary compatibility, the only char that can be used to mark private properties is actually the NULL byte. Ping me if I'm wrong. But I'm +1 for improving the serialize() speed, I

Re: [PHP-DEV] [RFC] new foo()-bar()

2010-11-29 Thread Julien Pauli
Care should be taken in the case of new myClass()-foo() just creates an object to call a method but a static method would be more efficient here. However, well used (fluent interface for exemple) make me think +1 for that patch. J.Pauli On Mon, Nov 29, 2010 at 12:40 PM, Felipe Pena

Re: [PHP-DEV] Adding path_len to all stream functions in trunk

2010-11-17 Thread Julien Pauli
Is this related to http://www.ush.it/2009/02/08/php-filesystem-attack-vectors/ ? That's a quiet old bug, I'm happy to listen it's now worked on and has a patch. J.Pauli On Tue, Nov 16, 2010 at 12:34 PM, Pierre Joye pierre@gmail.com wrote: hi, On Tue, Nov 16, 2010 at 7:15 AM, Rasmus

Re: [PHP-DEV] Type hinting

2010-05-31 Thread Julien Pauli
I remember Marcus worked on something like that some time ago. Might still be into SVN or somewhere I think. Julien On Sat, May 29, 2010 at 9:03 PM, Ferenc Kovacs i...@tyrael.hu wrote: On Sat, May 29, 2010 at 7:34 PM, Zeev Suraski z...@zend.com wrote: At 20:28 29/05/2010, Chris Stockton

Re: [PHP-DEV] Type hinting

2010-05-31 Thread Julien Pauli
Well at least I fixed the splweaktypehintingwithautoboxing for the function to return ++$var instead of $var++ which couldn't make it ;-) Julien On Mon, May 31, 2010 at 5:54 PM, Ferenc Kovacs i...@tyrael.hu wrote: On Mon, May 31, 2010 at 2:42 PM, Lukas Kahwe Smith m...@pooteeweet.org wrote:

Re: [PHP-DEV] The inconsistencies/flaws of PHP5's object model

2009-11-19 Thread Julien Pauli
On Wed, Nov 18, 2009 at 8:59 PM, Stanislav Malyshev s...@zend.com wrote: Hi! I've just occured a syntax problem in the following script: ?php class C {    public $n = 1; } $o = new C(); $o-f = function () use ($o) {    echo $o-n; }; $o-f(); ? The result of this script is Fatal

<    1   2   3   4