By initialization i mean the latest point possible where I can set a 
breakpoint, but right before my scripts starts executing it's emalloc's or 
efree's.....

> but even then you will see many things you're probably not interested in

such as?......

> Only thing that helps is learning the code structure and digging through it.

Any hint/documentation to learn that?

Thanks.



________________________________
 From: Johannes Schlüter <johan...@schlueters.de>
To: Adi Mutu <adi_mut...@yahoo.com> 
Cc: Felipe Pena <felipe...@gmail.com>; PHP Developers Mailing List 
<internals@lists.php.net> 
Sent: Saturday, June 30, 2012 12:36 AM
Subject: Re: [PHP-DEV] concatenation operator
 
On Fri, 2012-06-29 at 11:47 -0700, Adi Mutu wrote:
> Sorry for the late reply, I was away for a while......
> I don't think I have dtrace because I'm on fedora.....but i'll
> research.

As said: Currently only on Solaris, MacOS and BSD. Oracle is porting
DTrace to Oracle Linux. RedHat created SystemTap which is similar, ut I
have never used it.

> If i would want to set a breakpoint after php's initialization
> process, but right before the scripts execution, so that after that I
> can set breakpoints to emalloc and efree which are executed only
> during my scripts execution where should i set it? Hope the question
> was clear enough.....

Depends on your view what "initialization" is. But execute() might be a
place which helps ... but even then you will see many things you're
probably not interested in. Only thing that helps is learning the code
structure and digging through it.

> dtrace related:
> Why have you used 'execute:return' and not concat_function:return?
> What's with the execute function?

That was a bug since I quickly edited an older script. In this case it
doesn't change the result.

johannes

Reply via email to