Calc_Reader.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Utility class to access OpenDocument spreadsheets read-only
  4. *
  5. * Requires PHP 5.0.3
  6. *
  7. * @version $Id: Calc_Reader.php,v 1.1 2005-02-27 10:58:44 marand Exp $
  8. * @license CeCILL 2.0
  9. * @copyright 2005 Ouest Systemes Informatiques
  10. */
  11. $erCalc_Reader = error_reporting(E_ALL | E_STRICT);
  12. /**
  13. * Utility class to access OpenDocument spreadsheets read-only
  14. */
  15. class Calc_Reader
  16. {
  17. const NS_TABLE = "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
  18. const NS_OFFICE = "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
  19. /**
  20. * @var DOMDocument $xml
  21. */
  22. public $xml;
  23. /**
  24. * @var DOMXPath $xpath
  25. */
  26. public $xpath;
  27. function __construct($path)
  28. {
  29. $this->xml = new DOMDocument();
  30. $this->xml->preserveWhiteSpace = FALSE;
  31. $this->xml->load($path);
  32. $this->xpath = new DOMXPath($this->xml);
  33. $this->xpath->registerNameSpace('office', Calc_Reader::NS_OFFICE);
  34. $this->xpath->registerNameSpace('table', Calc_Reader::NS_TABLE);
  35. }
  36. /**
  37. * Return the rows in the spreadsheet as a DOMNodeList
  38. *
  39. * @return DOMNodeList
  40. */
  41. function getRows ()
  42. {
  43. $query = '//table:table-row';
  44. $ret = $this->xpath->query($query);
  45. unset($query);
  46. return $ret;
  47. }
  48. }
  49. error_reporting($erCalc_Reader);
  50. unset ($erCalc_Reader);
PANIC: session(release): write data/sessions/7/e/7ec6591be27fbfdb: no space left on device

PANIC

session(release): write data/sessions/7/e/7ec6591be27fbfdb: no space left on device
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/session@v1.0.3/session.go:204 (0xb13e07)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:80 (0x967b75)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:114 (0x967bf6)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/recovery.go:161 (0x15baec4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/logger.go:40 (0x96b257)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:157 (0x9512ee)
/my/cache/.heroku/go/go-path/pkg/mod/github.com/go-macaron/inject@v0.0.0-20200308113650-138e5925c53b/inject.go:135 (0x951205)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/context.go:124 (0x967cc4)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:187 (0x972959)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/router.go:304 (0x973a01)
/my/cache/.heroku/go/go-path/pkg/mod/gopkg.in/macaron.v1@v1.5.1/macaron.go:218 (0x96c572)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:3311 (0x85a5cd)
/my/cache/.heroku/go/go1.26.3/go/src/net/http/server.go:2073 (0x837f6f)
/my/cache/.heroku/go/go1.26.3/go/src/runtime/asm_amd64.s:1771 (0x493380)