public function flushContent() { $result = parent::flushContent(); $this->namespaces_are_global = false; // must not be done before calling the parent method (which may declare namespaces) $this->namespace_block_started = false; return $result; }
/** * Send to the output what has been serialized so far. The flush might * be deferred until later unless $force is true. */ protected function flush($force = false) { if (!$force && $this->delay_flush > 0) { $this->delay_flush -= 1; } elseif (!is_null($this->outputfile)) { fwrite($this->outputfile, $this->serializer->flushContent()); } else { print $this->serializer->flushContent(); // Ship data in small chunks (even though browsers often do not display anything // before the file is complete -- this might be due to syntax highlighting features // for app/xml). You may want to sleep(1) here for debugging this. ob_flush(); flush(); } }