Re: [PHP-DEV] zlib compile

2010-10-21 Thread Enrico Weigelt
* lon...@gmail.com wrote: > PHP 5.2.14 > > Docs say to compile w/ zlib you need to use the --with-zlib[=DIR] flag. > > This does not work. You need to use --with-zlib --with-zlib-dir=[DIR] > > Is this a documentation error or a ./configure error? BTW: recent zlib provides an proper pkg-config

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Pas
On 2010.10.21. 12:56, Richard Quadling wrote: On 21 October 2010 11:45, Ionut G. Stan wrote: On 21/Oct/10 1:17 PM, Richard Quadling wrote: On 21 October 2010 08:52, Ionut G. Stanwrote: Option 5: Implement named parameters? Come on, play fair. I know all about the named parameters and

[PHP-DEV] Intermittent problem: can't write to properties of $this

2010-10-21 Thread Tim Steiner
Greetings, I'm currently trying to troubleshoot an intermittent problem on one of our servers. After some time of running just fine (usually a couple of hours), scripts will start throwing the warning "Attempt to assign property of non-object" when writing to a property of the $this object.

[PHP-DEV] zlib compile

2010-10-21 Thread lonnyk
PHP 5.2.14 Docs say to compile w/ zlib you need to use the --with-zlib[=DIR] flag. This does not work. You need to use --with-zlib --with-zlib-dir=[DIR] Is this a documentation error or a ./configure error?

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 11:45, Ionut G. Stan wrote: > On 21/Oct/10 1:17 PM, Richard Quadling wrote: >> >> On 21 October 2010 08:52, Ionut G. Stan  wrote: >>> >>> Option 5: Implement named parameters? >>> >> >> Come on, play fair. I know all about the named parameters and I didn't >> mention them. > > W

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Ionut G. Stan
On 21/Oct/10 1:17 PM, Richard Quadling wrote: On 21 October 2010 08:52, Ionut G. Stan wrote: Option 5: Implement named parameters? Come on, play fair. I know all about the named parameters and I didn't mention them. Where's the unfairness? I proposed them because the issue you raised is

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 09:11, Stan Vass wrote: >>> Option 4 would probably be the worse one to go for. Looking any number >>> of languages that support defaults and you will see code like ... >>> >>> someFunction(param1,param7param11) >> >> It does get ugly fast for large numbers of arguments.

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Richard Quadling
On 21 October 2010 08:52, Ionut G. Stan wrote: > > Option 5: Implement named parameters? > Come on, play fair. I know all about the named parameters and I didn't mention them. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Internals - PHP Ru

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Michael Shadle
On Thu, Oct 21, 2010 at 1:10 AM, Ferenc Kovacs wrote: > With #6, you would lose the argument hinting(either be native, or phpdoc) > feature for your method. you would, however a) it's already supported b) there's no language changes required c) do your own typecasting, sanity checking, bounds c

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Stan Vass
Option 4 would probably be the worse one to go for. Looking any number of languages that support defaults and you will see code like ... someFunction(param1,param7param11) It does get ugly fast for large numbers of arguments... But any function with more than a handful of arguments is a

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Ferenc Kovacs
On Thu, Oct 21, 2010 at 9:56 AM, Michael Shadle wrote: > On Thu, Oct 21, 2010 at 12:52 AM, Ionut G. Stan > wrote: > > > Option 5: Implement named parameters? > > Option 6: do as other have and just pass an array yourself... > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsub

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Michael Shadle
On Thu, Oct 21, 2010 at 12:52 AM, Ionut G. Stan wrote: > Option 5: Implement named parameters? Option 6: do as other have and just pass an array yourself... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Skipping of defaulted parameters.

2010-10-21 Thread Ionut G. Stan
On 20/Oct/10 2:58 PM, Richard Quadling wrote: Hello. Take the following simple code. According to the manual A variable is considered to be null if it has not been set to any value yet [1]. By default, function arguments are passed by value [2]. When using default arguments, any defaults sho