Re: access to variables

From: Date: Tue, 24 Apr 2007 12:09:25 +0000
Subject: Re: access to variables
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-28971@lists.php.net to get a copy of this message
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

« previous php.internals (#28971) next »