note 87591 added to function.get-class

From: Date: Thu, 11 Dec 2008 21:55:03 +0000
Subject: note 87591 added to function.get-class
Groups: php.notes 
Request: Send a blank email to php-notes+get-148050@lists.php.net to get a copy of this message
<?php class One { static function test() { echo get_class(new self()); } } One::test(); // produces: "One" // However: class Two extends One{} Two::test(); // this also produces "One", any way to fix this? ?> ---- Server IP: 92.48.74.199 Probable Submitter: 82.153.169.132 ---- Manual Page -- http://www.php.net/manual/en/function.get-class.php Edit -- https://master.php.net/note/edit/87591 Del: integrated -- https://master.php.net/note/delete/87591/integrated Del: useless -- https://master.php.net/note/delete/87591/useless Del: bad code -- https://master.php.net/note/delete/87591/bad+code Del: spam -- https://master.php.net/note/delete/87591/spam Del: non-english -- https://master.php.net/note/delete/87591/non-english Del: in docs -- https://master.php.net/note/delete/87591/in+docs Del: other reasons-- https://master.php.net/note/delete/87591 Reject -- https://master.php.net/note/reject/87591 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148050) next »