Re: [PHP-DEV] Private properties, Inheritance, Reflection (5.3)

2009-04-03 Thread Roman Borschel
Hi, On Apr 4, 2009, at 1:53 AM, Johannes Schlüter wrote: On Fri, 2009-04-03 at 22:37 +0200, Roman Borschel wrote: Given the following simple classes class Foo { private $foo = 'value'; public function getFoo() { return $this->foo; } } class Bar extends Foo {} Obviously, given an inst

Re: [PHP-DEV] Private properties, Inheritance, Reflection (5.3)

2009-04-03 Thread Johannes Schlüter
On Fri, 2009-04-03 at 22:37 +0200, Roman Borschel wrote: > Given the following simple classes > > class Foo { > private $foo = 'value'; > public function getFoo() { return $this->foo; } > } > class Bar extends Foo {} > > Obviously, given an instance of Bar, say $bar, $bar->getFoo() retu

[PHP-DEV] Private properties, Inheritance, Reflection (5.3)

2009-04-03 Thread Roman Borschel
Hi, i've got a little question that involves private properties, inheritance and Reflection with PHP 5.3 RC1. Given the following simple classes class Foo { private $foo = 'value'; public function getFoo() { return $this->foo; } } class Bar extends Foo {} Obviously, given an instanc

[PHP-DEV] Re: [PATCH] double to long conversion change

2009-04-03 Thread Dmitry Stogov
Hi Matt, I don't really see why we should "preserve the least significant bits" and I don't think we should support bitwise operations with doubles. Stas, could you please look into this too. Thanks. Dmitry. Matt Wilmas wrote: Hi Dmitry, - Original Message - From: "Dmitry Stogov" S

[PHP-DEV] CVS Account Request: mager

2009-04-03 Thread Andrew Mager
Maintaining the documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Alexey Zakhlestin
On Fri, Apr 3, 2009 at 2:42 PM, Karsten Dambekalns wrote: > Hi Alexey. > > On 03.04.2009 12:33 Uhr, Alexey Zakhlestin wrote: >> >> well, and what is the reason why you can't make your "attach()" >> compatible with SplObjectStorage's? >> >> the following signature works for me (both in 5.2 and 5.3)

Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Karsten Dambekalns
Hi Alexey. On 03.04.2009 12:33 Uhr, Alexey Zakhlestin wrote: well, and what is the reason why you can't make your "attach()" compatible with SplObjectStorage's? the following signature works for me (both in 5.2 and 5.3): public function attach($obj, $inf = null) Doh, well. Even better, so it'

Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Alexey Zakhlestin
On Fri, Apr 3, 2009 at 2:05 PM, Karsten Dambekalns wrote: > Hi. > > I am trying to extend SplObjectStorage and override the attach() method. > This gives me: > > Strict Standards: Declaration of B::attach() should be compatible with that > of SplObjectStorage::attach() in test.php on line 5 > > Se

[PHP-DEV] Extending SplObjectStorage impossible due to type hints!?

2009-04-03 Thread Karsten Dambekalns
Hi. I am trying to extend SplObjectStorage and override the attach() method. This gives me: Strict Standards: Declaration of B::attach() should be compatible with that of SplObjectStorage::attach() in test.php on line 5 Seems am am hitting the object type hint wall again. Any ways around t