Mantis - Quercus
Viewing Issue Advanced Details
4119 minor always 07-13-10 08:16 07-13-10 08:16
dancras  
 
normal  
new 4.0.8  
open  
none    
none  
0004119: token_get_all() parses interface as a string
When using token_get_all() with a file containing an interface declaration, in PHP on apache the token index matches T_INTERFACE, but on quercus it matches T_STRING

Replicate using the following code:

<?php

echo "Interface: ".T_INTERFACE;
echo "
Class: ".T_CLASS;
echo "
String: ".T_STRING;
    
$class = "
<?php
class MyClass {

}";

$interface = "
<?php
interface MyInterface {

}";

echo "

Class Tokens:
";

print_r(token_get_all($class));

echo "

Interface Tokens:
";

print_r(token_get_all($interface));

?>

There are no notes attached to this issue.