[PHP-DEV] On ReflectionParameter::canBePassedByValue()

2010-10-26 Thread Gustavo Lopes
Hi. As you may or may not know, the "zend_bool" arg_info->pass_by_reference, may take three values: 785 #define ZEND_SEND_BY_VAL 0 786 #define ZEND_SEND_BY_REF 1 787 #define ZEND_SEND_PREFER_REF 2 The last one is used one the function can either take a value or reference; see e.g.

Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/trunk/ext/standard/ basic_functions.c basic_functions.h html.c html.h html_tables/ents_basic.txt html_tables/ents_basic_apos.txt html_tables/ents_html401.

2010-10-26 Thread Gustavo Lopes
On Tue, 26 Oct 2010 17:34:44 +0100, Geoffrey Sneddon wrote: On 24/10/10 16:01, Gustavo André dos Santos Lopes wrote: cataphract Sun, 24 Oct 2010 15:01:02 + Revision: http://svn.php.net/viewvc?view=revision&revision=304705 Log: > […] - For html_entity_dec

[PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/trunk/ext/standard/ basic_functions.c basic_functions.h html.c html.h html_tables/ents_basic.txt html_tables/ents_basic_apos.txt html_tables/ents_html401.txt

2010-10-26 Thread Geoffrey Sneddon
On 24/10/10 16:01, Gustavo André dos Santos Lopes wrote: cataphract Sun, 24 Oct 2010 15:01:02 + Revision: http://svn.php.net/viewvc?view=revision&revision=304705 Log: > […] - For html_entity_decode(), only valid numerical and named entities (as defined abo

Re: [PHP-DEV] BC break in 5.3.2 -> 5.3.3 with "parent::" and __call/__callStatic

2010-10-26 Thread Richard Quadling
On 26 October 2010 15:48, Daniel Convissor wrote: > On Mon, Oct 25, 2010 at 12:56:28AM +0200, Etienne Kneuss wrote: > >> Exactly, if Bar::getFoo is not called statically, parent::getFoo() will >> not be a static call, it should not get through __callStatic. > > That logic sounds good.  Unfortunate

Re: [PHP-DEV] BC break in 5.3.2 -> 5.3.3 with "parent::" and __call/__callStatic

2010-10-26 Thread Daniel Convissor
On Mon, Oct 25, 2010 at 12:56:28AM +0200, Etienne Kneuss wrote: > Exactly, if Bar::getFoo is not called statically, parent::getFoo() will > not be a static call, it should not get through __callStatic. That logic sounds good. Unfortunately, things aren't behaving that way: http://bugs.php.net/b

Re: [PHP-DEV] Inconsistent exit code from CLI?

2010-10-26 Thread Richard Quadling
On 26 October 2010 09:29, John Carter wrote: > Hi, > > When php is invoked from the command line with -h we get exit code 0 as > expected: > > -bash-3.2# php -h ; echo $? > Usage: php [options] [-f] [--] [args...] >       php [options] -r [--] [args...] >       php [options] [-B ] -R [-E ] [--]

[PHP-DEV] Inconsistent exit code from CLI?

2010-10-26 Thread John Carter
Hi, When php is invoked from the command line with -h we get exit code 0 as expected: -bash-3.2# php -h ; echo $? Usage: php [options] [-f] [--] [args...] php [options] -r [--] [args...] php [options] [-B ] -R [-E ] [--] [args...] ... --re Show information about extension

Re: [PHP-DEV] zlib compile

2010-10-26 Thread Antony Dovgal
On 10/21/2010 07:09 PM, 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] No, you don't have to use it, --with-zlib works just fine: # ./configure --with-zlib