[PHP-DEV] access to variables

2007-04-22 Thread Ci
Hello, I'm writing small patch to php mail function. I want to write in log file connection between sent message and place where mail function was executed. My idea is to determine the person who sent message. Is there any way to get this information? Regards, Ci -- PHP Internals

[PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
ariable. I'm working with php-5.2.1. Am I in a good way to solve my problem? Regards, Ci -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
Tijnema ! napisał(a): Ok, i don't know a lot about the core of PHP, but i do know the C language. First of all, i don't see you declaring buffer somewhere, i guess you did it without showing, or that it is in the core. But if it isn't both, you should do :) Also note that buffer should be declar

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
Stefan Esser napisał(a): Hello, zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data); strcpy(buffer, Z_STRVAL_P(data); It is called DOCUMENT_ROOT, not DOCUMENT ROOT... It was mistake in rewriting. If I choose any php variable, suc

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
Stefan Esser napisał(a): No. The correct way for getting the variable is zval **data; ... if (zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT"), &data)==SUCCESS) { ... strlcpy(buffer, Z_STRVAL_PP(data), sizeof(buffer)); } I tried to

Re: [PHP-DEV] Re: access to variables

2007-04-24 Thread Ci
Regards, Ci -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: access to variables

2007-04-25 Thread Ci
Antony Dovgal napisał(a): Do you want to help with the docs? That would be very much appreciated. I can help, but I don't think I'll be able to write a new documentation. You saw that my knowledge in php API wasn't too high ;P -- PHP Internals - PHP Runtime Development Mailing List To unsubscr

Re: [PHP-DEV] Re: access to variables

2007-04-25 Thread Ci
Marcus Boerger napisał(a): Have a look here: http://talks.somabo.de/200611_php_code_camp.pdf Ohh this is really good. It should be in more reach place. Regards, Ci -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php