Hello,
I'm not sure if this is the desired behavior and i don't want to submit
a bogus bug report.
class A
{
public function f1()
{
var_dump($this-_b);
}
}
class B
{
public $_b = 'stuff';
public function f2()
{
A::f1();
}
}
$b = new B();
$b-f2();
I'm not sure if this is the desired behavior and i don't want to submit a
bogus bug report.
…
At first i would expect an error since A was not instantiated, at most i
would expect to return NULL but not 'stuff'.
Is this a bug ?
This is explained here:
Hi,
On Mon, Dec 12, 2011 at 14:35, Bogdan Bezuz bogdan.be...@emag.ro wrote:
Hello,
I'm not sure if this is the desired behavior and i don't want to submit a
bogus bug report.
class A
{
public function f1()
{
var_dump($this-_b);
}
}
class B
{
public $_b = 'stuff';
Hello,
Thanks for the info, as pointed out by Sean Coates this is sort of
documented, I've submited a documentation (problem/)bug report.
https://bugs.php.net/bug.php?id=60499
E_STRICT was disabled since a large part of the application was
moved to php 5 only
Dear internals,
please consider the following code executed with PHP 5.3alpha3:
?php
class Foo {
protected $foo = array('bar' = 'baz');
public function test() {
$propertyName = 'foo';
var_dump(isset($this-foo['bar']));
On Thu, Jan 15, 2009 at 7:24 PM, Robert Lemke rob...@typo3.org wrote:
Dear internals,
please consider the following code executed with PHP 5.3alpha3:
I suspect neither bug nor feature. I think you expect that
$this-$propertyName['bar']
is the same as:
($this-$propertyName)['bar']
Hi Paul,
Am 15.01.2009 um 20:35 schrieb Paul Biggar:
I suspect neither bug nor feature. I think you expect that
$this-$propertyName['bar']
is the same as:
($this-$propertyName)['bar']
but in fact it is:
$this-($propertyName['bar'])
So in your example, 'bar' is the string index 0
Hello,
On Thu, Jan 15, 2009 at 8:24 PM, Robert Lemke rob...@typo3.org wrote:
Dear internals,
please consider the following code executed with PHP 5.3alpha3:
?php
class Foo {
protected $foo = array('bar' = 'baz');
public function test() {
$propertyName =