Lines Matching refs:tracker
567 void phar_metadata_tracker_try_ensure_has_serialized_data(phar_metadata_tracker *tracker, bool pers… in phar_metadata_tracker_try_ensure_has_serialized_data() argument
571 if (tracker->str || Z_ISUNDEF(tracker->val)) { in phar_metadata_tracker_try_ensure_has_serialized_data()
579 php_var_serialize(&metadata_str, &tracker->val, &metadata_hash); in phar_metadata_tracker_try_ensure_has_serialized_data()
584 tracker->str = metadata_str.s; in phar_metadata_tracker_try_ensure_has_serialized_data()
593 zend_result phar_metadata_tracker_unserialize_or_copy(phar_metadata_tracker *tracker, zval *metadat… in phar_metadata_tracker_unserialize_or_copy() argument
597 ZEND_ASSERT(!persistent || Z_ISUNDEF(tracker->val)); in phar_metadata_tracker_unserialize_or_copy()
599 if (Z_ISUNDEF(tracker->val) || has_unserialize_options) { in phar_metadata_tracker_unserialize_or_copy()
610 ZEND_ASSERT(tracker->str != NULL); in phar_metadata_tracker_unserialize_or_copy()
612 start = ZSTR_VAL(tracker->str); in phar_metadata_tracker_unserialize_or_copy()
614 …php_unserialize_with_options(metadata, start, ZSTR_LEN(tracker->str), unserialize_options, method_… in phar_metadata_tracker_unserialize_or_copy()
624 ZVAL_COPY(metadata, &tracker->val); in phar_metadata_tracker_unserialize_or_copy()
634 bool phar_metadata_tracker_has_data(const phar_metadata_tracker *tracker, bool persistent) /* {{{ */ in phar_metadata_tracker_has_data() argument
636 ZEND_ASSERT(!persistent || Z_ISUNDEF(tracker->val)); in phar_metadata_tracker_has_data()
637 return !Z_ISUNDEF(tracker->val) || tracker->str != NULL; in phar_metadata_tracker_has_data()
644 void phar_metadata_tracker_free(phar_metadata_tracker *tracker, bool persistent) /* {{{ */ in phar_metadata_tracker_free() argument
647 if (tracker->str) { in phar_metadata_tracker_free()
648 zend_string_release(tracker->str); in phar_metadata_tracker_free()
649 tracker->str = NULL; in phar_metadata_tracker_free()
651 if (!Z_ISUNDEF(tracker->val)) { in phar_metadata_tracker_free()
656 ZVAL_COPY_VALUE(&zval_copy, &tracker->val); in phar_metadata_tracker_free()
657 ZVAL_UNDEF(&tracker->val); in phar_metadata_tracker_free()
684 void phar_metadata_tracker_clone(phar_metadata_tracker *tracker) /* {{{ */ in phar_metadata_tracker_clone() argument
686 Z_TRY_ADDREF_P(&tracker->val); in phar_metadata_tracker_clone()
687 if (tracker->str) { in phar_metadata_tracker_clone()
689 tracker->str = zend_string_dup(tracker->str, false); in phar_metadata_tracker_clone()
702 void phar_parse_metadata_lazy(const char *buffer, phar_metadata_tracker *tracker, uint32_t zip_meta… in phar_parse_metadata_lazy() argument
704 phar_metadata_tracker_free(tracker, persistent); in phar_parse_metadata_lazy()
707 tracker->str = zend_string_init(buffer, zip_metadata_len, persistent); in phar_parse_metadata_lazy()