[PHP-DEV] Global variables in extensions

2001-03-30 Thread Thomas Wentzel
Hi! I have a problem that is driving me crazy. I need to allocate some memory that will be available throughout a session. Firstly a database connection is established, but at the same time I read all relevant information about the db (records, attributes, typedeclarations and such and such).

Re: [PHP-DEV] Global variables in extensions

2001-03-30 Thread Zeev Suraski
How are you loading your extension? If you're using dl(), forget about retaining any type of information in between requests... You must use extension= in php.ini Zeev At 11:58 30/3/2001, Thomas Wentzel wrote: Hi! I have a problem that is driving me crazy. I need to allocate some memory

[Fwd: Re: [PHP-DEV] Global variables in extensions]

2001-03-30 Thread Thomas Wentzel
missed the mailinglist :) Original Message Subject: Re: [PHP-DEV] Global variables in extensions Date: Fri, 30 Mar 2001 13:16:36 +0200 From: Thomas Wentzel [EMAIL PROTECTED] Organization: 2M Electronic A/S To: Zeev Suraski [EMAIL PROTECTED] References: [EMAIL PROTECTED] Hi

Re: [PHP-DEV] Global variables in extensions

2001-03-30 Thread Zeev Suraski
Ah, no, it's not necessary. I thought you were talking about a dynamic extension. What exactly isn't working? Is something that you're storing in a static/global variable not retained by the time of the next request? A couple of things that are worth mentioning: - You can only set the

Re: [PHP-DEV] Global variables in extensions

2001-03-30 Thread Thomas Wentzel
Thank you very much for your answer, Zeev. It really helped me understand (to some extend) what is going on. Yes! I considered global variables to be more global than the case being :( Well I guess I should go for the shared memory approach then, but how? Reading about shmget in the man-page