1/2[OT]: download just the required code of 'escapeshellarg()' functionfrom cvs

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello the most respected comp.lang.php group

I have a bit of a "off topic" question:

Can i somehow download the required code to learn how the
escapeshellarg() function works?, i have no intention to compile it, i
just want to see the logic behind it & if it uses some more functions
from other code files i would like to have them downloaded too.

Let me clarify my question : I'm looking for a smart enough (bash ||
perl || what ever) script that could log into php's cvs and download the
file that holds the C code & its 'h' file for escapeshellarg(), then
analyze the code, see if other functions are required by the requested
function -- conclude in what file those function are located & download
them & their h files as well, this recursively until i will be able to
logically follow the execution of the function.

I know i ask a lot, could be fun to play with, hack who knows if i wont
find one maybe I'll develop my own script for that.

Any way if what i ask isn't possible could you at least show me how to
locate in the cvs repository the file that contains this function & how
to download it?

I thank you for all your comments.
maxim vexler.

Re: 1/2[OT]: download just the required code of 'escapeshellarg()' function from cvs

On Wed, 25 Aug 2004 21:58:54 +0000, "Maxim Vexler <hq4ever (at) 012 (dot) net
(dot) il>" <"Maxim Vexler <hq4ever (at) 012 (dot) net (dot) il>"> wrote:

Quoted text here. Click to load it

 Sounds quite a lot like you'd need a compiler to do that properly?

Quoted text here. Click to load it

andyh@server:/usr/src/php-5.0.1$ find . -name '*.c' | xargs grep escapeshellarg
../ext/standard/basic_functions.c:       PHP_FE(escapeshellarg,NULL)
../ext/standard/exec.c:/* {{{ proto string escapeshellarg(string arg)


 Looks pretty simple.

<http://www.andyhsoftware.co.uk/space Space: disk usage analysis tool

Re: 1/2[OT]: download just the required code of 'escapeshellarg()'function from cvs

Andy Hassall wrote:
Quoted text here. Click to load it

sweet enough, thank you very much.
liked the "live" code view, didn't know php's cvs site had that.

Site Timeline