This repository is outdated and no longer maintained.
The extension is now part of the normal Twig repository at https://github.com/twigphp/Twig
Extension for dropping into Twig
This repository is outdated and no longer maintained.
The extension is now part of the normal Twig repository at https://github.com/twigphp/Twig
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.
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
I have replaced the two "zend_error_noreturn" to "zend_error" as suggested, and now it seems to not show that error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.