Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c
| From: | Derick Rethans | Date: | Mon, 25 Mar 2002 20:36:41 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_compile.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-42@lists.php.net to get a copy of this message | ||
On Mon, 25 Mar 2002, Markus Fischer wrote:
> Is it possible without much hassle to also expose the class
> name, so the error message reads
>
> Cannot redeclare Class::Method()
I'll have a look
Derick
> ?
>
> - Markus
>
> On Mon, Mar 25, 2002 at 08:29:57PM -0000, Derick Rethans wrote :
> > derick Mon Mar 25 15:29:57 2002 EDT
> >
> > Modified files:
> > /Zend zend_compile.c
> > Log:
> > - Fix for bug #16265
> >
> >
> > Index: Zend/zend_compile.c
> > diff -u Zend/zend_compile.c:1.225 Zend/zend_compile.c:1.226
> > --- Zend/zend_compile.c:1.225 Wed Feb 13 22:55:20 2002
> > +++ Zend/zend_compile.c Mon Mar 25 15:29:57 2002
> > @@ -732,7 +732,9 @@
> > op_array.return_reference = return_reference;
> >
> > if (is_method) {
> > - zend_hash_update(&CG(active_class_entry)->function_table, name, name_len+1,
> > &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array));
> > + if (zend_hash_add(&CG(active_class_entry)->function_table, name, name_len+1,
> > &op_array, sizeof(zend_op_array), (void **) &CG(active_op_array)) == FAILURE) {
> > + zend_error(E_ERROR, "Cannot redeclare method %s()", name);
> > + }
> > } else {
> > zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC);
> >
> >
> >
> >
> > --
> > Zend Engine CVS Mailing List (http://cvs.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> Please always Cc to me when replying to me on the lists.
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
>