Re: [PHP-DEV] PHP development environment

2011-01-14 Thread Stas Malyshev
Hi! I'm just starting with the internal PHP development. Do you have some sort of common development environment? Eclipse project or the like? If you use eclipse, I personally just loaded whole PHP source dir into Eclipse C/C++ project and it seems to be quite fine with it. No build of cours

Re: [PHP-DEV] APC caching - preloading files

2011-01-14 Thread Tjerk Meesters
I generally find it more reliable to use iptables to stop incoming requests while priming the cache using a small script. On Jan 15, 2011 11:43 AM, "Bharat Nagwani" wrote: > Hello Experts, > > Sorry for posting this in this list but I am not finding any documentation on this APC php.ini setting >

[PHP-DEV] APC caching - preloading files

2011-01-14 Thread Bharat Nagwani
Hello Experts, Sorry for posting this in this list but I am not finding any documentation on this APC php.ini setting apc.preload_path I have tried the following but it doesn't seem to work apc.preload_path = "+/core/*" apc.preload_path = "/core/*" What I am looking for is files in certain di

Re: [PHP-DEV] PHP development environment

2011-01-14 Thread Martin Scotta
Yes, my question was about the internal development of PHP. How do you guys develop the core of PHP? Which IDE or text editor do you use? How do you launch the compiler? Are you able to debug the PHP core while it's running some PHP script? Martin Scotta On Fri, Jan 14, 2011 at 11:29 PM, Scot

Re: [PHP-DEV] PHP development environment

2011-01-14 Thread Scott MacVicar
This is the wrong mailing list, this is about development of the PHP runtime and not towards development using PHP. - Scott On Jan 14, 2011, at 5:56 PM, Dallas Gutauckis wrote: > Depending on the duration of development, I either use nano for short edits, > or zend studio for a large project. B

Re: [PHP-DEV] PHP development environment

2011-01-14 Thread Dallas Gutauckis
Depending on the duration of development, I either use nano for short edits, or zend studio for a large project. Both cases, I use Ubuntu. On Jan 14, 2011 8:45 PM, "J. Adams" wrote: > I'm curious about this too. I've been developing on a Mac using nano > from the command line and it can be pretty

Re: [PHP-DEV] PHP development environment

2011-01-14 Thread J. Adams
I'm curious about this too. I've been developing on a Mac using nano from the command line and it can be pretty tough. Any and all details welcome. I'm about to set up a 64-bit box with Ubuntu which would be my primary dev box. I also have a windows desktop. On 1/14/2011 5:40 PM, Martin Sc

[PHP-DEV] PHP development environment

2011-01-14 Thread Martin Scotta
Hi all, I'm just starting with the internal PHP development. Do you have some sort of common development environment? Eclipse project or the like? I'm using Ubuntu but also have a WXP, just for the sake of. how do you develop PHP ? Martin Scotta

Re: [PHP-DEV] debug backtrace improvement

2011-01-14 Thread Stas Malyshev
Hi! Ah, right. Still ugly :-) But not as bad as overloading to see whether there is a bool or an int. I wouldn't mind breaking this bit of BC in 5.4, but I'd like to have it in 5.3 and don't want to break too much. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

Re: [PHP-DEV] debug backtrace improvement

2011-01-14 Thread Derick Rethans
On Fri, 14 Jan 2011, Stas Malyshev wrote: > > I'm all for the option, but instead of having one positive > > (PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would > > suggest to have to positive ones: > > > > PROVIDE_OBJECTS (I also pluralised it to be the same) > > PROVIDE_ARGS >

Re: [PHP-DEV] debug backtrace improvement

2011-01-14 Thread Stas Malyshev
Hi! I'm all for the option, but instead of having one positive (PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would suggest to have to positive ones: PROVIDE_OBJECTS (I also pluralised it to be the same) PROVIDE_ARGS The problem with it would be that debug_backtrace(true|false

Re: [PHP-DEV] debug backtrace improvement

2011-01-14 Thread Derick Rethans
On Fri, 14 Jan 2011, Stas Malyshev wrote: > I have a proposal for backtrace improvement: > http://wiki.php.net/rfc/debugoptions > Short version: to add option to it that allows to suppress printing/including > arguments, because sometimes the traces with args become unmanageable and args > are rar

[PHP-DEV] debug backtrace improvement

2011-01-14 Thread Stas Malyshev
Hi! I have a proposal for backtrace improvement: http://wiki.php.net/rfc/debugoptions Short version: to add option to it that allows to suppress printing/including arguments, because sometimes the traces with args become unmanageable and args are rarely as important as the rest of the info.

Re: [PHP-DEV] Support negative indexes for arrays and strings

2011-01-14 Thread Stas Malyshev
Hi! I would like to open the discussion around the support of negative indexes, as I feel a lot of developers will benefit from this syntactical sugar. What you are looking for is implemented in array_slice(). Python has shortcuts for this thing, like a[1:-1], but PHP doesn't. If you wanted to

Re: [PHP-DEV] Support negative indexes for arrays and strings

2011-01-14 Thread Marcin Babij
> Hello everyone, > > I would like to open the discussion around the support of negative indexes, > as I feel a lot of developers will benefit from this syntactical sugar. > > Example: > > echo $foo[2]; // 3 > echo $foo[-1]; // 3 Negative indexes are used already - for negative indexes. What shou

Re: [PHP-DEV] Support negative indexes for arrays and strings

2011-01-14 Thread Matthew Fonda
On Fri, Jan 14, 2011 at 10:21 AM, Marc Easen wrote: > Hello everyone, > > I would like to open the discussion around the support of negative indexes, > as I feel a lot of developers will benefit from this syntactical sugar. It would be convenient, but PHP already allows arrays to have negative i

[PHP-DEV] Support negative indexes for arrays and strings

2011-01-14 Thread Marc Easen
Hello everyone, I would like to open the discussion around the support of negative indexes, as I feel a lot of developers will benefit from this syntactical sugar. Example: $foo = array(1,2,3); echo $foo[2]; // 3 echo $foo[-1]; // 3 $bar = 'baz'; echo $foo[2]; // 'z' echo $foo[-1]; // 'z' The

[PHP-DEV] fully enabling dl() for FPM SAPI

2011-01-14 Thread Antony Dovgal
Hi all! Are there any objections if I disable E_DEPRECATED notice in dl() for FPM SAPI? The notice is already disabled for CGI/FastCGI, CLI and Embed SAPIs. I believe there's no reason for this notice in case of FPM, too. Patch: http://dev.daylessday.org/diff/fpm_dl_notice.diff -- Wbr, Antony D

Re: [PHP-DEV] question CVE-2010-3436

2011-01-14 Thread Hannes Magnusson
On Fri, Jan 14, 2011 at 11:09, Hajo Locke wrote: > Hello, > > short question about CVE-2010-3436 > affected is only 5.3.x oder also 5.2.x versions? > most sites talk about 5.3 but some debianpages also tell 5.2. > what is correct? http://www.php.net/archive/2010.php#id2010-12-09-1 -Hannes -- P

[PHP-DEV] question CVE-2010-3436

2011-01-14 Thread Hajo Locke
Hello, short question about CVE-2010-3436 affected is only 5.3.x oder also 5.2.x versions? most sites talk about 5.3 but some debianpages also tell 5.2. what is correct? Thanks, Hajo -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php