Is there any way to get all the function name being called in a

Is there any way to get all the function name being called in a

am 23.10.2009 08:24:34 von satya narayan

--001636ed677cfd68f2047694433b
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I am working on reverse engineering for a web project. I was trying to know
that, is there any way(function by PHP, Zend, extension etc)
to find out how many function has been called to perform a task.

If no, can you suggest is it possible/feasible or not?


Thanks in advance
--
Satya
Bangalore.

--001636ed677cfd68f2047694433b--

RE: Is there any way to get all the function name beingcalled in a process?

am 23.10.2009 10:27:25 von Andrea Giammarchi

--_e159e058-ce66-43f6-8b7b-feb0cdd9783f_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


http://uk3.php.net/manual/en/function.get-defined-functions. php
get_defined_functions

Regards

> Date: Fri=2C 23 Oct 2009 11:54:34 +0530
> From: astra.satya1@gmail.com
> To: php-general@lists.php.net
> Subject: [PHP] Is there any way to get all the function name being called=
in a process?
>=20
> Hi=2C
>=20
> I am working on reverse engineering for a web project. I was trying to kn=
ow
> that=2C is there any way(function by PHP=2C Zend=2C extension etc)
> to find out how many function has been called to perform a task.
>=20
> If no=2C can you suggest is it possible/feasible or not?
>=20
>=20
> Thanks in advance
> --=20
> Satya
> Bangalore.
=20
____________________________________________________________ _____
Keep your friends updated=97even when you=92re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_5:092=
010=

--_e159e058-ce66-43f6-8b7b-feb0cdd9783f_--

RE: Is there any way to get all the function name beingcalled in a process?

am 23.10.2009 12:41:13 von Ashley Sheridan

--=-efe7INg4RQMJVjHdzUxO
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, 2009-10-23 at 10:27 +0200, Andrea Giammarchi wrote:

> http://uk3.php.net/manual/en/function.get-defined-functions. php
> get_defined_functions
>=20
> Regards
>=20
> > Date: Fri, 23 Oct 2009 11:54:34 +0530
> > From: astra.satya1@gmail.com
> > To: php-general@lists.php.net
> > Subject: [PHP] Is there any way to get all the function name being call=
ed in a process?
> >=20
> > Hi,
> >=20
> > I am working on reverse engineering for a web project. I was trying to =
know
> > that, is there any way(function by PHP, Zend, extension etc)
> > to find out how many function has been called to perform a task.
> >=20
> > If no, can you suggest is it possible/feasible or not?
> >=20
> >=20
> > Thanks in advance
> > --=20
> > Satya
> > Bangalore.
> =20
> ____________________________________________________________ _____
> Keep your friends updatedâ€=94even when youâ€=99re not signed in.
> http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/=
social-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL: en-xm:SI_SB_5:0=
92010


That won't do what the OP asked, it will just return a list of all the
functions defined, which could be a lot more than is actually being used
in a process, such as in the case of included libraries of functions.

Would some form of PHP debugger help here? I've not used any debuggers
before, but I would imagine that this is something which could be
achieved quite easily with one.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-efe7INg4RQMJVjHdzUxO--

RE: Is there any way to get all the function name beingcalled in a process?

am 23.10.2009 13:43:44 von Andrea Giammarchi

--_80134578-cf8e-470b-8dcb-5dcd4335359c_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



> That won't do what the OP asked=2C it will just return a list of all the
> functions defined=2C which could be a lot more than is actually being use=
d
> in a process=2C such as in the case of included libraries of functions.

uhm=2C right=2C I guess APD then:
http://uk3.php.net/manual/en/book.apd.php

Regards
=20
____________________________________________________________ _____
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_1:092=
010=

--_80134578-cf8e-470b-8dcb-5dcd4335359c_--

Re: Is there any way to get all the function name being called

am 23.10.2009 13:55:13 von satya narayan

--001636d340b1744160047698e2b5
Content-Type: text/plain; charset=ISO-8859-1

Thank a lot.

APD is just doing what I was looking for.




On Fri, Oct 23, 2009 at 5:13 PM, Andrea Giammarchi wrote:

>
> > That won't do what the OP asked, it will just return a list of all the
> > functions defined, which could be a lot more than is actually being used
> > in a process, such as in the case of included libraries of functions.
>
> uhm, right, I guess APD then:
> http://uk3.php.net/manual/en/book.apd.php
>
> Regards
>
> ------------------------------
> Windows Live: Keep your friends up to date with what you do online.
>



--
Satya
Bangalore.

--001636d340b1744160047698e2b5--

Re: Is there any way to get all the function name being called

am 23.10.2009 14:08:59 von kranthi

even APD is not up to the task....

xdebug trace http://devzone.zend.com/article/2871 is sufficient, but
the output will be in a separate file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Is there any way to get all the function name being called

am 23.10.2009 16:31:10 von Eddie Drapkin

There's xdebug, as mentioned, that'll do it as an extension.

What you REALLY probably are looking for is http://php.net/debug_backtrace

And what kind of reverse engineering would you be doing without
reflection? ( http://php.net/reflection ) ;]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Is there any way to get all the function name beingcalled in a process?

am 23.10.2009 17:10:36 von Andrea Giammarchi

--_54028c15-c6de-49bf-b557-687cf02c277e_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



> even APD is not up to the task....
>=20
> xdebug trace http://devzone.zend.com/article/2871 is sufficient=2C but
> the output will be in a separate file.



> Thank a lot.
>=20
> APD is just doing what I was looking for.
>=20
> --=20
> Satya
> Bangalore.

Regards
=20
____________________________________________________________ _____
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see- it-in-action/so=
cial-network-basics.aspx?ocid=3DPID23461::T:WLMTAGL:ON:WL:en -xm:SI_SB_1:092=
010=

--_54028c15-c6de-49bf-b557-687cf02c277e_--