[PHP-DEV] memory allocation for PG() variables.

2001-05-20 Thread Egan

I see that PG(open_basdir) holds the value of open_basedir. I need to
make a local hack to alter that value, adding a path from an Apache
environment variable.

After browsing the source for a while, I'm still uncertain on how
memory is allocated for those PG() string variables.  How should I
alter a PG() variable?  With some function like emalloc?


TIA
Egan



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] memory allocation for PG() variables.

2001-05-20 Thread Andi Gutmans

I'm pretty sure it's malloc()'ed. In any case, you'll crash pretty quickly 
if you use the wrong one :)

Andi

At 09:41 PM 5/20/2001 -0400, Egan wrote:
I see that PG(open_basdir) holds the value of open_basedir. I need to
make a local hack to alter that value, adding a path from an Apache
environment variable.

After browsing the source for a while, I'm still uncertain on how
memory is allocated for those PG() string variables.  How should I
alter a PG() variable?  With some function like emalloc?


TIA
Egan



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]