[PHP-DEV] Re: PHP crashes with multiple autoloaders if autoloader after the first does not return a value

2011-10-11 Thread Tom Boutell
Update: actually, this was not my crashing bug, although it does still look suspicious - I don't see how retval gets cleaned up between invocations. My crashing bug appears to be triggered when an autoloader decides to unregister and re-register itself from inside the autoload() function. Specific

[PHP-DEV] session.cache_limiter empty string?

2011-10-11 Thread Karoly Negyesi
Hi, I am trying to understand php_session_cache_limiter but my knowledge is, well, limited :) Setting session.cache_limiter to an empty string doesn't send headers. Is this just an artefact of if (!strcasecmp(lim->name, PS(cache_limiter))) not matching the empty string or does if (PS(cache_limite

[PHP-DEV] PHP crashes with multiple autoloaders if autoloader after the first does not return a value

2011-10-11 Thread Tom Boutell
Just opened a bug report: https://bugs.php.net/bug.php?id=60042 The documentation does not indicate that autoloader functions registered with spl_autoload_register have to return anything, but if an autoloader other than the first one returns no value, PHP crashes. This is because of a dangling

[PHP-DEV] enable mbstring by default

2011-10-11 Thread Ferenc Kovacs
Hi. As the "full" unicode support went down with php6, wouldn't it be a logical step to enable the mbstring extension by default(maybe even turning it into a builtin ext like phar)? I think that mbstring is a pretty mature and stable extension, and there isn't much dependencies so I can't think of

Re: [PHP-DEV] Array dereferencing using alternative array syntax

2011-10-11 Thread Nikita Popov
On Mon, Oct 10, 2011 at 12:02 PM, Pierre Joye wrote: > On Mon, Oct 10, 2011 at 11:55 AM, Nikita Popov > wrote: > >> Imho it should be supported regardless of whether we want to remove it >> or not - for the sake of consistency. > > If we ever want to have a consistent syntax, then no, we should n

[PHP-DEV] #60038 SIGALRM cause segfault in php_error_cb

2011-10-11 Thread Laruence
Hi: I filed a bug about SIGALRM(or SIGPROF) has chance to cause segfault in php_error_cb. https://bugs.php.net/bug.php?id=60038 do you think this is worth fixing (in 5.4 trunk)? (as zend_signal was introduced, and this fix will cost litte perf). thanks -- Laruence  Xinchen Hui http://ww

[PHP-DEV] Re: set_time_limit has no effect

2011-10-11 Thread Laruence
Hi; sorry for noise, I think I found out why. ignore me. thanks 2011/10/11 Laruence : > Hi: >    with E_NOTICE open > >    and if I run the test script by php /tmp/test.php 2>log,    the > timeout mechanism works agian... > > thanks > > 2011/10/11 Laruence : >> Hi: >>     set_time_limit se

[PHP-DEV] Re: set_time_limit has no effect

2011-10-11 Thread Laruence
Hi: with E_NOTICE open and if I run the test script by php /tmp/test.php 2>log,the timeout mechanism works agian... thanks 2011/10/11 Laruence : > Hi: >     set_time_limit seems has no effect for this example(both CLI, > apache2handler) : http://pastebin.com/N3TxANhn > set_time_

[PHP-DEV] set_time_limit has no effect

2011-10-11 Thread Laruence
Hi: set_time_limit seems has no effect for this example(both CLI, apache2handler) : http://pastebin.com/N3TxANhn http://www.laruence.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php