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. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php