note 20210 added to zend.variables.array

From: Date: Tue, 26 Mar 2002 16:58:09 +0000
Subject: note 20210 added to zend.variables.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-28237@lists.php.net to get a copy of this message
Concerning all add_*_stringl() functions : they do not behave like snprintf() for instance, i.e. the length of the string is not a *maximum length* but an *exact* length, and you end up with null '\000' or '\@' caracters in your PHP string if the length parameter is greater than the actual length of the string to be associated with return_value. Yes, it is clearly written but still a trick if you are used to strncpy() or snprintf(). HTH -- http://www.php.net/manual/en/zend.variables.array.php http://master.php.net/manage/user-notes.php?action=edit+20210 http://master.php.net/manage/user-notes.php?action=delete+20210 http://master.php.net/manage/user-notes.php?action=reject+20210

« previous php.notes (#28237) next »