Download & Extend

Using import/export API prints unnecessary blank lines

Project:Import / Export API
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

I tried to write a module using the import export api. When I tried send a header, php complained that output already started. It turns out the minixml library has two php files which have a blank line at the end which are causing this problem. The attached simple patch fixed the problem for me and let me send headers properly.

AttachmentSize
01_remove_minixml_blank_lines.patch1.03 KB

Comments

#1

Version:master» 5.x-1.x-dev
Status:needs review» reviewed & tested by the community

That's true, and those closing PHP tags should be removed completely.

@Sunil: Please always provide patches with a root path based on the project, i.e. from inside importexportapi, not outside.

AttachmentSize
importexportapi.php-tags.patch 2.4 KB
nobody click here