Re: [PHP-DEV] Status for apache 2 and PHP - still not recomendable?

2006-05-03 Thread D. Walsh
On May 3, 2006, at 15:57 , Erik Franzén wrote:Is this still correct?http://se.php.net/manual/en/install.unix.apache2.phpReading that page clearly leads me to the following conclusion:We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. Fo

RE: [PHP-DEV] Critical bug #37276

2006-05-03 Thread Soenke Ruempler
Hi, Edin Kadribasic wrote on Wednesday, May 03, 2006 1:01 PM: > Just a heads up. > > We need to release 5.1.4 ASAP since the above mentioned bug breaks a > lot of applications, including phpMyAdmin, etc. I recognized this bug in phpmyadmin and own applications, too. A

Re: [PHP-DEV] Status for apache 2 and PHP - still not recomendable?

2006-05-03 Thread Rasmus Lerdorf
Erik Franzén wrote: Is this still correct? http://se.php.net/manual/en/install.unix.apache2.php Or is it recommendable to start using apache 2 in production? The warning there is for the threaded mpms, not Apache2 in general. And yes, we still suggest you use the prefork mpm with Apache2.

[PHP-DEV] Status for apache 2 and PHP - still not recomendable?

2006-05-03 Thread Erik Franzén
Is this still correct? http://se.php.net/manual/en/install.unix.apache2.php Or is it recommendable to start using apache 2 in production? Regards /Erik -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Rasmus Lerdorf
D. Dante Lorenso wrote: In my PHP zen world, empty() and filled() are friends. Ok, I've been selling 'filled()' for a while now. Can we reverse the sell and try this .. why SHOULDN'T filled() be added to the language? Because it doesn't do enough. Unlike empty(), when there actually is som

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Jasper Bryant-Greene
D. Dante Lorenso wrote: Rasmus Lerdorf wrote: Not sure what you guys are talking about. ?: is on the roadmap. -Rasmus Ok. That has some signs of hope. What is ?: exactly, though. Rasmus is referring to making the middle operand in the ternary operator optional, I believe. Jasper -- PH

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Rasmus Lerdorf wrote: Not sure what you guys are talking about. ?: is on the roadmap. -Rasmus Ok. That has some signs of hope. What is ?: exactly, though. I searched '?:' and yeah, good luck with that in documentation. It doesn't smell like it supports all the specifics that 'filled()' d

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Rasmus Lerdorf
Not sure what you guys are talking about. ?: is on the roadmap. -Rasmus D. Dante Lorenso wrote: Jochem Maas wrote: point 1: regardless of how people think there should be an ifsetor() in the engine - the devs don't so there wont be one. Avvhggghh! Don't you just want to scream! point

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Jochem Maas wrote: point 1: regardless of how people think there should be an ifsetor() in the engine - the devs don't so there wont be one. Avvhggghh! Don't you just want to scream! point 2: anything trying to implement this functionality in userspace is a hack. (to stregethen that stanc

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Rick Widmer wrote: D. Dante Lorenso wrote: No, that doesn't address the problem. See this: print @ifsetor($x, $y, $z, "dante")."\n"; Usage of the shutup operator, @, in this context is a shameful coding habit and hides too much: print @ifsetor($x, fakefunction($y), $z, "dante")."\n";

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Jochem Maas
Rick Widmer wrote: D. Dante Lorenso wrote: No, that doesn't address the problem. See this: print @ifsetor($x, $y, $z, "dante")."\n"; point 1: regardless of how people think there should be an ifsetor() in the engine - the devs don't so there wont be one. point 2: anything trying to imple

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Rick Widmer
D. Dante Lorenso wrote: No, that doesn't address the problem. See this: print @ifsetor($x, $y, $z, "dante")."\n"; -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Rick Widmer wrote: D. Dante Lorenso wrote: Eric, This reply is too basic and is not the answer. The problem is more complex then you have grasped. function ifsetor() { $args = func_get_args(); $count = count( $args ); for( $i=0; $i<$count; $i++ ) { if isset( $args[ $i ] )) { return

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Rick Widmer
D. Dante Lorenso wrote: Eric, This reply is too basic and is not the answer. The problem is more complex then you have grasped. function ifsetor() { $args = func_get_args(); $count = count( $args ); for( $i=0; $i<$count; $i++ ) { if isset( $args[ $i ] )) { return $args[ $i ];

[PHP-DEV] Re: new function: php_get_tmpdir() - bug #35380

2006-05-03 Thread Pierre
On Thu, 04 May 2006 00:53:38 +0200 [EMAIL PROTECTED] (Hartmut Holzgraefe) wrote: > http://bugs.php.net/bug.php?id=35380 That would really nice to have it. Temp directory detection is a pain. -- Pierre Did I help you? Please donate :) http://blog.thepimp.net/index.php/1998/04/12/57-please-donat

[PHP-DEV] new function: php_get_tmpdir() - bug #35380

2006-05-03 Thread Hartmut Holzgraefe
I have added a small function requested by bug #35380 that exposes the C API function php_get_temorary_directory() to userland as php_get_tmpdir(). The patch is available from the bug page http://bugs.php.net/bug.php?id=35380 I can't oversee whether this has any security implications although

[PHP-DEV] Specification for function filled() :: was ifsetor/coalesce

2006-05-03 Thread D. Dante Lorenso
Dear Internals, I'd like a white bikeshed, but until you can decide on a color, how about we just build the bikeshed already. Please consider the following specification: == 8< 8< 8< == filled (PHP 5.2.0) filled - Find first non-em

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Jared Williams
> > > > It should be already fixed in CVS. > > Please check. > > > > Ah. K :) > > Will check once the next snap is built. > > Jared > Just installed todays' 18:30 snap, and its working. Cheers. Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://

[PHP-DEV] WampServer with PHP 5.1.3

2006-05-03 Thread cyril PIERRE de GEYER
Wampserver is out :) Thx to Romain for this fast release and for the new tools ! Thx to all the PHPGroup in fact, we all are very proud to see that this OpenSource project is always very reactive and is going the good way. Long life to PHP !! http://www.wampserver.com/en/index.php WAMP5 inst

[PHP-DEV] PHP5-CVS and Apache2/mod_fastcgi (was: RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI)

2006-05-03 Thread dAniel hAhler
Dmitry Stogov wrote: > It should be already fixed in CVS. > Please check. I've just built current CVS, but it does not work with Apache2 as fastcgi: it times out! See http://bugs.php.net/bug.php?id=37205 - which you've onced fixed, but where another problem occured. -- PHP Internals - PHP Runt

[PHP-DEV] Re: Shared hashtable

2006-05-03 Thread Sara Golemon
> I'm being asked about the possibility of creating an extension that will > cache some data from a MySQL DB in-memory. I've been reading various > online resources regarding building extensions and cannot find an answer > to the following question... Is there a way to create a hashtable in the

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Jared Williams
> > It should be already fixed in CVS. > Please check. > Ah. K :) Will check once the next snap is built. Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Dmitry Stogov
It should be already fixed in CVS. Please check. Thanks. Dmitry. > -Original Message- > From: Jared Williams [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 03, 2006 5:22 PM > To: [EMAIL PROTECTED]; 'Dmitry Stogov'; > internals@lists.php.net > Subject: RE: [PHP-DEV] PHP 5.1.3, IIS & Fa

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Jared Williams
> > > > -Original Message- > > From: Dmitry Stogov [mailto:[EMAIL PROTECTED] > > Sent: 03 May 2006 12:33 > > To: [EMAIL PROTECTED]; internals@lists.php.net > > Subject: RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI > > > > It wasn't planned. > > What exactly doesn't work? > > > > Appears n

Re: [PHP-DEV] php 5.2.0

2006-05-03 Thread Andi Gutmans
Mainly around the memory manager at this point but we might also start looking at some executor optimizations. Best for Gopal to send us patches when we get to that point. Not sure what CPU he's testing on but it's important to do so on several for these kind of optimizations. We can do that.

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Jared Williams
> -Original Message- > From: Dmitry Stogov [mailto:[EMAIL PROTECTED] > Sent: 03 May 2006 12:33 > To: [EMAIL PROTECTED]; internals@lists.php.net > Subject: RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI > > It wasn't planned. > What exactly doesn't work? > Appears no requests get to the worke

Re: [PHP-DEV] Filter, doc updated

2006-05-03 Thread Derick Rethans
On Tue, 2 May 2006, Pierre wrote: > Until we have a phpdoc entry for pecl filter, I added a page to Lukas' > wiki, it is Derick's initial spec but reflecting the current state: > > http://oss.backendmedia.com/PeclFilter > > Feel free to fix typos or improve the text. I stuffed my text file in C

RE: [PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Dmitry Stogov
It wasn't planned. What exactly doesn't work? Dmitry. > -Original Message- > From: Jared Williams [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 03, 2006 2:20 PM > To: internals@lists.php.net > Subject: [PHP-DEV] PHP 5.1.3, IIS & FastCGI > > > Hi, > It seems I can not get PHP 5

Re: [PHP-DEV] Static properties

2006-05-03 Thread Derick Rethans
On Tue, 2 May 2006, Marcus Boerger wrote: > Edin and me discussed the issue a bit more in detail and shared memories > of discussions from the original php 5.0 development. As a conclusion we > came to the idea that we should revive the idea of a 'strict flag' that > decides whether member varia

[PHP-DEV] Critical bug #37276

2006-05-03 Thread Edin Kadribasic
Hi Guys, Just a heads up. We need to release 5.1.4 ASAP since the above mentioned bug breaks a lot of applications, including phpMyAdmin, etc. Reproduced on many different systems. Edin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Filter, doc updated

2006-05-03 Thread Pierre
On Wed, 3 May 2006 07:21:55 +0200 [EMAIL PROTECTED] wrote: > > Until we have a phpdoc entry for pecl filter, I added a page to > > Lukas' wiki, it is Derick's initial spec but reflecting the current > > state: > > We already have phpdoc filter documentation: > http://cvs.php.net/phpdoc/en/referen

[PHP-DEV] PHP 5.1.3, IIS & FastCGI

2006-05-03 Thread Jared Williams
Hi, It seems I can not get PHP 5.1.3 & FastCGI to work. Had 5.1.3RC2 working with FastCGI. Was this a planned break, and requires some different means of getting it working? Or should I go file a bug report? Jared -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

RE: [PHP-DEV] php 5.2.0

2006-05-03 Thread Dmitry Stogov
Hi Rasmus, I am planning: - some startup/shutdown sequence optimizations - FastCGI SAPI optimization (it does linear search in environment) - may be ZE memory mamangement optimization Could you point me into Gopal 's patch? Seems I missed it, but I like review it before commit. Thanks. Dmitr

[PHP-DEV] Shared hashtable

2006-05-03 Thread Stut
Hi all, I'm being asked about the possibility of creating an extension that will cache some data from a MySQL DB in-memory. I've been reading various online resources regarding building extensions and cannot find an answer to the following question... Is there a way to create a hashtable in th

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Eric, This reply is too basic and is not the answer. The problem is more complex then you have grasped. The only way to remove the notice and warning errors is by using pass-by-reference in the userspace function. Pass-by-reference can not be done for literal values and will only work on v

Re: [PHP-DEV] zend_class_entry.create_object

2006-05-03 Thread Marcus Boerger
Hello Brandon, create_object is your new handler that is supposed to deliver an empty object. You cannot have this NULL. The __construct part allows to define what the actual constructor does afterwards. Forcing __construct to be called is a bit more complicated but a bunch of exts already do so

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread Eric Coleman
http://us3.php.net/func_get_args http://us3.php.net/array Enjoy. Eric Coleman Eric Coleman http://aplosmedia.com home: 412 399 1024 cell: 412 779 5176 On May 3, 2006, at 3:13 AM, D. Dante Lorenso wrote: Johannes Schlueter wrote: please search the archives for "ifsetor". I have complet

Re: [PHP-DEV] Seeking 'coalesce' php internal function

2006-05-03 Thread D. Dante Lorenso
Johannes Schlueter wrote: please search the archives for "ifsetor". I have completed this search and find: http://marc.theaimsgroup.com/?r=1&w=2&q=b&l=php-dev&s=coalesce http://marc.theaimsgroup.com/?l=php-dev&w=2&r=1&s=ifsetor&q=b I am using PHP 5.1.2 currently and thought using pas

Re: [PHP-DEV] php 5.2.0

2006-05-03 Thread Rasmus Lerdorf
Sebastian Bergmann wrote: Rasmus Lerdorf wrote: Not sure what this has to do with PHP 5.2.0, but yes, improving the optimizer has been on the todo for a while. Volunteers are welcome. Sounds like an idea for a SoC project, or is it already too late for that? It's on the list. No takers y

Re: [PHP-DEV] php 5.2.0

2006-05-03 Thread Rasmus Lerdorf
Dmitry Stogov wrote: I am planning to make several performance related changes those will brake binary compatibility with 5.1. May be we need PHP_5_2 CVS branch to allow critical fixes for 5.1? Do you have more details on this? Just want to avoid duplicate work. Gopal has done some work on fi

Re: [PHP-DEV] php 5.2.0

2006-05-03 Thread Sebastian Bergmann
Rasmus Lerdorf wrote: > Not sure what this has to do with PHP 5.2.0, but yes, improving the > optimizer has been on the todo for a while. Volunteers are welcome. Sounds like an idea for a SoC project, or is it already too late for that? -- Sebastian Bergmann http://www.se