From:             sr at brightlight dot ch
Operating system: Mac OS X 10.4.1
PHP version:      5.0.4
PHP Bug Type:     Unknown/Other Function
Bug description:  token_get_all() inconsistent results?

Description:
------------
Obviously the same problem as in Bug #33093, which is set to 
bogus (no comment).

When I tokenize the very same code over and over again I 
happen to get different tokens. About 9 times out of 10 I 
get:
Token'<',
Token '?',
Token T_STRING 'php',
Token T_WHITESPACE '\n',

About 1 time out of 10 Times I get
Token T_OPEN_TAG '<?php\n',

So the first case happens far more often.

By saying the same code btw. I mean that I put the 
tokenizing function into a for-loop. So the code doesn't 
even get touched.
PHP 5.0.4 (entropy.ch's binary), Apache 2.0.54, Mac OS X 
10.4.1 PPC.
The tokenized files encoding (I tried UTF-8 no BOM and ISO-
Latin-1) doesn't seem to play a role. Line endings are 
always Unix-style.


-- 
Edit bug report at http://bugs.php.net/?id=33857&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33857&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33857&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33857&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33857&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33857&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33857&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33857&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33857&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33857&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33857&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33857&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33857&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33857&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33857&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33857&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33857&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33857&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33857&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33857&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33857&r=mysqlcfg

Reply via email to