Andi Gutmans | 1 Jun 13:47 2004

[PHP-DEV] RC3

Anything else that needs to go into RC3?

Andi

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Wolfgang Drews | 1 Jun 14:50 2004
Picon

RE: [PHP-DEV] RC3

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi Andi,

> Anything else that needs to go into RC3?

maybe not so important for *nixer, but for Windows: I have a
really annoying Memory Leak here on my Dev-Station with WinXP
and the latest snaps-built (from tomorrow). Every call of a php-
script increases the memory-usage of apache about 3-4 MB, so that
in consequence the apache takes up about 700MB memory after some
reloads of a php-script. Killing this apache-process is the only way to
free memory again. 
This behavior appears since some earlier CVS-Builts (Don't know the
exact one).

Sorry, that i have no more details to give, but if you tell me what
to do, i would be happy to support you with finding a solution.

cheers

-Wolfgang

--
PHP-Knotenpunkt Dynamic Web Pages: http://www.dynamicwebpages.de/
Professionelle Lösungen für dynamisches Webpublishing: http://php-buch.de/
Thanks Wolfgang: http://www.amazon.de/exec/obidos/wishlist/C1MRGJEWB3SB/

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
(Continue reading)

Bert Slagter | 1 Jun 15:11 2004
Picon

[PHP-DEV] Use of 'self' in static function in subclass

Hi All,

I have a class and a subclass, both with a static method:

<?php
class Foo
{
	static function Bar()
	{
		self::Baz();
	}
}

class Foo2 extends Foo
{
	static function Baz()
	{
		echo 'Baz';
	}
}

Foo2::Bar();
?>

In this case I expect to find 'Baz' on my screen, but I get the 
following: "Fatal error: Call to undefined method Foo::baz() in 
d:\htdocs_php5\ProBase2\TRUNK\probase\libsys\test5.php on line 7".

This is in PHP5 RC2.

(Continue reading)

Stephan Schmidt | 1 Jun 15:21 2004
Picon

RE: [PHP-DEV] Use of 'self' in static function in subclass

Hi,

> Somehow this behaviour seems logical, on the other hand I don't think 
> it's desired. I think that 'self' should point to the current class, 
> even if the static method resides in a parent class.
> 
> Is this 'self'-behaviour intended?

Furthermore this renders the template-method pattern quite useless, so
IMHO it should be changed.

Stephan

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Hans Lellelid | 1 Jun 15:43 2004
Picon

[PHP-DEV] Re: Use of 'self' in static function in subclass

Bert Slagter wrote:

> Hi All,
> 
> I have a class and a subclass, both with a static method:
> 
> <?php
> class Foo
> {
>     static function Bar()
>     {
>         self::Baz();
>     }
> }
> 
> class Foo2 extends Foo
> {
>     static function Baz()
>     {
>         echo 'Baz';
>     }
> }
> 
> Foo2::Bar();
> ?>
> 
> In this case I expect to find 'Baz' on my screen, but I get the 
> following: "Fatal error: Call to undefined method Foo::baz() in 
> d:\htdocs_php5\ProBase2\TRUNK\probase\libsys\test5.php on line 7".
> 
(Continue reading)

Andi Gutmans | 1 Jun 15:58 2004

RE: [PHP-DEV] RC3

This is indeed very strange. I made some fixes to the memory manager a few 
days ago. Have you tried a version since then?

Andi

At 02:50 PM 6/1/2004 +0200, Wolfgang Drews wrote:
>*This message was transferred with a trial version of CommuniGate(tm) Pro*
>Hi Andi,
>
> > Anything else that needs to go into RC3?
>
>maybe not so important for *nixer, but for Windows: I have a
>really annoying Memory Leak here on my Dev-Station with WinXP
>and the latest snaps-built (from tomorrow). Every call of a php-
>script increases the memory-usage of apache about 3-4 MB, so that
>in consequence the apache takes up about 700MB memory after some
>reloads of a php-script. Killing this apache-process is the only way to
>free memory again.
>This behavior appears since some earlier CVS-Builts (Don't know the
>exact one).
>
>Sorry, that i have no more details to give, but if you tell me what
>to do, i would be happy to support you with finding a solution.
>
>cheers
>
>-Wolfgang
>
>--
>PHP-Knotenpunkt Dynamic Web Pages: http://www.dynamicwebpages.de/
(Continue reading)

Ferdinand Beyer | 1 Jun 16:02 2004

RE: [PHP-DEV] Use of 'self' in static function in subclass

On 1 Jun 2004 at 15:21, Stephan Schmidt wrote:

> Furthermore this renders the template-method pattern quite 
useless, so
> IMHO it should be changed.

He should define an abstract method Foo::Baz() here.

-- 
Ferdinand Beyer
<fb <at> fbeyer.com>

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Florian Schaper | 1 Jun 16:02 2004

[PHP-DEV] Problem in Order of PHP Shutdown

There is a problem in the order the destructors of objects are destroyed at
PHP shutdown.
Let's say in an destructor the objects tries to save some states in a
session variable that would currently fail since destructors are called
after modules are freed.
Sample & patch included.

./regards

Florian Schaper

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Wolfgang Drews | 1 Jun 16:08 2004
Picon

RE: [PHP-DEV] RC3

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi Andi, 

> This is indeed very strange. I made some fixes to the memory 
> manager a few 
> days ago. Have you tried a version since then?

before writing to this list, i've download the latest CVS-Snap
Win-Built from snaps.php.net. Problem still existed, so i 
decided to tell you (Build Date  Jun 1 2004 12:13:54).

cheers

-Wolfgang

--
PHP-Knotenpunkt Dynamic Web Pages: http://www.dynamicwebpages.de/
Professionelle Lösungen für dynamisches Webpublishing: http://php-buch.de/
Thanks Wolfgang: http://www.amazon.de/exec/obidos/wishlist/C1MRGJEWB3SB/

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Hans Lellelid | 1 Jun 16:12 2004
Picon

Re: [PHP-DEV] Use of 'self' in static function in subclass

Ferdinand Beyer wrote:

> On 1 Jun 2004 at 15:21, Stephan Schmidt wrote:
> 
> 
>>Furthermore this renders the template-method pattern quite 
> 
> useless, so
> 
>>IMHO it should be changed.
> 
> 
> He should define an abstract method Foo::Baz() here.
> 

Yes, I agree that design-wise that would be better -- but it will still 
fail w/ E_FATAL in PHP if the method is abstract ("cannot call abstract 
method Foo::Baz() in ....").

Hans

--

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane