Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87924 invoked from network); 25 Nov 2010 15:44:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2010 15:44:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=kkooporation@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kkooporation@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.213.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kkooporation@googlemail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:51998] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/31-16484-4748EEC4 for ; Thu, 25 Nov 2010 10:44:53 -0500 Received: by yxi11 with SMTP id 11so571197yxi.29 for ; Thu, 25 Nov 2010 07:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=+Yi8ZwNO1J05ogaSfBvFUf5nzPWKEV8Dq0jjiwtw1E0=; b=vQzQb7meBx6pksgJw/CQ5pCtyQrIGrzsOcsaEP3fx6KNCSmpEsSx+IPGarGX0K8/xe NwrDPAa9sj1ZlkDo0na7RmjYG9+85rWmtaJLiOTU0cEnE4kxOWU6kNion1F9VKMEDS9L 616sgJKbatJBkTxCBZxOQJEfwH3TFS+sczwe0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=N9+jCHlRhci/T/+70t8I3PfAoRd/wv3Z6gMxWDch4jl7CsL3IjF3O+hDzgCSWgIgdU wvYMIz++uUK6JHZmzifthR1HalSMJlzi0LbfqAFOZdCtxfbC1nR8/KIIDyYpk9QQgNdZ 7VMps8qNhYzD4CbDTJ3MhUQBvA5wLDM75ZjDo= Received: by 10.100.109.15 with SMTP id h15mr699481anc.184.1290699890341; Thu, 25 Nov 2010 07:44:50 -0800 (PST) MIME-Version: 1.0 Sender: kkooporation@googlemail.com Received: by 10.236.108.134 with HTTP; Thu, 25 Nov 2010 07:44:20 -0800 (PST) Date: Thu, 25 Nov 2010 16:44:20 +0100 X-Google-Sender-Auth: O-A5orSwdMMjaWTeLTCTSybyOnI Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=0016e6433e4279b8a90495e27cbd Subject: Runtime-Extension of Classes From: Kenan@Sulayman.org (Kenan Sulayman) --0016e6433e4279b8a90495e27cbd Content-Type: text/plain; charset=UTF-8 Hello out there! This morning I asked myself whether it's possible to extend a class without calling the child, but the initially extended class? It can, in some circumstances, really be important. I.e.: I build an CLI-shell interface for some back-end stuff I'd to do - and it really is a pain in the ass to do all of the include-register-calls' for each of a newly written extension. It could be so much easier, considered having a possibility to do the include-[I'm usable] way ;) I mean, for instance: XorePwn( $_uu, $_xw ) ;* // obviously, that's not possible, but a demo } } ?> So - is there a way to dynamically extend a class (not the traditionally "get-the-class,-clone-the-class-and-add-sugar"-way) ? I'd really like to hear some cool explanations - but, well, please don't tell me that's not possible, because it's not possible.. ;) So, cheers guys, -- (c) *Kenan Sulayman* *Freelance Designer and Programmer* *Life's Live Poetry* -- *Notice *-- The validity of none of any of the text in this mail is guaranteed. The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying or distribution of the message, or any action taken by you in reliance on it, is prohibited and may be unlawful. If you have received this message in error, please delete it and contact the sender immediately. Thank you. --0016e6433e4279b8a90495e27cbd--