remo0ve semi-global PHP anntotation interfering with system values
[awesomized/ext-ion] / ion_private.h
index 72a39b1ba1628a9e6b706ac7132f1f29d1692b4c..342b1646867a5a1fac90335c7b682068de03cc5e 100644 (file)
@@ -1567,11 +1567,7 @@ static inline void php_ion_serialize_ex(php_ion_serializer *ser, zval *zv)
        }
 
        while (zv) {
-               /* start off with a global PHP annotation instead of repeating it all over the place */
-               if (0 == php_ion_globals_serializer_step()) {
-                       ION_STRING is;
-                       ION_CHECK(ion_writer_add_annotation(ser->writer, ion_string_assign_cstr(&is, ZEND_STRL("PHP"))));
-               }
+               php_ion_globals_serializer_step();
                php_ion_serialize_zval(ser, zv);
                php_ion_globals_serializer_exit();