#33857 [Com]: token_get_all() inconsistent results?
| From: | phpbugs at majiclab dot com | Date: | Mon, 01 Aug 2005 19:45:23 +0000 |
| Subject: | #33857 [Com]: token_get_all() inconsistent results? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82775@lists.php.net to get a copy of this message | ||
ID: 33857
Comment by: phpbugs at majiclab dot com
Reported By: sr at brightlight dot ch
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Mac OS X 10.4.1
PHP Version: 5.0.4
New Comment:
I am experiencing similar problems on my Mac OSX 10.4.2 system
(although I don't think it's just Mac related, just a
coincidence probably). Anyway, I am downloading the CVS now
and will try it out in the next couple days. The problem
seems to go away for a bit after restarting Apache, and comes
up randomly, so I might "think" it's gone for a couple days,
and then it might show up later. So I'll try it out for a
couple days and see what happens.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2005-07-26 10:27:24] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-07-26 00:04:18] sr at brightlight dot ch
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 this bug report at http://bugs.php.net/?id=33857&edit=1