Re: http://bugs.php.net/bugs.php?id=2220
| From: | Sascha Schumann | Date: | Sun, 11 Jun 2000 18:28:19 +0000 |
| Subject: | Re: http://bugs.php.net/bugs.php?id=2220 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21037@lists.php.net to get a copy of this message | ||
On Sun, 11 Jun 2000, Zeev Suraski wrote:
> On Sun, 11 Jun 2000, Sascha Schumann wrote:
>
> > On Sun, 11 Jun 2000, Zeev Suraski wrote:
> >
> > >
> > > This is an old report for the leak/dl() bug that came up a few days ago.
> > >
> > > Sascha - unless I'm mistaken, there's no longer a generic way of finding
> > > whether we're during a compilation of a dynamic module, right?
> >
> > In what context? In the source files or where?
>
> Yes. We'd have to #define the _emalloc() macro to somehow avoid keeping
> static references to __FILE__ if we're compiling a dynamically loadable
> module.
How about simply strdup'ing the strings, so that you don't
keep any static references at all?
- Sascha