bug in PHPAPI char *php_str_to_str() function?

From: Date: Wed, 30 Oct 2002 11:57:43 +0000
Subject: bug in PHPAPI char *php_str_to_str() function?
Groups: php.dev 
Request: Send a blank email to php-dev+get-90317@lists.php.net to get a copy of this message
Hi, If I call the internal (string.c) php_str_to_str function PHPAPI char *php_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length) with an empty haystack string (""), it returns NULL instead of an empty (smart_)string. This could be solved by initializing the smart_str result with an empty string in stead of with {0}. Cheerio, Marc.

« previous php.dev (#90317) next »