Issue Type: Bug Created: 2009-08-29T10:26:15.000+0000 Last Updated: 2010-05-01T16:04:15.000+0000 Status: Resolved Fix version(s): Reporter: A.Q Khan (aqk) Assignee: Ralph Schindler (ralph) Tags: - Zend_Reflection
Related issues: Attachments:
I am using ZendFramework version 1.9.0 and PHP 5.2.10 on Fedora 11
I am getting error message while creating an action for my project.
In order to test-create an action, I gave following commands:
$ zf create project tstproj $ cd tstproj $ zf create controller tstcnt $ zf create action actn tstcnt
Fatal error: Call to undefined function token_get_all() in .../ZendFRamework/library/Zend/ReflectioN/File.php on line 300
Can any one please help?
Posted by Benjamin Eberlei (beberlei) on 2009-08-29T10:31:39.000+0000
you dont have the tokenizer extension installed with PHP 5 then. It strikes me why this isnt bundled with PHP on Fedora, since its quite basic.
However although is not an issue of ZF, it would probably still be good to add a check for the tokenizer extension at that point and throw an exception with details.
Posted by A.Q Khan (aqk) on 2009-08-30T05:22:00.000+0000
In order to check whether the tokenizer extension is installed with PHP 5.2.9 on Fedora 11, I wrote following simple script:'; $token = token\_get\_all($contents); echo "Token : $token"; ?>
When I ran it on my server, It worked fine and gave output:
Surprisingly, the same tokenizer function,
does not work in the .../ZendFRamework/library/Zend/ReflectioN/File.php
Posted by A.Q Khan (aqk) on 2009-08-30T05:53:46.000+0000
I checked the PHP Information for PHP Version 5.2.9 . The Tokeniser Support is enabled.
Posted by Benjamin Eberlei (beberlei) on 2009-08-30T06:15:09.000+0000
This is weird :-)
Posted by Ralph Schindler (ralph) on 2009-10-16T22:29:24.000+0000
Seems as though you do not have tokenizer support enabled (is this not a default extension?)
Posted by kevin quinn (kevquinn) on 2010-05-01T16:04:14.000+0000
I have the same issue and although this has been closed, I don't see the resolution. I am working my way through the quickstart tutorial and cannot finish until I can resolve this. I have CentOS release 5.4 (Final) and Zend Framework Version: 1.10.3. I have determined that tokenizer is installed by invoking php -m | tokenizer. I get the same error "Fatal error: Call to undefined function token_get_all()". I feel like I have to get my answer from zend because configuration is different since installation. If I can find an answer i will try to come back and post it. This is the second error I ran into while trying the tutorial.
Have you found an issue?
See the Overview section for more details.