ID:               41002
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tim dot whitlock at whiteinteractive dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Mac OS X 10.4
 PHP Version:      4.4.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2007-04-05 11:54:26] tim dot whitlock at whiteinteractive dot com

Description:
------------
I have seen a report of this in bug #29761, but it is *NOT FIXED*
Actually I am on 4.4.4, but nothing in changelog about a fix in 4.4.5,
or 4.4.6.

*Sometimes* token_get_all breaks T_OPEN_TAG into three separate
entities. This is inconsistent, and I don't know what variable causes
the glitch, (memory?)

Restarting web server fixes temporarily, but its back after a number of
requests. I might have to refresh web page 50 times to see it break, but
it will break eventually.

This glitch is fixable in PHP client code, but annoying and
unnecessary


Reproduce code:
---------------
print_r( token_get_all( '<?php ' ) );

Expected result:
----------------
Array
(
    [0] => Array
        (
            [0] => 354
            [1] => <?php 
        )

)


// Where 354 === T_OPEN_TAG

Actual result:
--------------
Array
(
    [0] => <
    [1] => ?
    [2] => Array
        (
            [0] => 305
            [1] => php 
        )

)


// Where 305 === T_STRING


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41002&edit=1

Reply via email to