[PHP-DEV] Segmentationfault in PHP extension

2004-09-08 Thread Jan Gerritsen
has the time to have a look at my code, I don’t know where to look anymore. Thx Jan Gerritsen This is the relevant Code of my extension, the PHP script i use for testing is below. The function which get called first is PHP_FUNCTION(url_quote_data). static void url_quote_string_wrapper(char

Re: [PHP-DEV] Writeing OO exteions for PHP 4.3

2004-09-03 Thread Jan Gerritsen
Hi, If I understand you correctly you can put this pointer inside of a resource container and return the resource container to user space as the return value from url_init(). Then, from url_set_string() you accept the resource as a parameter and extract the pointer to your CPP instance of whatever

[PHP-DEV] Writeing OO exteions for PHP 4.3

2004-09-03 Thread Jan Gerritsen
fetch url */ if( url != NULL ) { url->set_string(“test”); RETURN_TRUE; } RETURN_FALSE; } I could not work out how to do this, by studying the code of the OO extensions I mentioned. Can someone give me a hint, ore some example code, h