php - What code is this? -


please consider following code snippet:

from php-5.3.1/ext/session/session.c:

phpapi char *php_session_create_id(ps_create_sid_args) … gettimeofday(&tv, null); … /* maximum 15+19+19+10 bytes */ spprintf(&buf, 0, "%.15s%ld%ld%0.8f", remote_addr ?  remote_addr : "", tv.tv_sec, (long int)tv.tv_usec,  php_combined_lcg(tsrmls_c) * 10); … return buf; } 

i have found on internet. can't understand code this. guess implementation of php function in c++. if yes, please explain me how php calles c++ function in it?

the shocking truth php written in c. looking @ source of php itself, or need explain question further.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -