Re: [PHP-DEV] [PATCH] Modifications for ext/session/

2005-04-20 Thread Sean Coates
Daniel J Cain Jr. wrote: One change adds a PHP function session_is_started() to determine if a session has already been, well... started. :) It also adds an optional id parameter to session_regenerate_id() allowing the user to provide their own id instead of PHP generating a new one. I'm not i

[PHP-DEV] [PATCH] Modifications for ext/session/

2005-04-20 Thread Daniel J Cain Jr.
I recently wrote a new custom session handler in PHP5. In the process I've made a couple of changes within ext/session/ that I would like to see in the official PHP distribution. Please consider the following patches for inclusion into PHP. One change adds a PHP function session_is_started() to

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Antony Dovgal
On Wed, 20 Apr 2005 09:52:25 -0400 Greg Beaver <[EMAIL PROTECTED]> wrote: > Antony Dovgal wrote: > > >On Tue, 19 Apr 2005 23:11:46 -0400 > >Greg Beaver <[EMAIL PROTECTED]> wrote: > > > > > > > >>Hi all, > >> > >>I just spent quite a while searching the archives, and can't find any > >>explanat

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Greg Beaver
Johannes Schlueter wrote: Hi Greg, Greg Beaver wrote: Try this code (which worked in 5.0.3) This was changed since such a change of visibility makes no sense - if you extend a class it should still be compatible with it's parent class. I highly recommend removing this restriction for constructor

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Johannes Schlueter
Hi Greg, Greg Beaver wrote: > Try this code (which worked in 5.0.3) > > class a { public function __construct(){}} > class b extends a { protected function __construct(){}} > ?> This was changed since such a change of visibility makes no sense - if you extend a class it should still be compati

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Greg Beaver
Antony Dovgal wrote: On Tue, 19 Apr 2005 23:11:46 -0400 Greg Beaver <[EMAIL PROTECTED]> wrote: Hi all, I just spent quite a while searching the archives, and can't find any explanation of why this code worked in 5.0.3 but doesn't in 5.0.4: class blah { protected function __construct(){} }

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Antony Dovgal
On Tue, 19 Apr 2005 23:11:46 -0400 Greg Beaver <[EMAIL PROTECTED]> wrote: > Hi all, > > I just spent quite a while searching the archives, and can't find any > explanation of why this code worked in 5.0.3 but doesn't in 5.0.4: > > class blah { > protected function __construct(){} > } > ?>

Re: [PHP-DEV] protected/private function __construct() not allowed in 5.0.4?

2005-04-20 Thread Marcus Boerger
Hello Greg, Wednesday, April 20, 2005, 5:11:46 AM, you wrote: > Hi all, > I just spent quite a while searching the archives, and can't find any > explanation of why this code worked in 5.0.3 but doesn't in 5.0.4: > class blah { > protected function __construct(){} > } ?>> > Could someon