Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40252 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67085 invoked from network); 4 Sep 2008 14:17:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2008 14:17:08 -0000 Authentication-Results: pb1.pair.com header.from=office@kitsoftware.ro; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=office@kitsoftware.ro; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kitsoftware.ro from 81.196.12.70 cause and error) X-PHP-List-Original-Sender: office@kitsoftware.ro X-Host-Fingerprint: 81.196.12.70 smtp1.rdslink.ro Linux 2.4/2.6 Received: from [81.196.12.70] ([81.196.12.70:60848] helo=smtp.rdslink.ro) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/66-35397-1EDEFB84 for ; Thu, 04 Sep 2008 10:17:07 -0400 Received: (qmail 24769 invoked from network); 4 Sep 2008 14:17:04 -0000 X-Mail-Scanner: Scanned by qSheff 1.0 (http://www.enderunix.org/qsheff/) Received: from unknown (HELO AntauriPC) (86.121.161.176) by smtp1.rdslink.ro with SMTP; 4 Sep 2008 14:17:03 -0000 To: "'PHP Internals List'" Date: Thu, 4 Sep 2008 17:16:33 +0300 Message-ID: <000601c90e98$d5a57ca0$80f075e0$@ro> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C90EB1.FAF2B4A0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckOmNV5pm+wqNS2Slumnl4eYlhNjA== Content-Language: en-us Subject: Ob_start, "protected" obHandler method, nod detecting $this->geMe () kind of error! From: office@kitsoftware.ro ("Catalin Zamfir Alexandru | KIT Software CAZ") ------=_NextPart_000_0007_01C90EB1.FAF2B4A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0007_01C90EB1.FAF2B4A0--