Re: [PHP-DEV] Differences in add_index_string() From: Andrei Zmievski (andrei <email protected>)
Date: 04/18/00

On Mon, 17 Apr 2000, Brad Atkins wrote:
> I was creating an array for one of my functions and looked in apidoc.txt
> (included with RC1) and the file specifies:
>
> add_index_string(return_value,index,str)
>
> I attempt to use that function and get an error about too few actual
> parameters.
>
> ZEND_API.c defines the function as:
>
> add_index_string(zval *arg, uint index, char *str, int duplicate)
>
> Is the duplicate variable something that was just added?

apidoc.txt is pretty old.

'duplicate' parameter tells the function to add a copy of the string
instead of the string itself.

> I understand what's going on, and assume it's just that the docs haven't
> been updated. The same is in effect for the add_index_stringl()
>

Yes.

-Andrei

Give a man a fish; you have fed him for today. Teach a man to fish;
and you can sell him fishing equipment.
                                        -Author unknown

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>