I tried to use smth like that: zval *data = NULL;
zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),
"DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);
strcpy(buffer, Z_STRVAL_P(data);
Then I write the buffer to file, but I don't get correct variable.
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
