help with duplicate flag in string functions

From: Date: Thu, 25 Jul 2002 18:05:06 +0000
Subject: help with duplicate flag in string functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-86196@lists.php.net to get a copy of this message
Hi, I'm just starting out writing modules by reading api docs on zend.com and reading source code of existing modules. Several functions (example:) add_next_index_string(zval *array, char *str, int duplicate) have the int duplicate flag, the docs say, The flag duplicate specifies whether the string contents have to be copied to Zend internal memory. but how do I know if the string should be copied to memory, in the simple functions I'm writing it seams to make no difference whether I set this to 1 or 0 but it must do something? Thanks for your time Tony

« previous php.dev (#86196) next »