Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70706 invoked from network); 4 Sep 2008 14:24:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2008 14:24:21 -0000 Authentication-Results: pb1.pair.com header.from=dafneves@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dafneves@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.243 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dafneves@gmail.com X-Host-Fingerprint: 64.233.178.243 hs-out-0708.google.com Received: from [64.233.178.243] ([64.233.178.243:8755] helo=hs-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/27-35397-49FEFB84 for ; Thu, 04 Sep 2008 10:24:21 -0400 Received: by hs-out-0708.google.com with SMTP id j58so372288hsj.7 for ; Thu, 04 Sep 2008 07:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=vGr9jA9gNMl8ro9f6YhA+xuR1T7S2hb/E4nzfdMWCBI=; b=XGh/IVLOO9yV/1EIbgaL6RqD91aklSjT0HPUPDRqOSxSV4Qi82gLFa2kESHESQ7S/5 DfDr6J4mba19nwQNwgX02/IDgA9H/QN70DSfCkgqUTOEmTcmbCG26kMfxvkiAjlzj/R0 L5PqBAjFTv2Ujthv9El3Bh6572syoBlIRWJMk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=lZIw08bZNTFU+Z4UmOCDm6kt+Jr9zx4HyOqMWFm5st/dIcol0J/7l5Kpl/0fs69F7v wkvZTW801TJWIIrCM3PnRa0Wo0UWFj9s9FAInD2lKmwF3Hqex1NVjsWJIAMtkVlHdawm JH8SY78I0J3zssD8FfY8X1udewb8aywj7wz4g= Received: by 10.90.69.7 with SMTP id r7mr13247651aga.16.1220538258256; Thu, 04 Sep 2008 07:24:18 -0700 (PDT) Received: by 10.65.242.4 with HTTP; Thu, 4 Sep 2008 07:24:18 -0700 (PDT) Message-ID: <87ae45950809040724q6660ea44xa527dc0670822333@mail.gmail.com> Date: Thu, 4 Sep 2008 15:24:18 +0100 To: "Catalin Zamfir Alexandru | KIT Software CAZ" Cc: "PHP Internals List" In-Reply-To: <000e01c90e99$94e04280$bea0c780$@ro> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7493_5497937.1220538258234" References: <000601c90e98$d5a57ca0$80f075e0$@ro> <000e01c90e99$94e04280$bea0c780$@ro> Subject: Re: [PHP-DEV] Ob_start, "protected" obHandler method, nod detecting $this->geMe () kind of error! From: dafneves@gmail.com ("Diogo Neves") ------=_Part_7493_5497937.1220538258234 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Sep 4, 2008 at 3:21 PM, Catalin Zamfir Alexandru | KIT Software CAZ wrote: > Yes, excuse my English would be appropriate. I was in a hurry when writing > the email. Waiting for feedback from you guys ... > > -----Original Message----- > From: Catalin Zamfir Alexandru | KIT Software CAZ > [mailto:office@kitsoftware.ro] > Sent: Thursday, September 04, 2008 5:17 PM > To: 'PHP Internals List' > Subject: [PHP-DEV] Ob_start, "protected" obHandler method, nod detecting > $this->geMe () kind of error! > > Hello guys, > > We have too clases: > > - Abstract class OutputBuffering > > - Class ErrorHandler extends OutputBuffering, implements obHandler > as a "protected" method. I can detect: set_error_handler errors, through a > specific error handler (and obError method - I can detect any > notice/warning/fatal) and also "Parse errors" in obHandler, through > "parsing" error_prepend/error_append strings in the Output Buffer string. > > > > When the obHandler methos is "protected", the "$this->getMe ()" from GLOBAL > context cannot be detected. When the method is "public", the detection goes > as usual. The MANUAL Page on "ob_start" doesn't say anything about > declaring > the method "public". What if I want the "obHandler" method to not be > accessible by the developer, but only by inheriting objects?! > > > > Thanks for any feedback. > > > > Regards, > > Catalin Z. Alexandru > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Did you tried protected? I'm not really good with this things, but a protected method can be inherited but not acessed outside the class ;) -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt ------=_Part_7493_5497937.1220538258234--