Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong

Hi Andi,

There isn't an "object" var in the fcall_begin_handler, or in the
zend_op_array.
I used CG(class_entry).name in the end.
BTW: whats the difference between class_entry and active_class_entry?

--Wez.

On 03/09/01, "Andi Gutmans" <[EMAIL PROTECTED]> wrote:
> object.ptr is supposed to point to the object you are calling. It would be 
> something like object.ptr->obj.ce->name. Anyway I think that's pretty much 
> it without checking the code.
> >On 03/09/01, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> > > In a Zend extension in the fcall_begin_handler_func_t, is it
> > > possible to get the name of the function being called?



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Andi Gutmans

object.ptr is supposed to point to the object you are calling. It would be 
something like object.ptr->obj.ce->name. Anyway I think that's pretty much 
it without checking the code.

Andi

At 03:20 PM 9/3/2001 +0100, Wez Furlong wrote:
>OK,
>
>I found op_array->function_name but had discarded it because copying
>it was causing segfaults (I don't know why).
>So, I sprintf it into a stack buffer and then dup that (all using malloc).
>
>Now, the question is, how do I get the class name for a method call?
>
>--Wez.
>
>On 03/09/01, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> > In a Zend extension in the fcall_begin_handler_func_t, is it
> > possible to get the name of the function being called?
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong

Got it.

I was too busy trying to get the info from the op_array to
realize that CG and EG were where I should be looking...

--Wez.

On 03/09/01, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> OK,
> 
> I found op_array->function_name but had discarded it because copying
> it was causing segfaults (I don't know why).
> So, I sprintf it into a stack buffer and then dup that (all using malloc).
> 
> Now, the question is, how do I get the class name for a method call?
> 
> --Wez.
> 
> On 03/09/01, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> > In a Zend extension in the fcall_begin_handler_func_t, is it
> > possible to get the name of the function being called?




-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] fcall_begin_handler_func_t (Zend extensions)

2001-09-03 Thread Wez Furlong

OK,

I found op_array->function_name but had discarded it because copying
it was causing segfaults (I don't know why).
So, I sprintf it into a stack buffer and then dup that (all using malloc).

Now, the question is, how do I get the class name for a method call?

--Wez.

On 03/09/01, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> In a Zend extension in the fcall_begin_handler_func_t, is it
> possible to get the name of the function being called?



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]