[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 204899] New: return $this is not upgraded when the function is
From: Radu Benea <radub82 () gmail ! com>
Date: 2009-08-23 17:21:37
Message-ID: bug-204899-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=204899
Summary: return $this is not upgraded when the function is
inherited from the base class
Product: kdevelop
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: php support
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: radub82@gmail.com
Version: KDevelop
Version 3.9.95 (using KDevPlatform 0.9.95) (using Devel)
OS: Linux
Installed from: Compiled sources
In the following code $r is recognized as being of base class instead of
superclass class, which in turn results in not recognizing the availability of
the gotoHell function
<?php
class base
{
public function getInstance()
{
return $this;
}
}
class superclass extends base
{
public function gotoHell()
{
echo 'arrived in hell';
}
}
$q = new superclass;
$r = $q->getInstance();
$r->gotoHell();
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic