Re: [PHP-DEV] Language Auto Detection / www.php.net

2003-03-19 Thread Stig S. Bakken
On Wed, 2003-03-12 at 11:31, James Cox wrote:
> Gabor Hojtsy <[EMAIL PROTECTED]> wrote:
> 
> > > is there any chance that we can revert this annoying feature?
> > > The translated documentation is always behind and partly lacks
> > > important information from the english version. I want to read
> > > the documentation in english (and I am not the only one). This
> > > is only possible if I change the url after all searches to /en/
> > > The site should at least be so intelligent to search in the 
> > > /en/ part of the manual if I search from an /en/ page.
> > 
> > This is fixed now, and works again the way it was before the
> > weekend (if you explicitly specify a language with being on a
> > manual page in a language, or using the search page with a language
> > parameter, that language is carried on).
> > 
> > We do have language specification abilities in URL shortcuts, which
> > is the short term solution, while I (or someone else) add the
> > language cookie support. See http://php.net/urlhowto
> 
> I remember adding a cookie before for something trivial (user-configurable
> css) and jimw pointing out that it tends to do silly things with caching...
> (ie, renders it useless)

There's always "Vary: Cookie", though I think the world is still lagging
in implementing it. :-(

A good way to fix the caching problem for language detection is to use
non-caching headers on pages such as /manual/ and redirect to the
language-specific page.

 - Stig


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: cvs: php4 /ext/tokenizer tokenizer.c

2003-03-19 Thread Jani Taskinen

It really doesn't matter anyhow, the HEAD of php4 only works
with ZE2 anyway.

--Jani


On Wed, 19 Mar 2003, Greg Beaver wrote:

>Hi,
>
>shouldn't the first REGISTER_LONG_CONSTANT("T_DOC_COMMENT", etc. etc.) 
>be within the #ifdef ZEND_ENGINE2 at the end of the list of 
>registration, or enclosed within an #ifdef?
>
>Greg
>
>Jani Taskinen wrote:
>> sniper   Wed Mar 19 18:10:27 2003 EDT
>> 
>>   Modified files:  
>> /php4/ext/tokenizer  tokenizer.c 
>>   Log:
>>   And this too..
>>   
>> Index: php4/ext/tokenizer/tokenizer.c
>> diff -u php4/ext/tokenizer/tokenizer.c:1.16 php4/ext/tokenizer/tokenizer.c:1.17
>> --- php4/ext/tokenizer/tokenizer.c:1.16  Wed Mar 19 18:08:58 2003
>> +++ php4/ext/tokenizer/tokenizer.c   Wed Mar 19 18:10:27 2003
>> @@ -259,6 +259,7 @@
>>  REGISTER_LONG_CONSTANT("T_LINE", T_LINE, CONST_CS | CONST_PERSISTENT);
>>  REGISTER_LONG_CONSTANT("T_FILE", T_FILE, CONST_CS | CONST_PERSISTENT);
>>  REGISTER_LONG_CONSTANT("T_COMMENT", T_COMMENT, CONST_CS | CONST_PERSISTENT);
>> +REGISTER_LONG_CONSTANT("T_DOC_COMMENT", T_DOC_COMMENT, CONST_CS | 
>> CONST_PERSISTENT);
>>  REGISTER_LONG_CONSTANT("T_OPEN_TAG", T_OPEN_TAG, CONST_CS | CONST_PERSISTENT);
>>  REGISTER_LONG_CONSTANT("T_OPEN_TAG_WITH_ECHO", T_OPEN_TAG_WITH_ECHO, CONST_CS 
>> | CONST_PERSISTENT);
>>  REGISTER_LONG_CONSTANT("T_CLOSE_TAG", T_CLOSE_TAG, CONST_CS | 
>> CONST_PERSISTENT);
>> @@ -481,6 +482,7 @@
>>  case T_CURLY_OPEN: return "T_CURLY_OPEN";
>>  case T_PAAMAYIM_NEKUDOTAYIM: return "T_DOUBLE_COLON";
>>  #ifdef ZEND_ENGINE_2
>> +case T_DOC_COMMENT: return "T_DOC_COMMENT";
>>  case T_ABSTRACT: return "T_ABSTRACT";
>>  case T_CATCH: return "T_CATCH";
>>  case T_FINAL: return "T_FINAL";
>> 
>> 
>
>

-- 
<- For Sale! ->



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php