1 Jul 2006 01:24
[PHP-DEV] Re: TSRMLS_D/C persistence
l0t3k <cshmoove <at> hotmail.com>
2006-06-30 23:24:54 GMT
2006-06-30 23:24:54 GMT
Andrew, i've only skimmed your question, and at the risk of being irrelevant ... check out http://cvs.php.net/viewvc.cgi/php-src/ext/unicode/property.c?revision=1.14&view=markup and search for PHP_FUNCTION(char_enum_names). Pay attention to the macro TSRMLS_SET_CTX(ectx.thread_ctx)in that function, and the macro TSRMLS_FETCH_FROM_CTX(ctx->thread_ctx);in the callback php_enum_char_type_range()l0t3k ""Andrew MatherBt"" <an.dromeda <at> btconnect.com> wrote in message news:200606302354.02272.an.dromeda <at> btconnect.com... > > How long are the TSRMLS_D/C parameters good for? > > Can the resultant tsrm_ls value be safely stored? > > I presume the answer is no, and these paramters > should be passed in each time a function is called, > but I would be curious to know differently, if for example > it could be passed in once at (external object) creation time, > and that object could use the trsm_ls directly, rather than the > TSRMLS_D/C semantics. > > ... >(Continue reading)
Thanks,
Matt
----- Original Message -----
> Hi all,
>
> I'm on Windows and haven't tried submitting a patch before, so I JUST now
> installed WinCvs since I don't think you want just a diff of my local
file.
> I used PHP_5_1 since: 5.1's the "regular" download I started working on;
if
> you use it, I assume this can go in 5.1; and I don't know what to do.
RSS Feed