GithubHelp home page GithubHelp logo

twig-ext's Issues

Debugging twig templates

I'm the author of the Twig Eclipse Plugin and am thinking of a way to create step-through debugging support for twig templates.

As you've written both the twig c extension and also xdebug, i'm wondering if you could give me some feedback on if this would be possible.

Basically, if you're stepping through a HTTP request involving twig templates in the PHP debugger right now, when the twig template is rendered you are stepping through the generated PHP class, which is not really user-friendly.

I'm wondering if there's some way to translate those compiled php templates back to the original line numbers to work with an IDE step-debugger.

undefined symbol: zend_error_noreturn in Unknown on line 0

I have just compiled the extension with PHP 5.3.9 and I get the following error:
"Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/twig.so' - /usr/lib64/php/modules/twig.so: undefined symbol: zend_error_noreturn in Unknown on line 0"

I have compiled with the following parameters:
phpize
./configure
make
make install

And then created a "php.d/twig.ini" file with the following contents:
; Enable twig extension module
extension=twig.so

http://stackoverflow.com/questions/2556113/swig-generated-code-fails-to-run-on-php-5-3-2-undefined-symbol-zend-error-noret

I have replaced the two "zend_error_noreturn" to "zend_error" as suggested, and now it seems to not show that error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.