Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95972 invoked from network); 4 Sep 2008 15:28:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2008 15:28:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=dafneves@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dafneves@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.14 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: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:56420] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/E4-07417-2BEFFB84 for ; Thu, 04 Sep 2008 11:28:51 -0400 Received: by gxk7 with SMTP id 7so6509863gxk.23 for ; Thu, 04 Sep 2008 08:28:48 -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=wT/LFl2vnUhGiRzr58QkRpeBLIRh9q6G04mMpF6ay+0=; b=S243B0cQ7BtemxFNABRRJe+aYh/Rg6vzSIp1r586qzIHKIN+FujSARX9cNppyUUnTC rDvnO0BxlwGwrCHbwLXn/l5erOhyjuZSay3NJWKjxG5irZ+rVWYS5ONTVzsdmRtlz7E9 dimrxZDfwD38i+4kGffTK6vSNMr3naZHFUnIc= 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=uZ9KNM9XxAyRnFTyLh6HAROnEOwQZtGMeQwEbu8ZEL/0M3/2tNuibEN9y+deGFSh01 7H20dp+fgYij+Fc+gsX7lxBWfDg3YUISPuARf0DglX2C//XQfkwkLriNd5ZML5xDUBo6 Cq8ymJpU1IsYa3HJUBmjAd1nY5NJXkjyHmqjI= Received: by 10.151.112.19 with SMTP id p19mr14678088ybm.30.1220542128517; Thu, 04 Sep 2008 08:28:48 -0700 (PDT) Received: by 10.65.242.4 with HTTP; Thu, 4 Sep 2008 08:28:48 -0700 (PDT) Message-ID: <87ae45950809040828q122d0e4ds8f13627e57749684@mail.gmail.com> Date: Thu, 4 Sep 2008 16:28:48 +0100 To: "Catalin Zamfir Alexandru | KIT Software CAZ" Cc: "PHP Internals List" In-Reply-To: <001601c90e9b$ac0be430$0423ac90$@ro> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8484_30869911.1220542128494" References: <000601c90e98$d5a57ca0$80f075e0$@ro> <000e01c90e99$94e04280$bea0c780$@ro> <87ae45950809040724q6660ea44xa527dc0670822333@mail.gmail.com> <001501c90e9b$3dca7d10$b95f7730$@ro> <001601c90e9b$ac0be430$0423ac90$@ro> Subject: Re: [PHP-DEV] Ob_start, "protected" obHandler method, nod detecting $this->geMe () kind of error! From: dafneves@gmail.com ("Diogo Neves") ------=_Part_8484_30869911.1220542128494 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Sep 4, 2008 at 3:36 PM, Catalin Zamfir Alexandru | KIT Software CAZ wrote: > This is my PHP: > PHP 5.2.6-pl6-gentoo (cli) (built: Aug 17 2008 01:02:28) > Copyright (c) 1997-2008 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies > > -----Original Message----- > From: Catalin Zamfir Alexandru | KIT Software CAZ > [mailto:office@kitsoftware.ro] > Sent: Thursday, September 04, 2008 5:34 PM > To: 'Diogo Neves' > Cc: 'PHP Internals List' > Subject: RE: [PHP-DEV] Ob_start, "protected" obHandler method, nod > detecting > $this->geMe () kind of error! > > Yes, that's the "so-called bug" I'm talking about. Having the obHandler > marked as "protected" makes "$this->getMe ()" kind of errors, from GLOBAL > context undetectable, while Parse/Notice/Warning errors are stil there, > even > if the "$this->getMe ()" error is marked as "Fatal Error:". Here: Fatal > error: Using $this when not in object context in > /var/www/localhost/htdocs/dev/ALFA/index.php on line 26 (this is when > obHandler = public). > > A blank page = when obHandler = protected, but Parse/Notice/any other kind > of errors are still detected. :) > > -----Original Message----- > From: Diogo Neves [mailto:dafneves@gmail.com] > Sent: Thursday, September 04, 2008 5:24 PM > To: Catalin Zamfir Alexandru | KIT Software CAZ > Cc: PHP Internals List > Subject: Re: [PHP-DEV] Ob_start, "protected" obHandler method, nod > detecting > $this->geMe () kind of error! > > 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 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Can you send a small example of code? -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt ------=_Part_8484_30869911.1220542128494--