Re: Differences in add_index_string()
| From: | Andrei Zmievski | Date: | Tue, 18 Apr 2000 13:08:19 +0000 |
| Subject: | Re: Differences in add_index_string() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-18005@lists.php.net to get a copy of this message | ||
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