Thanks for this post... I had the equivalent error message saying token_get_all() was invalid. I saw from php.ini that tokenizer support was compiled in, but not til I saw this post did I realize Oh! Maybe it's an extension that needs to be turned on. It was. And I needed the ctype extension too, after the tokenizer one stopped complaining. :-)