Re: Re: PHP_CompatInfo: warnings about PHP 4.4.x and tokenizer extension

From: Date: Sun, 15 Jan 2006 19:51:38 +0000
Subject: Re: Re: PHP_CompatInfo: warnings about PHP 4.4.x and tokenizer extension
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22544@lists.php.net to get a copy of this message
On Sat, Jan 14, 2006 at 09:37:01PM -0600, Greg Beaver wrote: > Laurent Laville wrote: [...] > > > > I get same results [1] under PHP 4.4.1 and PHP 4.4.2 > > while i get these results [2] under PHP 5.1.1 > [...] > > I have no freakin' idea why the token numbers are different in the > *same* PHP version, but I can tell you that the intenral order of > definition did indeed change in PHP 5 from PHP 4. This is actually in > the Zend engine itself, and not in the tokenizer extension, which > reflects this change rather than creates it. sorry, for my ignorance, but why do you care about the actual values? you can get the value of a token name with constant("T_WHITESPACE") and can get the reverse (token name of a value) with token_name(T_WHITESPACE). IMHO production code should never care on the literal values. I think the ordering may be dependent on the actual version of yacc that was used to create zend_language_parser.c, but I didn't investigate this any further. greetings messju > Greg > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#22544) next »