Re: Proposal: new extension disablesilenceoperator
| From: | Johannes Schlüter | Date: | Tue, 17 Feb 2009 21:05:15 +0000 |
| Subject: | Re: Proposal: new extension disablesilenceoperator | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-6119@lists.php.net to get a copy of this message | ||
On Tue, 2009-02-17 at 15:48 -0500, Ilia Alshanetsky wrote:
> Sounds like a very handy extension. +1
>
> For the extension name, perhaps you can adopt an acronym like DSO?
I just like clear names and DSO is "dynamic shared object" ...
In other news: On IRC I was just told that Gopal has written a similar
extension with a nicer name, too:
http://t3.dotgnu.info/blog/php/breaking-the-silence.html
which does a
bit more error checking when overloading the opcodes.
I don't mind which one goes to pecl, but making it more visible is
nice :-)
johannes
>
> On 17-Feb-09, at 3:36 PM, Johannes Schlüter wrote:
>
> > Hi,
> >
> > I was working on some code with tons of @'s silencing errors making it
> > hard to debug, so I wrote a small extension simply overloading the
> > ZEND_BEGIN_SILENT and ZEND_END_SILENT opcodes so the behavior can be
> > controlled by setting an ini setting (INI_ALL) with the long name
> > disablesilenceoperator.disable_silence
> >
> > Tarball with the sources (no package.xml, yet) can be found at
> >
> > http://schlueters.de/~johannes/php/disablesilenceoperator.tar.gz it
> > should work with PHP >= 5.1 but I tested 5.3 only, yet.
> >
> > ------
> > $ php -n -d error_reporting=E_ALL -d
> > disablesilenceoperator.disable_silence=0 -r 'echo @$i;'
> > $ php -n -d error_reporting=E_ALL -d
> > disablesilenceoperator.disable_silence=1 -r 'echo @$i;'
> >
> > Notice: Undefined variable: i in Command line code on line 1
> > ------
> >
> > Any objections for adding it to pecl? (Except the stupid long name ...
> > ideas welcome there)
> >
> > johannes
> >
> >
> >
> > --
> > PECL development discussion Mailing List (http://pecl.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> Ilia Alshanetsky
>
>
>
>