note 93327 added to function.class-alias

From: Date: Thu, 03 Sep 2009 10:43:21 +0000
Subject: note 93327 added to function.class-alias
Groups: php.notes 
Request: Send a blank email to php-notes+get-160188@lists.php.net to get a copy of this message
This function will appear in PHP 5.3 (at least I can use it with PHP 5.3, build Aug 7 2009 08:21:14) For older versions of PHP I wrote the next function: <?php if (!function_exists('class_alias')) { function class_alias($original, $alias) { eval('abstract class ' . $alias . ' extends ' . $original . ' {}'); } } ?> Keyword 'abstract' is used for classes, which defines abstract methods. This function is used in autoload purposes (when I extend classes), so abstract keyword doesn't broke anything for me. ---- Server IP: 88.81.245.102 (proxied: 91.196.196.205 1.0 localhost.ua.elro.com:3128 (squid/2.5.STABLE14)) Probable Submitter: 91.196.93.20 ---- Manual Page -- http://www.php.net/manual/en/function.class-alias.php Edit -- https://master.php.net/note/edit/93327 Del: integrated -- https://master.php.net/note/delete/93327/integrated Del: useless -- https://master.php.net/note/delete/93327/useless Del: bad code -- https://master.php.net/note/delete/93327/bad+code Del: spam -- https://master.php.net/note/delete/93327/spam Del: non-english -- https://master.php.net/note/delete/93327/non-english Del: in docs -- https://master.php.net/note/delete/93327/in+docs Del: other reasons-- https://master.php.net/note/delete/93327 Reject -- https://master.php.net/note/reject/93327 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160188) next »