Re: Re: access to variables
| From: | Ci | Date: | Tue, 24 Apr 2007 13:18:15 +0000 |
| Subject: | Re: Re: access to variables | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28976@lists.php.net to get a copy of this message | ||
Stefan Esser napisał(a):
Hello,Is that method of getting variable correct?zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]),It is called DOCUMENT_ROOT, not DOCUMENT ROOT... It was mistake in rewriting. If I choose any php variable, such as DOCUMENT_ROOT, SERVER_NAME I got data in buffer like: '`5u', '1x'."DOCUMENT ROOT", sizeof("DOCUMENT ROOT"), &data);strcpy(buffer, Z_STRVAL_P(data);