konrad/twig.git
13 years agoUse the proper zend hash function here.
Derick Rethans [Thu, 14 Jul 2011 11:18:50 +0000]
Use the proper zend hash function here.

13 years agoHandle numeric keys for array elements too.
Derick Rethans [Thu, 14 Jul 2011 11:15:50 +0000]
Handle numeric keys for array elements too.

13 years agoAfter instantiating the object, call the constructor and make sure we return from...
Derick Rethans [Wed, 13 Jul 2011 17:20:47 +0000]
After instantiating the object, call the constructor and make sure we return from the function.

13 years agoAdded TWIG_CALL_Z (to use for calling a function with one argument).
Derick Rethans [Wed, 13 Jul 2011 17:20:21 +0000]
Added TWIG_CALL_Z (to use for calling a function with one argument).

13 years agoBailout when we have an exception to defer to PHP's exception handlers.
Derick Rethans [Wed, 13 Jul 2011 15:27:35 +0000]
Bailout when we have an exception to defer to PHP's exception handlers.

13 years agoSplit TWIG_CALL_S into TWIG_CALL_S and TWIG_CALL_SB for boolean returning functions.
Derick Rethans [Wed, 13 Jul 2011 15:27:10 +0000]
Split TWIG_CALL_S into TWIG_CALL_S and TWIG_CALL_SB for boolean returning functions.

13 years agoFixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass!
Derick Rethans [Fri, 8 Jul 2011 12:01:22 +0000]
Fixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass!

13 years agoUse strtolower on the method names and add them as associative keys so that they...
Derick Rethans [Fri, 8 Jul 2011 11:50:26 +0000]
Use strtolower on the method names and add them as associative keys so that they are found.

This makes method calls work.

13 years agoFixed TWIG_PROPERTY to return a NULL instead of a zval(NULL).
Derick Rethans [Thu, 7 Jul 2011 14:43:13 +0000]
Fixed TWIG_PROPERTY to return a NULL instead of a zval(NULL).

13 years agoThose are array elements and not properties.
Derick Rethans [Thu, 7 Jul 2011 13:06:18 +0000]
Those are array elements and not properties.

13 years agoReturn the value immediately.
Derick Rethans [Thu, 7 Jul 2011 13:06:03 +0000]
Return the value immediately.

13 years agoCheck the property regardless of whether tmp_item is valid/set.
Derick Rethans [Thu, 7 Jul 2011 13:05:38 +0000]
Check the property regardless of whether tmp_item is valid/set.

13 years agoWe need to use strlen on hash keys.
Derick Rethans [Thu, 7 Jul 2011 13:05:21 +0000]
We need to use strlen on hash keys.

13 years agoSplit TWIG_PROPERTY into TWIG_PROPERTY and TWIG_PROPERTY_CHAR so the array key can...
Derick Rethans [Thu, 7 Jul 2011 13:04:53 +0000]
Split TWIG_PROPERTY into TWIG_PROPERTY and TWIG_PROPERTY_CHAR so the array key can be both a zval or char.

13 years agoMade properties return properly.
Derick Rethans [Thu, 7 Jul 2011 12:06:13 +0000]
Made properties return properly.

13 years agoAdd the properties as assoc keys, so that hash_find actually works on them.
Derick Rethans [Thu, 7 Jul 2011 12:05:40 +0000]
Add the properties as assoc keys, so that hash_find actually works on them.

13 years agoCheck normal property before trying to de-mangle it.
Derick Rethans [Thu, 7 Jul 2011 12:05:12 +0000]
Check normal property before trying to de-mangle it.

13 years agoFixed TWIG_GET_ARRAY_ELEMENT_ZVAL's return value.
Derick Rethans [Thu, 7 Jul 2011 12:04:50 +0000]
Fixed TWIG_GET_ARRAY_ELEMENT_ZVAL's return value.

13 years agoFixed compiler warning.
Derick Rethans [Tue, 5 Jul 2011 11:37:26 +0000]
Fixed compiler warning.

13 years agoImplemented first bit for ArrayAccess support.
Derick Rethans [Tue, 5 Jul 2011 11:37:08 +0000]
Implemented first bit for ArrayAccess support.

13 years agoInitialise variable to NULL.
Derick Rethans [Mon, 4 Jul 2011 17:02:39 +0000]
Initialise variable to NULL.

13 years agoApparently this is needed for GCC to not optimise it out...
Derick Rethans [Mon, 4 Jul 2011 17:02:17 +0000]
Apparently this is needed for GCC to not optimise it out...

13 years ago- Remove debugging code.
Derick Rethans [Mon, 4 Jul 2011 17:02:02 +0000]
- Remove debugging code.

13 years agoOnly add the object to the cache if there is actually an object.
Derick Rethans [Mon, 4 Jul 2011 15:46:33 +0000]
Only add the object to the cache if there is actually an object.

13 years agoFix efree(NULL) when no arguments are passed in.
Derick Rethans [Mon, 4 Jul 2011 15:06:46 +0000]
Fix efree(NULL) when no arguments are passed in.

13 years agoAdded missing header and switch arguments for the return around as I got that wrong.
Derick Rethans [Thu, 30 Jun 2011 16:03:00 +0000]
Added missing header and switch arguments for the return around as I got that wrong.

13 years agoAdded support for NULL arguments to CALL_USER_FUNC_ARRAY and made CALL_BOOLEAN use...
Derick Rethans [Thu, 30 Jun 2011 16:02:27 +0000]
Added support for NULL arguments to CALL_USER_FUNC_ARRAY and made CALL_BOOLEAN use that.

13 years agoFold TWIG_GET_ARRAY_ELEMENT and TWIG_PROPERTY into one worker function.
Derick Rethans [Thu, 30 Jun 2011 16:01:34 +0000]
Fold TWIG_GET_ARRAY_ELEMENT and TWIG_PROPERTY into one worker function.

13 years agoImplement TWIG_GET_CLASS_NAME and make use of it.
Derick Rethans [Thu, 30 Jun 2011 13:25:45 +0000]
Implement TWIG_GET_CLASS_NAME and make use of it.

13 years agoInitialise ret to NULL.
Derick Rethans [Thu, 30 Jun 2011 13:25:00 +0000]
Initialise ret to NULL.

13 years agoGet rid of TWIG_RETURN_ARRAY_ELEMENT and use TWIG_GET_ARRAY_ELEMENT instead.
Derick Rethans [Thu, 30 Jun 2011 13:24:27 +0000]
Get rid of TWIG_RETURN_ARRAY_ELEMENT and use TWIG_GET_ARRAY_ELEMENT instead.

13 years agoImplemented TWIG_THROW_EXCEPTION.
Derick Rethans [Thu, 30 Jun 2011 12:21:57 +0000]
Implemented TWIG_THROW_EXCEPTION.

13 years agoImplemented TWIG_IMPLODE_ARRAY_KEYS.
Derick Rethans [Thu, 30 Jun 2011 11:15:40 +0000]
Implemented TWIG_IMPLODE_ARRAY_KEYS.

13 years agoFixed logic and implemented normal array key return.
Derick Rethans [Thu, 30 Jun 2011 10:26:25 +0000]
Fixed logic and implemented normal array key return.

13 years agoImplemented TWIG_RETURN_ARRAY_ELEMENT.
Derick Rethans [Thu, 30 Jun 2011 10:25:57 +0000]
Implemented TWIG_RETURN_ARRAY_ELEMENT.

13 years agoRe-scope variables.
Derick Rethans [Wed, 29 Jun 2011 11:47:47 +0000]
Re-scope variables.

13 years agoAdded the cache creating/fetching method in the code.
Derick Rethans [Wed, 29 Jun 2011 11:46:46 +0000]
Added the cache creating/fetching method in the code.

13 years agoAdded the cache fetching method for methods and properties.
Derick Rethans [Wed, 29 Jun 2011 11:46:00 +0000]
Added the cache fetching method for methods and properties.

13 years agoImplemented TWIG_CALL_USER_FUNC_ARRAY, TWIG_GET_STATIC_PROPERTY, TWIG_GET_ARRAY_ELEME...
Derick Rethans [Wed, 29 Jun 2011 11:44:10 +0000]
Implemented TWIG_CALL_USER_FUNC_ARRAY, TWIG_GET_STATIC_PROPERTY, TWIG_GET_ARRAY_ELEMENT_ZVAL and TWIG_GET_ARRAY_ELEMENT.

13 years ago- Implemented the strtolower function.
Derick Rethans [Wed, 29 Jun 2011 11:42:34 +0000]
- Implemented the strtolower function.

13 years ago- The extension now loads and the pseudo code is mostly ready.
Derick Rethans [Wed, 8 Jun 2011 15:24:53 +0000]
- The extension now loads and  the pseudo code is mostly ready.

13 years ago- The parse parameters line was wrong, it still had the extra one that was
Derick Rethans [Wed, 8 Jun 2011 12:28:48 +0000]
- The parse parameters line was wrong, it still had the extra one that was
  removed in Twig itself already.

13 years ago- Used the template, instead of getThis(), which wouldn't exist.
Derick Rethans [Wed, 8 Jun 2011 12:26:48 +0000]
- Used the template, instead of getThis(), which wouldn't exist.

13 years ago- Added more generated files to .gitignore
Derick Rethans [Tue, 7 Jun 2011 13:57:54 +0000]
- Added more generated files to .gitignore

13 years ago- Stubs and more implementations.
Derick Rethans [Tue, 7 Jun 2011 13:57:28 +0000]
- Stubs and more implementations.

13 years ago- Implement TWIG_INSTANCEOF_*
Derick Rethans [Tue, 7 Jun 2011 09:42:17 +0000]
- Implement TWIG_INSTANCEOF_*

13 years ago- Implemented TWIG_ARRAY_KEY_EXISTS (for normal arrays only).
Derick Rethans [Tue, 7 Jun 2011 08:29:02 +0000]
- Implemented TWIG_ARRAY_KEY_EXISTS (for normal arrays only).

13 years ago- Reduce compile warnings and errors.
Derick Rethans [Tue, 7 Jun 2011 08:22:58 +0000]
- Reduce compile warnings and errors.
- Initialize the two method names.

13 years ago- Added more files to .gitignore
Derick Rethans [Tue, 7 Jun 2011 07:59:57 +0000]
- Added more files to .gitignore

13 years ago- Fixed ARG INFO
Derick Rethans [Mon, 6 Jun 2011 15:17:45 +0000]
- Fixed ARG INFO

13 years ago- Added pseudo code
Derick Rethans [Mon, 6 Jun 2011 15:16:58 +0000]
- Added pseudo code

13 years ago- Added a .gitignore file
Derick Rethans [Fri, 3 Jun 2011 16:37:53 +0000]
- Added a .gitignore file

13 years ago- Updated with new code from Fabien's repository.
Derick Rethans [Fri, 3 Jun 2011 16:37:20 +0000]
- Updated with new code from Fabien's repository.

13 years ago- Some scaffolding implementation.
Derick Rethans [Mon, 21 Mar 2011 11:43:31 +0000]
- Some scaffolding implementation.

13 years ago- Added broken down original code.
Derick Rethans [Mon, 21 Mar 2011 11:43:15 +0000]
- Added broken down original code.

13 years ago- Added function declaration and headers.
Derick Rethans [Mon, 21 Mar 2011 11:43:00 +0000]
- Added function declaration and headers.

13 years ago- Added basic twig extension structure.
Derick Rethans [Mon, 21 Mar 2011 11:42:25 +0000]
- Added basic twig extension structure.