}
-static void json_create_zval(zval *z, smart_str *buf, int type, int options)
+static void json_create_zval(zval *z, smart_str *buf, int type, int options TSRMLS_DC)
{
if (type == IS_LONG)
{
zval mval;
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
add_assoc_or_property(assoc, &jp->the_zstack[jp->top], &key, &mval TSRMLS_CC);
zval mval;
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
add_next_index_zval(&jp->the_zstack[jp->top], &mval);
buf.s->len = 0;
JSON_RESET_TYPE();
jp->stack[jp->top] == MODE_ARRAY))
{
smart_str_0(&buf);
- json_create_zval(&mval, &buf, type, options);
+ json_create_zval(&mval, &buf, type, options TSRMLS_CC);
}
switch (jp->stack[jp->top]) {
if ((zval_file = zend_hash_index_find(Z_ARRVAL_P(return_value), i)) != NULL) {
if (remove_all_path) {
- basename = php_basename(Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file), NULL, 0);
+ basename = php_basename(Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file), NULL, 0 TSRMLS_CC);
file_stripped = basename->val;
file_stripped_len = basename->len;
} else if (remove_path && strstr(Z_STRVAL_P(zval_file), remove_path) != NULL) {