discrepancy tokens windows binary vs source tarball 4.3.4

php.internals

Dick van der Kaaden

22 years ago
Hi, I noticed that the php.net windows binaries for php 4.3.4 are compiled against a newer version of the token table then is in the source tarball for php 4.3.4. If you compile php 4.3.4 by hand a T_INLINE_HTML returns 308 where as the windows binary from php.net will return 309. This causes extensions using the tokenizer contants that are compiled from the 4.3.4 source to fail (or at least be incompatible) on windows systems where the binary is installed. - Dick

Dick van der Kaaden

22 years ago
Dick Van Der Kaaden wrote:
> Hi, > > I noticed that the php.net windows binaries for php 4.3.4 are compiled > against a newer version of the token table then is in the source tarball > for php 4.3.4. If you compile php 4.3.4 by hand a T_INLINE_HTML returns > 308 where as the windows binary from php.net will return 309. > > This causes extensions using the tokenizer contants that are compiled from > the 4.3.4 source to fail (or at least be incompatible) on windows systems > where the binary is installed. > > - Dick
Apparently the 4.3.4 windows binaries on php.net have been compiled with zend_language_parser.h and zend_language_parser.c that contain T_INSTANCEOF, while the source 4.3.4 tarballs contain an older version of these 2 files not containing T_INSTANCEOF. - Dick