#39209 [Opn->Bgs]: virtual self

From: Date: Fri, 20 Oct 2006 09:46:35 +0000
Subject: #39209 [Opn->Bgs]: virtual self
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103783@lists.php.net to get a copy of this message
ID: 39209 Updated by: tony2001@php.net Reported By: dtyschenko at soft-ukraine dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Any PHP Version: 5.1.6 New Comment: This is not a forum, use lists for discussions. Previous Comments: ------------------------------------------------------------------------ [2006-10-20 09:35:43] dtyschenko at soft-ukraine dot com Description: ------------ As I know all functions in PHP are virtual. This mean that $this always is type of object, but self is type of class where function is called. So when I try to execute new self, it's creating instance of class where function was executed. Maybe self should be something like virtual too? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39209&edit=1

« previous php.bugs (#103783) next »