mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
fix windows build
This commit is contained in:
+3
-3
@@ -512,9 +512,9 @@ void TWIG_NEW(zval *object, char *class, zval *arg0, zval *arg1 TSRMLS_DC)
|
|||||||
|
|
||||||
static int twig_add_array_key_to_string(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
static int twig_add_array_key_to_string(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
||||||
{
|
{
|
||||||
APPLY_TSRMLS_FETCH();
|
|
||||||
smart_str *buf;
|
smart_str *buf;
|
||||||
char *joiner;
|
char *joiner;
|
||||||
|
APPLY_TSRMLS_FETCH();
|
||||||
|
|
||||||
buf = va_arg(args, smart_str*);
|
buf = va_arg(args, smart_str*);
|
||||||
joiner = va_arg(args, char*);
|
joiner = va_arg(args, char*);
|
||||||
@@ -582,11 +582,11 @@ char *TWIG_GET_CLASS_NAME(zval *object TSRMLS_DC)
|
|||||||
|
|
||||||
static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
||||||
{
|
{
|
||||||
APPLY_TSRMLS_FETCH();
|
|
||||||
zval *retval;
|
zval *retval;
|
||||||
char *item;
|
char *item;
|
||||||
size_t item_len;
|
size_t item_len;
|
||||||
zend_function *mptr = (zend_function *) pDest;
|
zend_function *mptr = (zend_function *) pDest;
|
||||||
|
APPLY_TSRMLS_FETCH();
|
||||||
|
|
||||||
if (!(mptr->common.fn_flags & ZEND_ACC_PUBLIC)) {
|
if (!(mptr->common.fn_flags & ZEND_ACC_PUBLIC)) {
|
||||||
return 0;
|
return 0;
|
||||||
@@ -605,11 +605,11 @@ static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, v
|
|||||||
|
|
||||||
static int twig_add_property_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
static int twig_add_property_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
|
||||||
{
|
{
|
||||||
APPLY_TSRMLS_FETCH();
|
|
||||||
zend_class_entry *ce;
|
zend_class_entry *ce;
|
||||||
zval *retval;
|
zval *retval;
|
||||||
char *class_name, *prop_name;
|
char *class_name, *prop_name;
|
||||||
zend_property_info *pptr = (zend_property_info *) pDest;
|
zend_property_info *pptr = (zend_property_info *) pDest;
|
||||||
|
APPLY_TSRMLS_FETCH();
|
||||||
|
|
||||||
if (!(pptr->flags & ZEND_ACC_PUBLIC)) {
|
if (!(pptr->flags & ZEND_ACC_PUBLIC)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user