Re: [PHP-DEV] add_assoc_stringl WAS:beginner question.... From: Thies C. Arntzen (thies <email protected>)
Date: 10/10/98

hi zeev..

Zeev Suraski wrote:

> At 18:47 09/10/98 +0200, Thies C. Arntzen wrote:
> >hi again (sorry for wasting bandwidth)
> >
> >if i run configure without the --enable-debug switch i don't get the error
> >message...
>
> It's not an error message but a warning message. PHP only tracks memory
> usage when it's compile with debug enabled, since it slows it down
> significantly. You still have a problem in your code, it's just that with
> debug disabled, it won't find that out.

i feel really bad about committing something that generates that error message in
debug-mode (ughs!)
could you please have a look at it and tell me what's wrong????

it's the php3_read_iptc function in image.c (i'm feel really stupid about it)

regards,
tc

>
>
> >but anyhow, if i use add_assoc_stringl who take care of freeing up the
> >key-buffer???
>
> You do. Often the key buffer is static so it doesn't have to be freed at all.
>
> Zeev
> --
> Zeev Suraski <zeev <email protected>>
> For a PGP public key, finger bourbon <email protected>

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>