{
php_ion_reader_options *opt = php_ion_obj(reader_options, Z_OBJ_P(ZEND_THIS));
zend_bool ret_sys_val = false, skip_validation = false;
- zend_long ch_nl = 0xa, max_depth = 10, max_ann = 10, max_ann_buf = 512,
- sym_thr = 0x4000, uval_thr = 0x4000, chunk_thr = 0x4000, alloc_pgsz = 0x10000;
+ zend_long max_depth = 10, max_ann = 10, ann_buf_siz = 0x4000, tmp_buf_siz = 0x4000;
PTR_CHECK(opt);
- ZEND_PARSE_PARAMETERS_START(0, 13)
+ ZEND_PARSE_PARAMETERS_START(0, 9)
Z_PARAM_OPTIONAL
// public readonly ?\ion\Catalog $catalog = null,
Z_PARAM_OBJ_OF_CLASS_OR_NULL(opt->cat, ce_Catalog)
Z_PARAM_OBJ_OF_CLASS_OR_NULL(opt->cb, zend_ce_closure);
// public readonly bool $returnSystemValues = false,
Z_PARAM_BOOL(ret_sys_val)
- // public readonly int $newLine = 0xa,
- Z_PARAM_LONG(ch_nl)
// public readonly int $maxContainerDepth = 10,
Z_PARAM_LONG(max_depth)
// public readonly int $maxAnnotations = 10,
Z_PARAM_LONG(max_ann)
- // public readonly int $maxAnnotationBuffered = 512,
- Z_PARAM_LONG(max_ann_buf)
- // public readonly int $symbolThreshold = 0x4000,
- Z_PARAM_LONG(sym_thr)
- // public readonly int $userValueThreshold = 0x4000,
- Z_PARAM_LONG(uval_thr)
- // public readonly int $chunkThreshold = 0x4000,
- Z_PARAM_LONG(chunk_thr)
- // public readonly int $allocationPageSize = 0x10000,
- Z_PARAM_LONG(alloc_pgsz)
+ // public readonly int $annotationBufferSize = 0x4000,
+ Z_PARAM_LONG(ann_buf_siz)
+ // public readonly int $tempBufferSize = 0x4000,
+ Z_PARAM_LONG(tmp_buf_siz)
// public readonly bool $skipCharacterValidation = false,
Z_PARAM_BOOL(skip_validation)
ZEND_PARSE_PARAMETERS_END();
}
zend_update_property_bool(opt->std.ce, &opt->std, ZEND_STRL("returnSystemValues"),
opt->opt.return_system_values = ret_sys_val);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("newLine"),
- opt->opt.new_line_char = (int) ch_nl);
zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("maxContainerDepth"),
opt->opt.max_container_depth = (SIZE) max_depth);
zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("maxAnnotations"),
opt->opt.max_annotation_count = (SIZE) max_ann);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("maxAnnotationBuffered"),
- opt->opt.max_annotation_buffered = (SIZE) max_ann_buf);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("symbolThreshold"),
- opt->opt.symbol_threshold = (SIZE) sym_thr);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("userValueThreshold"),
- opt->opt.user_value_threshold = (SIZE) uval_thr);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("chunkThreshold"),
- opt->opt.chunk_threshold = (SIZE) chunk_thr);
- zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("allocationPageSize"),
- opt->opt.allocation_page_size = (SIZE) alloc_pgsz);
+ zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("annotationBufferSize"),
+ opt->opt.max_annotation_buffered = (SIZE) ann_buf_siz);
+ zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("tempBufferSize"),
+ opt->opt.chunk_threshold = opt->opt.user_value_threshold = opt->opt.symbol_threshold = (SIZE) tmp_buf_siz);
zend_update_property_long(opt->std.ce, &opt->std, ZEND_STRL("skipCharacterValidation"),
opt->opt.skip_character_validation = (SIZE) skip_validation);
}
PTR_CHECK(obj);
zend_bool binary = false, compact_floats = false, escape = false, pretty = false,
- tabs = true, small_cntr_inl = true, suppress_sys = false, flush = false;
- zend_long indent = 2, max_depth = 10, max_ann = 10, temp = 0x4000, alloc = 0x10000;
- ZEND_PARSE_PARAMETERS_START(0, 15)
+ tabs = true, flush = false;
+ zend_long indent = 2, max_depth = 10, max_ann = 10, temp = 0x4000;
+ ZEND_PARSE_PARAMETERS_START(0, 12)
Z_PARAM_OPTIONAL
//public readonly ?\ion\Catalog $catalog = null,
Z_PARAM_OBJ_OF_CLASS_OR_NULL(obj->cat, ce_Catalog)
Z_PARAM_BOOL(tabs)
//public readonly int $indentSize = 2,
Z_PARAM_LONG(indent)
- //public readonly bool $smallContainersInline = true,
- Z_PARAM_BOOL(small_cntr_inl)
- //public readonly bool $suppressSystemValues = false,
- Z_PARAM_BOOL(suppress_sys)
//public readonly bool $flushEveryValue = false,
Z_PARAM_BOOL(flush)
//public readonly int $maxContainerDepth = 10,
Z_PARAM_LONG(max_ann)
//public readonly int $tempBufferSize = 0x4000,
Z_PARAM_LONG(temp)
- //public readonly int $allocationPageSize = 0x10000,
- Z_PARAM_LONG(alloc)
ZEND_PARSE_PARAMETERS_END();
if (obj->cat) {
obj->opt.indent_with_tabs = tabs);
zend_update_property_long(obj->std.ce, &obj->std, ZEND_STRL("indentSize"),
obj->opt.indent_size = (SIZE) indent);
- zend_update_property_bool(obj->std.ce, &obj->std, ZEND_STRL("smallContainersInline"),
- obj->opt.small_containers_in_line = small_cntr_inl);
- zend_update_property_bool(obj->std.ce, &obj->std, ZEND_STRL("suppressSystemValues"),
- obj->opt.supress_system_values = suppress_sys);
zend_update_property_bool(obj->std.ce, &obj->std, ZEND_STRL("flushEveryValue"),
obj->opt.flush_every_value = flush);
zend_update_property_long(obj->std.ce, &obj->std, ZEND_STRL("maxContainerDepth"),
obj->opt.max_annotation_count = (SIZE) max_ann);
zend_update_property_long(obj->std.ce, &obj->std, ZEND_STRL("tempBufferSize"),
obj->opt.temp_buffer_size = (SIZE) temp);
- zend_update_property_long(obj->std.ce, &obj->std, ZEND_STRL("allocationPageSize"),
- obj->opt.allocation_page_size = (SIZE) alloc);
}
static ZEND_METHOD(ion_Writer_Writer, writeNull)
{
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: fd212a098afd1b87f56162838ed409653a9c7a69 */
+ * Stub hash: 6dcf67bb6d8b532d66b378544582f68e2508b7b2 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ion_serialize, 0, 1, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, data, IS_MIXED, 0)
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, decimalContext, ion\\Decimal\\Context, 1, "null")
ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, onContextChange, Closure, 1, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, returnSystemValues, _IS_BOOL, 0, "false")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, newLine, IS_LONG, 0, "0xa")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxContainerDepth, IS_LONG, 0, "10")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxAnnotations, IS_LONG, 0, "10")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxAnnotationBuffered, IS_LONG, 0, "512")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, symbolThreshold, IS_LONG, 0, "0x4000")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, userValueThreshold, IS_LONG, 0, "0x4000")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, chunkThreshold, IS_LONG, 0, "0x4000")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allocationPageSize, IS_LONG, 0, "0x10000")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, annotationBufferSize, IS_LONG, 0, "0x4000")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tempBufferSize, IS_LONG, 0, "0x4000")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, skipCharacterValidation, _IS_BOOL, 0, "false")
ZEND_END_ARG_INFO()
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, prettyPrint, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, indentTabs, _IS_BOOL, 0, "true")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, indentSize, IS_LONG, 0, "2")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, smallContainersInline, _IS_BOOL, 0, "true")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, suppressSystemValues, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flushEveryValue, _IS_BOOL, 0, "false")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxContainerDepth, IS_LONG, 0, "10")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxAnnotations, IS_LONG, 0, "10")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, tempBufferSize, IS_LONG, 0, "0x4000")
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allocationPageSize, IS_LONG, 0, "0x10000")
ZEND_END_ARG_INFO()
#define arginfo_class_ion_Writer_Writer_writeNull arginfo_class_ion_Writer_writeNull
};
+static const zend_function_entry class_ion_Exception_methods[] = {
+ ZEND_FE_END
+};
+
+
static const zend_function_entry class_ion_Type_methods[] = {
ZEND_FE_END
};
return class_entry;
}
+static zend_class_entry *register_class_ion_Exception(zend_class_entry *class_entry_Exception)
+{
+ zend_class_entry ce, *class_entry;
+
+ INIT_NS_CLASS_ENTRY(ce, "ion", "Exception", class_ion_Exception_methods);
+ class_entry = zend_register_internal_class_ex(&ce, class_entry_Exception);
+
+ return class_entry;
+}
+
static zend_class_entry *register_class_ion_Type(void)
{
zend_class_entry *class_entry = zend_register_internal_enum("ion\\Type", IS_LONG, class_ion_Type_methods);
return class_entry;
}
-static zend_class_entry *register_class_ion_Catalog(zend_class_entry *class_entry_ion_Countable)
+static zend_class_entry *register_class_ion_Catalog(zend_class_entry *class_entry_Countable)
{
zend_class_entry ce, *class_entry;
INIT_NS_CLASS_ENTRY(ce, "ion", "Catalog", class_ion_Catalog_methods);
class_entry = zend_register_internal_class_ex(&ce, NULL);
- zend_class_implements(class_entry, 1, class_entry_ion_Countable);
+ zend_class_implements(class_entry, 1, class_entry_Countable);
zval property_symbolTables_default_value;
ZVAL_EMPTY_ARRAY(&property_symbolTables_default_value);
zend_declare_typed_property(class_entry, property_returnSystemValues_name, &property_returnSystemValues_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
zend_string_release(property_returnSystemValues_name);
- zval property_newLine_default_value;
- ZVAL_UNDEF(&property_newLine_default_value);
- zend_string *property_newLine_name = zend_string_init("newLine", sizeof("newLine") - 1, 1);
- zend_declare_typed_property(class_entry, property_newLine_name, &property_newLine_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_newLine_name);
-
zval property_maxContainerDepth_default_value;
ZVAL_UNDEF(&property_maxContainerDepth_default_value);
zend_string *property_maxContainerDepth_name = zend_string_init("maxContainerDepth", sizeof("maxContainerDepth") - 1, 1);
zend_declare_typed_property(class_entry, property_maxAnnotations_name, &property_maxAnnotations_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
zend_string_release(property_maxAnnotations_name);
- zval property_maxAnnotationBuffered_default_value;
- ZVAL_UNDEF(&property_maxAnnotationBuffered_default_value);
- zend_string *property_maxAnnotationBuffered_name = zend_string_init("maxAnnotationBuffered", sizeof("maxAnnotationBuffered") - 1, 1);
- zend_declare_typed_property(class_entry, property_maxAnnotationBuffered_name, &property_maxAnnotationBuffered_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_maxAnnotationBuffered_name);
-
- zval property_symbolThreshold_default_value;
- ZVAL_UNDEF(&property_symbolThreshold_default_value);
- zend_string *property_symbolThreshold_name = zend_string_init("symbolThreshold", sizeof("symbolThreshold") - 1, 1);
- zend_declare_typed_property(class_entry, property_symbolThreshold_name, &property_symbolThreshold_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_symbolThreshold_name);
-
- zval property_userValueThreshold_default_value;
- ZVAL_UNDEF(&property_userValueThreshold_default_value);
- zend_string *property_userValueThreshold_name = zend_string_init("userValueThreshold", sizeof("userValueThreshold") - 1, 1);
- zend_declare_typed_property(class_entry, property_userValueThreshold_name, &property_userValueThreshold_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_userValueThreshold_name);
-
- zval property_chunkThreshold_default_value;
- ZVAL_UNDEF(&property_chunkThreshold_default_value);
- zend_string *property_chunkThreshold_name = zend_string_init("chunkThreshold", sizeof("chunkThreshold") - 1, 1);
- zend_declare_typed_property(class_entry, property_chunkThreshold_name, &property_chunkThreshold_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_chunkThreshold_name);
-
- zval property_allocationPageSize_default_value;
- ZVAL_UNDEF(&property_allocationPageSize_default_value);
- zend_string *property_allocationPageSize_name = zend_string_init("allocationPageSize", sizeof("allocationPageSize") - 1, 1);
- zend_declare_typed_property(class_entry, property_allocationPageSize_name, &property_allocationPageSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_allocationPageSize_name);
+ zval property_annotationBufferSize_default_value;
+ ZVAL_UNDEF(&property_annotationBufferSize_default_value);
+ zend_string *property_annotationBufferSize_name = zend_string_init("annotationBufferSize", sizeof("annotationBufferSize") - 1, 1);
+ zend_declare_typed_property(class_entry, property_annotationBufferSize_name, &property_annotationBufferSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
+ zend_string_release(property_annotationBufferSize_name);
+
+ zval property_tempBufferSize_default_value;
+ ZVAL_UNDEF(&property_tempBufferSize_default_value);
+ zend_string *property_tempBufferSize_name = zend_string_init("tempBufferSize", sizeof("tempBufferSize") - 1, 1);
+ zend_declare_typed_property(class_entry, property_tempBufferSize_name, &property_tempBufferSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
+ zend_string_release(property_tempBufferSize_name);
zval property_skipCharacterValidation_default_value;
ZVAL_UNDEF(&property_skipCharacterValidation_default_value);
zend_declare_typed_property(class_entry, property_indentSize_name, &property_indentSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
zend_string_release(property_indentSize_name);
- zval property_smallContainersInline_default_value;
- ZVAL_UNDEF(&property_smallContainersInline_default_value);
- zend_string *property_smallContainersInline_name = zend_string_init("smallContainersInline", sizeof("smallContainersInline") - 1, 1);
- zend_declare_typed_property(class_entry, property_smallContainersInline_name, &property_smallContainersInline_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
- zend_string_release(property_smallContainersInline_name);
-
- zval property_suppressSystemValues_default_value;
- ZVAL_UNDEF(&property_suppressSystemValues_default_value);
- zend_string *property_suppressSystemValues_name = zend_string_init("suppressSystemValues", sizeof("suppressSystemValues") - 1, 1);
- zend_declare_typed_property(class_entry, property_suppressSystemValues_name, &property_suppressSystemValues_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_BOOL));
- zend_string_release(property_suppressSystemValues_name);
-
zval property_flushEveryValue_default_value;
ZVAL_UNDEF(&property_flushEveryValue_default_value);
zend_string *property_flushEveryValue_name = zend_string_init("flushEveryValue", sizeof("flushEveryValue") - 1, 1);
zend_declare_typed_property(class_entry, property_tempBufferSize_name, &property_tempBufferSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
zend_string_release(property_tempBufferSize_name);
- zval property_allocationPageSize_default_value;
- ZVAL_UNDEF(&property_allocationPageSize_default_value);
- zend_string *property_allocationPageSize_name = zend_string_init("allocationPageSize", sizeof("allocationPageSize") - 1, 1);
- zend_declare_typed_property(class_entry, property_allocationPageSize_name, &property_allocationPageSize_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
- zend_string_release(property_allocationPageSize_name);
-
return class_entry;
}