Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_builtin_functions.c zend_vm_execute.h
| From: | Hannes Magnusson | Date: | Tue, 19 Feb 2008 20:46:24 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_builtin_functions.c zend_vm_execute.h | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6437@lists.php.net to get a copy of this message | ||
On Feb 19, 2008 9:45 PM, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
> On Feb 19, 2008 5:39 PM, Dmitry Stogov <dmitry@php.net> wrote:
> > dmitry Tue Feb 19 16:39:04 2008 UTC
> >
> > Modified files: (Branch: PHP_5_2)
> > /ZendEngine2 zend_builtin_functions.c zend_vm_execute.h
> > Log:
> > Fixed memory leaks
> [..]
> >
> > http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_vm_execute.h?r1=1.62.2.30.2.55&r2=1.62.2.30.2.56&diff_format=u
> > Index: ZendEngine2/zend_vm_execute.h
> > diff -u ZendEngine2/zend_vm_execute.h:1.62.2.30.2.55
> > ZendEngine2/zend_vm_execute.h:1.62.2.30.2.56
> > --- ZendEngine2/zend_vm_execute.h:1.62.2.30.2.55 Mon Dec 31 07:20:03 2007
> > +++ ZendEngine2/zend_vm_execute.h Tue Feb 19 16:39:02 2008
> > @@ -181,6 +181,13 @@
> >
> > ALLOC_ZVAL(EX_T(opline->result.u.var).var.ptr);
> > INIT_ZVAL(*(EX_T(opline->result.u.var).var.ptr));
> > +if (strcmp(EX(function_state).function->common.function_name,
> > "set_error_handler") == 0) {
> > +static n = 0;
> > +++n;
> > +if (n>=542) {
> > +fprintf(stderr, "%3d 0x%08X %s\n", n, EX_T(opline->result.u.var).var.ptr,
> > EX(function_state).function->common.function_name);
> > +}
> > +}
>
> This seems... weird.
> Was it really intentional?
>
Fleh, nevermind. Noticed the latter commit just now :)
-Hannes