Re: [PHP-DEV] how to find a memory corruption in php ?

2011-04-01 Thread Pascal COURTOIS
Le 01/04/2011 15:20, Pierre Joye a écrit : > hi, > > In php 5.3+ the memory limit default is 256MB, not 128MB. 5.3 does not > necessary use more memory but actually uses and reports its usage more > efficiently. I would suggest to use this default value and try again. the exact same bug occurs

Re: [PHP-DEV] how to find a memory corruption in php ?

2011-04-01 Thread Pierre Joye
hi, In php 5.3+ the memory limit default is 256MB, not 128MB. 5.3 does not necessary use more memory but actually uses and reports its usage more efficiently. I would suggest to use this default value and try again. About detecting leaks and memory corruptions, valgrind is a good tool to begin wi

[PHP-DEV] how to find a memory corruption in php ?

2011-04-01 Thread Pascal COURTOIS
Hi all, I get an error with my program: Fatal error: Allowed memory size of 134217728 bytes exhausted at /home/courtois/php-5.3.6/Zend/zend_execute.h:163 (tried to allocate 261900 bytes) in /var/www/dev4.sociatomdev.com/chroot/htdocs/templeet/fetch.php on line 580 - The same error occurs with

Re: [PHP-DEV] SVN Account Request: rlms

2011-04-01 Thread Daniel Brown
On Fri, Apr 1, 2011 at 05:11, Richard Quadling wrote: > > Considering the hack of Hannes' credentials a while ago, can we trust > that the above message is REALLY from Hannes? > > Hmm. > > Just spreading some fud in this world of calm. He was discussing the same thing in IRC yesterday, so eve

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-04-01 Thread Ben Schmidt
> string substr( string $string, int $start [, int $second [, int $flag = > SUBSTR_LENGTH ]]) I think this just makes code ugly. I think a new function with something like 'slice' in it is pretty unambiguous and unconfusing. (I also like the current substr() semantics. Actually, I think 'slic

Re: [PHP-DEV] SVN Account Request: rlms

2011-04-01 Thread Ferenc Kovacs
On Fri, Apr 1, 2011 at 11:11 AM, Richard Quadling wrote: > 2011/4/1 Hannes Magnusson : > > 2011/3/31 Pål-Kristian Hamre >: > >> We need access to this repository to commit changes to the > infrastructure: https://svn.php.net/repository/systems/ > >> > > > > Verified. He is working on bringing the

Re: [PHP-DEV] SVN Account Request: rlms

2011-04-01 Thread Richard Quadling
2011/4/1 Hannes Magnusson : > 2011/3/31 Pål-Kristian Hamre : >> We need access to this repository to commit changes to the infrastructure: >> https://svn.php.net/repository/systems/ >> > > Verified. He is working on bringing the wikibox back to live, and will > be committing configs and stuffz for

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-04-01 Thread Richard Quadling
On 31 March 2011 17:50, Philip Olson wrote: > > On Mar 31, 2011, at 9:55 AM, Sebastian Bergmann wrote: > >> Am 31.03.2011 17:52, schrieb Rasmus Lerdorf: >>> Argh! Everyone should be forced to learn a bit of C. Like many PHP >>> functions, the name and argument order is right out of libc. If you ty

Re: [PHP-DEV] SVN Account Request: rlms

2011-04-01 Thread Hannes Magnusson
2011/3/31 Pål-Kristian Hamre : > We need access to this repository to commit changes to the infrastructure: > https://svn.php.net/repository/systems/ > Verified. He is working on bringing the wikibox back to live, and will be committing configs and stuffz for the box to systems/ -Hannes -- PHP

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-04-01 Thread Alban LEROUX
Hi all, I just come back on the first reflexion about adding a str_slice() function. As it says before, using one method or the orther can really sucks in some cases, depending what you are coding about. So actually you mention there is two possibility : - Keep all in the actual state. substr