IL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: Re: [PHP-DEV] PHP Extension Memory Problems
Date: Wed, 21 Apr 2004 22:04:19 +0100
>
> What can I do in my extension to unset or clear the variable so that it
> doesnt have to be done in the PHP script?
> if (!PZVAL_IS_REF(Arr))
&
>
> What can I do in my extension to unset or clear the variable so that it
> doesn’t have to be done in the PHP script?
> if (!PZVAL_IS_REF(Arr))
> {
>zend_error(E_ERROR, "The Arr parameter must be passed by reference");
^^^
Don't use E_ERROR in an extension unless it wou
I have two problems with a PHP extension that I wrote that creates PHP
arrays.
1) If I call my extension function that creates PHP arrays and returns them,
unless I either unset or assign it to the empty string the process acts
like there is a memory leak.
PHP:
For ($I = 0; $I < $count; $I+