Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Zeev Suraski
Look at add_string_to_string(). At 04:14 24-08-01, Peter Bowen wrote: I am writing an extension, and trying to figure out how to append to an existing string. I have a pointer to a zval that is a string, and a pointer to another string, along with the other string's length. I have looked for a

Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen
On 25 Aug 2001 00:18:10 +0300, Zeev Suraski wrote: At 00:06 25-08-01, Peter Bowen wrote: I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype (snip) What am I missing? Nothing I can see off hand. Where is it

Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen
I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype strcatl(zval **z, char *s, int l); strcat(zval **z, char *s); Lacking those, I tried zval **data; /* call to zend_hash_find to set data */ zval *tmp;

Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen
On 25 Aug 2001 00:32:59 +0300, Zeev Suraski wrote: Ok, I can improve add_string_to_string() to support empty strings. Zeev I have managed to avoid the problem, now that I know that I can't have an empty string as the first op, so it works. Once I release the extension, I am sure that

Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Zeev Suraski
At 00:06 25-08-01, Peter Bowen wrote: I am getting a SIGSEGV with this function. I am probably just missing something. I was hoping for a function with the prototype strcatl(zval **z, char *s, int l); strcat(zval **z, char *s); Lacking those, I tried zval **data; /* call to zend_hash_find to

[PHP-DEV] concatenating strings

2001-08-23 Thread Peter Bowen
I am writing an extension, and trying to figure out how to append to an existing string. I have a pointer to a zval that is a string, and a pointer to another string, along with the other string's length. I have looked for a ZEND_STRCAT macro, or something similar, but don't see anything. What