Does token_get_all values vary across PHP versions?

I had a script i was developing which parses and describes PHP code. Part of the script logic expects and processes certain token code values, for example I determined that a white space was int(308). I was started writing this script on a computer which has a newer version of PHP installed, I took the script home where I have a laptop with an older version of PHP installed and the script mysteriously stopped working! Further examination proved that the issue is caused by the fact that the token codes aren’t matching as expected… for example, 308 no longer means T_WHITE_SPACE ( it’s now 370)

the only reason I can fathom for this is the different versions of PHP installed in the two machines ( but i could be wrong)

so, does anyone know if token_get_all results vary by php version?

any and all insights welcome

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.