Christopher,
>
> I want to return a string allocated by the postgresql library. However,
> PHP ends up efree()ing it I think, which causes a miscount error. How can
> I deal with this?
don't mix php allocated memory with externally allocated memory. if you
want to return a string from pgsql, you have to estrdup() it, otherwise Bad
Things (tm)
happen.
take a look at the RETURN_STRING[L] macro. the last argument determines
whether the string passed to it is duplicated by PHP before returning it to
the user.
l0t3k
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php